Page_attr / getchildren enhancement (v2.2.x vs 2.3)

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.
Post Reply
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

Page_attr / getchildren enhancement (v2.2.x vs 2.3)

Post by atz6975 »

Hi,
I haven't tested v2.3 yet and I hope this is not already done there.
I've based content navigation in templates on child structure in our cms (head, child, sub-child) and as advised by people here (deprecated menu module).
I find it very pleasant for dev and much more practical for editors too.
As I'm working for side project with "graphical/textual" content listings, I found myself very dependant on the page_attr and custom content (title, description, introduction, word from the author, date...whatever).

So here is my need, make page_attr capable of returning a (full) collection of attributes at once to avoid multiple calls.
As a side mater, CGSimple_getchildren might benefit from same logic and return attributes (maybe getchildren_attr new function)

I understand this is typically something one could self-develop but it does have some merit to be in our base CMS (or CGSimple) to build leaner smarty templates.

Thx for feedback or ideas.
Post Reply

Return to “CMSMS Core”