Re: Change flavour "on the fly", possible?
will <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
The PyBlosxom site has a print flavour that looks like the html flavour
except it's missing all the navigation and some of the other stuff.
http://pyblosxom.sourceforge.net/?flav=print
There are a couple of ways you could do what you're advocating. The
first is that you can do what we did with the PyBlosxom site and have a
print flavour. Then you have a link to the print version.
The other way to do it is with DHTML and JavaScript. The user clicks on
a button or link and with JavaScript you make the sidebar and whatever
other elements on the page you want to disappear hidden.
If I had to do the print thing again, I'd do it with JavaScript--it's
much easier in the grand scheme of things.
/will
Chris G wrote:
> I want a way to change flavour "on the fly" as it were, can anyone
> suggest a way of doing this?
>
> I'll explain a bit more as there may be more than one way to get to
> where I want.
>
> What I want to do is get a printable version of a page without most of
> the extras. In my case I'm using the wgbwiki plugin and a plugin of
> my own to get pages with a sidebar in which there's a hierachical
> menu. I want to be able to click on a link which will make the
> sidebar disappear leaving the information part of the page to be
> printed.
>
> A 'flavour switch' would do this because the sidebar is generated by
> the head template and thus a flavour with a 'do nothing' head template
> would get what I want.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/