Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7752 closed enhancement (wontfix)

Ability to disable alternate versions of pages

Reported by: datallah@… Owned by:
Priority: normal Milestone:
Component: rendering Version: 0.11
Severity: normal Keywords: alternate RSS disable
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Currently the default alternate versions (RSS, CSV, etc.) of tickets and wiki pages are always enabled and there is no way to disable them without using a stream filter.

It would be nice if there were a way to disable each alternate version.

Attachments (0)

Change History (2)

comment:1 by osimons, 16 years ago

Component: web frontendrendering
Resolution: wontfix
Status: newclosed

Trac already have so many options and if...: else...: logic, that we're always looking to avoid adding more if perfectly usable alternatives already exists. This one in particular would add code to Trac and plugins as they all try to adjust to the settings - with a somewhat low general benefit.

Instead, drop this oneliner into your project site.html:

<!--! Disable all alternate downloads -->
<div py:match="body/div[@id='main']/div[@id='altlinks']" py:attrs="select('@*')" />

It can quite easily be refined to for instance just disable/modify individual items.

/me should really start a cookbook wiki page with nifty tricks… :-)

I'm going to close this ticket as wontfix, but if anyone has strong objections then please go ahead and reopen it.

comment:2 by anonymous, 16 years ago

I already have a similiar entry in site.html (there also needs to be an entry to remove the <link rel="alternate"... stuff too).

I suppose this is acceptable :), I was just thinking more of people who are less capable of figuring out how to do such things. A cookbook for stuff like this sounds like a good idea.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.