Cataloger: Category Template Variables in Main template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
MZTech
Forum Members
Forum Members
Posts: 18
Joined: Tue May 28, 2013 10:51 am

Cataloger: Category Template Variables in Main template

Post by MZTech »

Hi,
I am new to this forum, but I have built several websites with CMSMS and I love it! :)

So, here is my question: Can I use Catalogers Category Template Variables in Main template and how?

I tried to put tag {$sometextbox} in main template, but it won't process it.
I kind of expected this behavior, but don't know how to do it any other way.

Thanks guys.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Cataloger: Category Template Variables in Main template

Post by Jo Morg »

From Cataloger Help:
Variable

You can grab variables (attributes) outside of your Cataloger templates, say in a global content block, using the variable method. The syntax looks like:

{Cataloger action='variable' name='itemnotes' default='no notes'}, where name is the attribute to display (using the same all lower-case, punctuation-free representation like the smarty template variables), and default is the value to use if the attribute is not defined.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
MZTech
Forum Members
Forum Members
Posts: 18
Joined: Tue May 28, 2013 10:51 am

Re: Cataloger: Category Template Variables in Main template

Post by MZTech »

Thank you for your reply.

I still have a problem, it still does not work.

I put:

Code: Select all

{Cataloger action='variable' name='sometextbox' default='no notes'}
inside my main template, but still it does not show.
I tried putting it in global content block, but its the same, nothing.

I want to show it on a Category page, but inside main template, not on the subtemplate for Category page.
I hope you understood me.
MZTech
Forum Members
Forum Members
Posts: 18
Joined: Tue May 28, 2013 10:51 am

Re: Cataloger: Category Template Variables in Main template

Post by MZTech »

I have found a mistake, but I think it wasn't mine:

If Category Attribute has a " " space inside the name, this wont work. But if you just make a single word without spaces as Category Attribute it will work.

so my 'sometextbox' was "some texbox", now is "sometextbox" in Category Attributes.

Hope it will help someone else also.

Again thank you for your help, I dont know how I missed it, when I read module's help file.
Post Reply

Return to “Modules/Add-Ons”