I'm thinking about writing my own "MenuGenerator" by modifying org.apache.cocoon.generation.DirectoryGenerator so that it will read the filesystem under my "mount" directory and generate <section>s from directories and <resource>s from certain XML files under those directories under mount.
The generator would be called every time a user requests for a resource on the site and the generator would then decide what directories/resources would be shown in the menu based on current user's permissions (linking between users, user groups and resources will be located in a database). If I've understood correctly, this wouldn't cause too much payload for the server since the results would be cached and the menu would have to be generated only if the site structure changes, right?
The question is: Am I doing something really stupid here? I'm kind of newbie with Cocoon and I most certainly haven't yet understood the whole potential of it so all comments are more than welcome. However, the site I'm building should be completely dynamic and, therefore, the menu creation should be somewhat realtime. Is there a component that would do this already?
An example menu generated by the generator could be as follows:
<menu> <section name="Studying"> <resource name="index.xml"/> <resource name="freshmen.xml"/> <resource name="links.xml"/> </section>
<section name="Something else">
...
</section> </menu>
and it would be aggregated in cocoon sitemap and shown in the final output for the user.
Cheers, Keijo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]