[opencms-dev] CmsJspNavBuilder->getSiteNavigation

Schliemann, Kai K.Schliemann at comundus.com
Mon Mar 3 12:21:53 CET 2014


Hi Thomas,
you could set the cache property to "uri, user" or just "user" (if you use this jsp just on one page of your entire site (e.g. as a sitemap)).
But I guess, you know how to use the different caching parameters already.

Coming back to my first solution, you could use the cron job and now call the page for every OpenCms user once after every publication.
Still doesn't sound like a very nice solution. But it should work.

Another solution comes to my mind. 
Could you possibly generate the navigation by a Solr query?
We did something similar in an OpenCms 7 project (with Lucene), where it was a requirement, that the search result should be sortable by NavPos. 
We had to add a new search field for each resource and added all NavPos values of all parent folders into this field in order to be able to sort by NavPos.
An example of a field value could be "2.0_1.625_4.25" for a resource in the third level.

HTH

Best regards
________________________________________     

Kai Schliemann
Dipl.-Wirtschaftsingenieur (FH)
Senior IT-Berater Softwareentwicklung
    
comundus GmbH
Schüttelgrabenring 3, D-71332 Waiblingen
Zentrale      +49 7151-94421-10
Durchwahl  +49 7151-94421-20
Fax             +49 7151-94421-39
E-Mail k.schliemann at comundus.com 
Internet www.comundus.com
 
Geschäftsführer Klaus Hillemeier  
Amtsgericht Stuttgart, HRB 264290
         
comundus ist ein Unternehmen der IT EXCELLENCE Group
________________________________________     

 comundus bei Facebook 





-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von T.Kluge at t-systems.com
Gesendet: Montag, 3. März 2014 11:17
An: opencms-dev at opencms.org
Cc: Daniel.Plesshoff at telekom.de; Steffen.Deutscher at telekom.de
Betreff: Re: [opencms-dev] CmsJspNavBuilder->getSiteNavigation

Hi Achim,

that sounds really nice indeed. But it's a whole site navigation and this could not reflect the different roles per user.
(admin sees all, customer only part of the tree and so on)

Best regards,
Thomas

-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Achim Westermann
Gesendet: Freitag, 28. Februar 2014 17:17
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] CmsJspNavBuilder->getSiteNavigation

Hi Thomas,

I'd also recommend Kai's suggestion. Done in 5 Seconds (excluding the first request from server strategy).

1. Go to the jsp in VFS that renders the navigation.
2. Right click, choose "properties" and set the cache property to "uri"
(in case it is not a whole site navigation).

The output of the jsp is stored in flexcache with one version per different URI.

cheers,
Achim

_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list