Page 1 of 1

Add User Defined Tag to Content Page

Posted: Fri Jul 13, 2007 2:37 pm
by nauticalwebd
I have created a user defined tag that I only want to show on certain catalog items.  What is the best way to accomplish this.  I have tried adding {sides} to the page in the FCK editor but it just shows the tag on the page.  When put on the template it works fine.  Any ideas??  Thanks.

Re: Add User Defined Tag to Content Page

Posted: Fri Jul 13, 2007 2:40 pm
by nauticalwebd
Ok, to add to it the pages I want to add this to are cataloger pages.  I have a custom field where I would really like this to show up if possible.  Thanks again.

Re: Add User Defined Tag to Content Page

Posted: Fri Jul 13, 2007 3:06 pm
by nauticalwebd
Ok, i've tried messing around with the {literal} tag and I get it to show when the {sides} tag is after the {/literal} but I either get the {literal} tags showing yet on the page or I get smarty errors.  I know there has to be someway to make this work I just haven't figured it out yet.

Re: Add User Defined Tag to Content Page

Posted: Fri Jul 20, 2007 2:35 am
by Dr.CSS
Have you read the sticky/first post to this section...

if you look at the source, Source button, while editing a page you may see the curly brackets as html code, &crlbrk; or whatever it is...

Re: Add User Defined Tag to Content Page

Posted: Fri Jul 20, 2007 2:59 pm
by calguy1000
smarty may not be evaluating your custom cataloger fields.  Therefore, here's a workaround:

a) In the metadata section of the page (I hope that still exists in cataloger type pages)
    add {assign var='usemygcb' value=1}

b) in your template add this (in the appropriate spot)
    {if isset($usemygcb)}
      {mygcb}
    {/if}