plainblack.com
Username Password
search
Bookmark and Share

    

Accessing Metadata in a Style template

User knowmad
Date 12/23/2005 1:04 am
Views 1954
Rating 11    Rate [
|
]
Previous · Next
User Message
knowmad

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

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

----
Knowmad Technologies
http://www.knowmad.com

--- (Edited on 5/15/2011 3:28 pm [GMT-0400] by knowmad) ---



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved