Edgewall Software

Ticket #332 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 years ago

Custom header/footer templates and CSS for custom layouts

Reported by: anonymous Owned by: daniel
Priority: normal Milestone: 0.7
Component: general Version: 0.6.1
Severity: normal Keywords:
Cc:

Description (last modified by mgood) (diff)

On the projects.edgewall.com trac installation you have a left menu bar. Is this a feature of trac? Is it done with the clearsilver templates? If not (or even if so) I would like to see this as a feature of trac:

Allow customization of the 'navigation' areas (header, footer, left) through trac rather than using the templates.

Attachments

Change History

Changed 5 years ago by daniel

  • summary changed from Left navigation bar to Custom header/footer templates and CSS for custom layouts
  • milestone set to 0.7.1

This is something we've been discussing earlier, and somehow never made it into a ticket.

On projects.edgewall.com we right now have a patch for the actual templates, applied automatically when we update it. This is of course far from optimal.

The most common request is being able to add Trac to an existing layout.

The case boils down to:

  • header.cs should include a site_header.cs at the top
  • footer.cs should include a site_footer.cs at the bottom
  • site_* should reside in the Environment, preferrably in <projenv>/templates/
  • <projenv>/templates/ should contain empty defaults and a README with a description
  • header.cs should include a site.css after all 'system' styles, to allow custom overrides.
  • site.css should probably reside in the Environment.

Changed 5 years ago by cmlenz@…

I would suggest to include site_header.cs directly before the header div (which contains the Trac logo), and include site_footer.cs directly before the closing <body> tag (and thus after the footer div).

I agree that this approach, combined with a CSS customization layer that still needs to be worked out*, would indeed solve 99% of the integration requirements.

Changed 5 years ago by daniel

  • owner changed from jonas to daniel
  • status changed from new to assigned
  • milestone changed from 0.7.1 to 0.7

Changed 5 years ago by daniel

Exactly, and the remaining 1% is typically solved by editing the actual Trac templates themselves.

The level of complexity to support any simpler customization options is hardly worth an effort that better spent elsewhere. :)

Changed 5 years ago by daniel

This is simple enough to add to 0.7 even, if only to make our own project website easier to maintain :-P

Changed 5 years ago by daniel

  • status changed from assigned to closed
  • resolution set to fixed

Added in [522].

Changed 2 years ago by anonymous

  • type changed from enhancement to defect
  • component changed from general to roadmap

Changed 2 years ago by anonymous

  • component changed from roadmap to general

Changed 2 years ago by mgood

  • type changed from defect to enhancement
  • description modified (diff)

Add/Change #332 (Custom header/footer templates and CSS for custom layouts)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from daniel. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.