Edgewall Software
Modify

Ticket #8453 (closed enhancement: wontfix)

Opened 3 years ago

Last modified 20 months ago

Hide the Wiki Mechanics from people not logged in

Reported by: shookie@… Owned by:
Priority: lowest Milestone:
Component: wiki system Version: 0.12dev
Severity: minor Keywords: wiki trac.ini
Cc:
Release Notes:
API Changes:

Description

To make a trac site look more like a normal website, and not like a wiki, some hiding has to be done. Probably useless for normal project pages, but I'm hosting a personal site on the same server I host my projects, and didn't want to waste resources with a big other web framework.

It's basically three added trac.ini options:

[ctxtnav]
hide_ctxtnav_from_anonymous (does exactly what it says)

[wiki]
uri_prefix (tie wiki requestHandler and link generator to another prefix than /wiki)
wiki_start (allows the default wiki page to have another name)

Attachments

hide_wiki.diff (7.0 KB) - added by shookie@… 3 years ago.
implementation diff

Download all attachments as: .zip

Change History

Changed 3 years ago by shookie@…

implementation diff

comment:1 in reply to: ↑ description ; follow-up: Changed 3 years ago by anonymous

  • Milestone 0.12 deleted

Replying to shookie@…:

See #5319. You can also tweak the interface using a site template to remove/replace some parts of the interface.
Moreover, I think we should try to limit the ever-growing number of configuration options.

Propose as wontfix

comment:2 in reply to: ↑ 1 Changed 3 years ago by anonymous

Figured it wouldn't get adopted. It's the sensible thing not to include it. Just wanted to put it out there though, in case someone wants that.

And you are right, the hiding of the ctxtmenu could have been easily done in a Theme. And the WikiStart could have been hidden then pretty easily as well. But tinkering with the wiki base path is impossible to do via add-on, since they were just not meant to be changed in any way.

comment:3 Changed 3 years ago by cboos

  • Milestone set to 2.0
  • Severity changed from normal to minor

The configuration options should go to the WikiSystem component, not to the Environment directly.

I'm not sure the changes in trac/web/api.py, trac/web/main.py and trac/web/href.py are needed. I'd rather not modify the /wiki links to something else, rather prevent such links to be created by using the appropriate prefix whenever needed.

The test in trac/templates/theme.html should be reversed (it's cheaper to test authname != anonymous first) - but as the comments above suggest, it's perhaps better to leave that part out.

comment:4 Changed 22 months ago by cboos

  • Milestone changed from 2.0 to unscheduled

Milestone 2.0 deleted

comment:5 Changed 20 months ago by cboos

  • Milestone triaging deleted
  • Resolution set to wontfix
  • Status changed from new to closed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from (none). Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.