Add User Defined Tag to Content Page

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
nauticalwebd

Add User Defined Tag to Content Page

Post 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.
nauticalwebd

Re: Add User Defined Tag to Content Page

Post 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.
nauticalwebd

Re: Add User Defined Tag to Content Page

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Add User Defined Tag to Content Page

Post 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...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Add User Defined Tag to Content Page

Post 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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “Layout and Design (CSS & HTML)”