Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#6481 closed enhancement (fixed)

[Patch] Allow Slide Show link at bottom of page to be enabled/disabled

Reported by: rjollos Owned by: rjollos
Priority: normal Component: SlideShowPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I like using this plugin to add user training to the wiki and display those pages as slideshows, however I don't want to have the Slide Show link at the bottom of every wiki page. It would be nice to be able to disable this link via a setting in trac.ini.

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by rjollos

  • Status changed from new to assigned
  • Summary changed from Allow Slide Show link at bottom of page to be enabled/disabled to [Patch] Allow Slide Show link at bottom of page to be enabled/disabled

Define show_content_conversion in the [s5slideshow] section of trac.ini, and patch with the following:

     # IContentConverter methods
     def get_supported_conversions(self):
-        yield ('s5', 'Slideshow', 's5', 'text/x-trac-wiki', 'text/html;style=s5', 8)
+        opt = self.env.config.getbool('s5slideshow', 'show_content_conversion','true')
+        print opt
+        if opt:
+            yield ('s5', 'Slideshow', 's5', 'text/x-trac-wiki',
+                   'text/html;style=s5', 8)

     def convert_content(self, req, mimetype, content, key):

comment:2 Changed 5 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7451]) Updated documention.

Changed macro name from S5 to SlideShow. Closes #6482.

Applied patches for 0.11 compatibility. Thanks dgynn and JimCheetham. Closes #1951.

Added configuration option to disable context conversion links at the bottom of each wiki page. Closes #6481.

comment:3 Changed 5 years ago by rjollos

Actual fix was in [7450], but I screwed up the log message so its shown as [7451].

comment:4 Changed 4 years ago by rjollos

  • Component changed from S5Plugin to SlideShowPlugin

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.