We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Template Variable Allowed in User Message Templates

How Do I?

Andrés Molina's avatar
Andrés Molina
43 posts
5 years ago
Andrés Molina's avatar Andrés Molina

In this path admin.php

Template Manager Group: System Edit Template: User Messages

Have the basic template used to show some users messages, like empty fields on register forms, etc.

Im try adding a custom link to Home Page, but this dont works

<a href="http://{site_url}" class="txt2">{site_name}</a>

only this works fine

{title} {charset} {meta_refresh} {heading}

{content} <— The error message

{link} <— Link to back previous page using browser history function(Javascript)

im need:

{theme_user_folder_url} {site_name} {site_url}

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

The message template is more limited in the variables it will parse, in part because it may be shown when things ‘fail’. So the only variables that can be used are the ones listed in the form.

While there are some more complex alternatives to using the template, my first solution would be to hard code the url that you need, rather than rely on the variables.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.