Add User Defined Tag to Content Page
Add User Defined Tag to Content Page
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
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
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
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...
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...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Add User Defined Tag to Content Page
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}
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.
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.