Modify

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#6481 closed enhancement (fixed)

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

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
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 15 years ago by Ryan J Ollos

Status: newassigned
Summary: Allow Slide Show link at bottom of page to be enabled/disabled[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 15 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(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 15 years ago by Ryan J Ollos

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

comment:4 Changed 14 years ago by Ryan J Ollos

Component: S5PluginSlideShowPlugin

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.