| Previous · Next | |
| User | Message |
|
knowmad
|
Date: 12/23/2005 1:04 am · Subject: Accessing Metadata in a Style template · Rating: 11
I'm trying to create a custom style (my first attempt) which can have a variable page title. The primary purpose here is to have a different title and h1 tag. I thought that I could use metadata to store the alternative h1 tag. I created a H1_Title metadata that is a data type of text. I've updated this value on the page that I wish to have use the alternative but nothing is happening. Here's my template code (the Page() macro seems to be getting lost but that's what should be in the else clause):
<h1><tmpl_if name="H1_Title"><tmpl_var name="H1_Title"><tmpl_else></tmpl_if></h1>
Thanks for any suggestions or ideas, William --- (Edited on 12/23/2005 1:04 am [GMT-0600] by knowmad) --- |
| Back to Top |
Rate [ | ]
|
|
knowmad
|
Date: 5/15/2011 2:28 pm · Subject: Re: Accessing Metadata in a Style template · Rating: 0
This is tacky to reply to my own message that's over 5 years old but it's still coming up in Google search for me! Details about how to do this are in the wiki -- http://www.webgui.org/wiki/content-profiling ---- --- (Edited on 5/15/2011 3:28 pm [GMT-0400] by knowmad) --- |
| Back to Top |
Rate [ | ]
|