Page 1 of 1
Category's ?
Posted: Sat May 13, 2006 7:04 pm
by Tharo
After spending some hours here in the forums and on the entire Page i dont found just a single word about Categorys.
Why Categorys, since the structure on cmsms is so clean.
Well ... i love cmsms. True, but on my project i just need something like a more specific index creation.
If wish for myself 2 Tags. For example ..
{create_index = 'samplepage' stext = true} that creates me a smart hirachial index of all subpages (just like in the menue) and displays a nice introtext.
I'm sure that this tag is allready given somewhere by using some menue commands. but i thought about a more details in the ooutput. Like the info text, maybe css things that alows me to do various organisation structures with it.
Next thing is, that i want to be able to display the number of sub-documents of a given page. Such as
{displ_sub_cnt_num = 'samplepage} that give me a 3 when samplepage has 3 sub documents.
All nothing worse im sure that it would pretty easy to code something like that by myself. I just wanted to ask .. maybe its allready integrated and i just could not found it.
cu
Tharo
Re: Category's ?
Posted: Sat May 13, 2006 11:53 pm
by calguy1000
check out the sitemap plugin

Re: Category's ?
Posted: Sun May 14, 2006 4:19 am
by Elijah Lofgren
Tharo wrote:
If wish for myself 2 Tags. For example ..
{create_index = 'samplepage' stext = true} that creates me a smart hirachial index of all subpages (just like in the menue) and displays a nice introtext.
Check out:
http://wiki.cmsmadesimple.org/index.php ... t_children
Tharo wrote:
Next thing is, that i want to be able to display the number of sub-documents of a given page. Such as
{displ_sub_cnt_num = 'samplepage} that give me a 3 when samplepage has 3 sub documents.
Check out:
http://wiki.cmsmadesimple.org/index.php ... t_children
Hope these help.

Re: Category's ?
Posted: Sun May 14, 2006 12:28 pm
by Tharo
Thanks and sorry for my noobishbe ^^
Re: Category's ?
Posted: Sun May 14, 2006 2:14 pm
by Elijah Lofgren
Tharo wrote:
Thanks and sorry for my noobishbe ^^
You're welcome. No problem, one reason you couldn't find what you needed is that I didn't write that "count_children" template until you posted asking for it.

Re: Category's ?
Posted: Mon May 15, 2006 7:24 pm
by Tharo
Oh! So in that case: It is possible to send the page-label to this Tag so that i can display thoose two tags everywhere for whatever i want?
For example i want to list the subpages from page X at my Home-Page.
Edit:
Okay, i had a look to your samples and well it is not that complex at all. The main Point is that i again looked for some infomations (this time for the smarty objects) and was not able to find alot of em.
I tried to access the child list of a node using "$node->children" .. it was just a shot, im realy not sure if there any way to access the children data?
Maybe i just excpect to much and i realy should start to code a _hard_ module or tag instand of dealing with the menue data.
Re: Category's ?
Posted: Mon May 15, 2006 10:09 pm
by Elijah Lofgren
Tharo wrote:
Oh! So in that case: It is possible to send the page-label to this Tag so that i can display thoose two tags everywhere for whatever i want?
For example i want to list the subpages from page X at my Home-Page.
I've just created a menu template that does just that:
http://wiki.cmsmadesimple.org/index.php ... hildren_of
Enjoy
Tharo wrote:
Okay, i had a look to your samples and well it is not that complex at all. The main Point is that i again looked for some infomations (this time for the smarty objects) and was not able to find alot of em.
Maybe i just excpect to much and i realy should start to code a _hard_ module or tag instand of dealing with the menue data.
Some help on smarty syntax is here:
http://smarty.php.net/manual/en/
I find making Menu Templates easier than writing modules.
Re: Category's ?
Posted: Mon May 15, 2006 10:12 pm
by Tharo
If course it is. You dont have to deal with the inner api of the CMS.
But it is always dependent to where in the page you are navigating in the moment (so far i can see).. But im sure that you as old hood in this cms know it better

Re: Category's ?
Posted: Mon May 15, 2006 10:31 pm
by Elijah Lofgren
And I forgot to mention. If, in the CMSMS Admin Panel, you go to Extensions->Modules and next to MenuManager click "Help" you'll find some useful info on making Menu Templates. You probably already know this, but I just wanted to post this in case you didn't
