[opencms-dev] CmsJspNavBuilder->getSiteNavigation
Achim Westermann
achim.westermann at gmx.de
Wed Mar 5 22:53:31 CET 2014
Hi Thomas,
I thought "user" is too much in case of many different users. So I
looked up the Alkacon flexcache documentation. E.g. here:
https://opencms.cse.unsw.edu.au/alkacon-documentation/documentation_flexcache/directives_reference.html
The user description points out to have a look at "groups". Which is not
documented there but would solve your problem. I found some javadoc
remainders mentioning "groups" in the documentation as well as in
org.opencms.flex.CmsFlexCacheKey.
But I cannot find any code handling groups.
@Alkacon guys: Is this a feature that has vanished?
cheers,
Achim
On 03/03/2014 12:21 PM, Schliemann, Kai wrote:
> 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
>
>
>
> _______________________________________________
> 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