AW: Re: PyDS navigation and rerendering
"Bauer, Georg" <[email protected]> Wed, 20 Oct 2004 12:47:02 +0200
| Newsgroups | gmane.comp.python.pyds.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! >Is there a reason the navigationBox nugget cannot be automatically re-rendered >when I make changes to navigation links? It seems the suggested way to solve >this is to use a timer, but that seems wasteful. Actually it depends wether you have an active or a normal nugget. Normal nuggets are only rendered if the page that uses them is rendered. So the usual navigation links show up on pages that are rerendered because of new entries that apply to them. If you want to change all pages in your system, just rerender the weblog entries, for example. Active nuggets are different: the rendered code in the page itself just calls a JavaScript entry. The nugget is written as JavaScript code and integrated in the browser. That way you can have parts of your page change without the need of a full rerender of your system. Active nuggets are rendered when they themselves change. You can trigger both full tool rendering or active nugget rendering with timers, if you want to happen in every night for example (that's what I usually do - just set up timers that rerender several tool content pages each night). You need to keep in mind that PyDS+PyCS is static HTML + some infrastructure in the end. So to change stuff, you have to regenerate the HTML and upstream that. Page contents doesn't change just because of data changes, except when the code triggers a rerendering. Adding navigation links doesn't trigger a rerendering, as it would have to rerender the full site - navigation is on all pages. bye, Georg