Ticket #6481 (closed enhancement: fixed)

Opened 2 months ago

Last modified 2 months ago

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

Reported by: rjollos Assigned to: rjollos
Priority: normal Component: S5Plugin
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

Change History

01/22/10 23:43:09 changed 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):

01/24/10 20:27:10 changed by rjollos

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

(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.

01/24/10 20:30:56 changed by rjollos

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


Add/Change #6481 ([Patch] Allow Slide Show link at bottom of page to be enabled/disabled)




Change Properties
Action