Category's ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Tharo

Category's ?

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

Re: Category's ?

Post by calguy1000 »

check out the sitemap plugin :)
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.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Category's ?

Post 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.  ;)
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Tharo

Re: Category's ?

Post by Tharo »

Thanks and sorry for my noobishbe ^^
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Category's ?

Post 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.  ;)
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Tharo

Re: Category's ?

Post 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.
Last edited by Tharo on Mon May 15, 2006 9:50 pm, edited 1 time in total.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Category's ?

Post 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.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Tharo

Re: Category's ?

Post 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 :)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Category's ?

Post 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 ;)
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Locked

Return to “CMSMS Core”