• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Cataloger: Category Template Variables in Main template
PostPosted: Tue May 28, 2013 10:57 am 
Offline
New Member

Joined: Tue May 28, 2013 10:51 am
Posts: 3
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.


Top
 Profile  
 
 Post subject: Re: Cataloger: Category Template Variables in Main template
PostPosted: Tue May 28, 2013 3:20 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jan 29, 2007 4:47 pm
Posts: 426
From Cataloger Help:
Quote:
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...).

My developer Page on the Forge.


Top
 Profile  
 
 Post subject: Re: Cataloger: Category Template Variables in Main template
PostPosted: Tue May 28, 2013 10:38 pm 
Offline
New Member

Joined: Tue May 28, 2013 10:51 am
Posts: 3
Thank you for your reply.

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

I put:
Code:
{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.


Top
 Profile  
 
 Post subject: Re: Cataloger: Category Template Variables in Main template
PostPosted: Tue May 28, 2013 11:04 pm 
Offline
New Member

Joined: Tue May 28, 2013 10:51 am
Posts: 3
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: mountcn


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner