Re: serving additional pages
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hello: In message <[email protected]>, Stuart McGraw writes: >I have read the Web Inferface part of the Roundup docs but I still >do not understand how to do the following... > >I want to add an additional page (linked to from home.html) that >is not associated with any action, I assume rather than action, you mean any class. >just some additional html text. >I want it to be processed by the template engine (because it uses >the layout macro in page.html) so I don't want a static file, yes? Correct. >I do not understand how to name it and with what url to access it? >A clue (or better yet, an answer :-) would be greatly appreciated. Yeah, it's not quite obvious. If you name the additional page: home.additional.html and use the link: http://host/tracker/index?@template=additional does it do what you want? The file name format format is: object.view.html where object is usually user, issue, _generic or it can be the word index (or home). If index/home is used, there is no context provided to the template. See: http://roundup.sourceforge.net/docs/customizing.html#determining-web-context where it says: 1) with is no path we are in the “home” context. See the “home” context below for details. “index” or “home” paths may also be used to switch into “home” context. Then the "home" context says: The “home” context is special because it allows you to add templated pages to your tracker that don’t rely on a class or item (ie. an issues list or specific issue). Let’s say you wish to add frames to control the layout of your tracker’s interface. You’d probably have: A top-level frameset page. This page probably wouldn’t be templated, so it could be served as a static file (see serving static content) A sidebar frame that is templated. Let’s call this page “home.navigation.html” in your tracker’s “html” directory. To load that page up, you use the URL: <tracker url>/home?@template=navigation Roundup trackers come with a default "example" of home.classlist.html that is in the tracker's html directory. Does that help? -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho _______________________________________________ Roundup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/roundup-users