Calling GCB depending on page?
Posted: Tue Mar 31, 2009 7:47 am
Hi All,
I'm trying to find a way of calling a GCB depending on what page the viewer is current on. So this is what I've tried:
{global_content name='home'}
{global_content name='{title}'}
So the intention is that the correct GCB will be called for a page i.e. home GCB for home page, contact GCB for contact etc.
Of course my attempt doesn't work: string(61) "Smarty error: unable to read resource: "globalcontent:{title"" }
So I'm wondering whether creating a UDT to do something would be more appropriate? I'm not hot on UDT's so I could sure do with some pointers...
Sarah
I'm trying to find a way of calling a GCB depending on what page the viewer is current on. So this is what I've tried:
{global_content name='home'}
{global_content name='{title}'}
So the intention is that the correct GCB will be called for a page i.e. home GCB for home page, contact GCB for contact etc.
Of course my attempt doesn't work: string(61) "Smarty error: unable to read resource: "globalcontent:{title"" }
So I'm wondering whether creating a UDT to do something would be more appropriate? I'm not hot on UDT's so I could sure do with some pointers...
Sarah