Hi,
I took a look at the TaggedTemplateTweak code and realized that it is
just an hijack of a core function. So there may be another solution:
hijack that plugin instead of duplicating templates' content. It
requires you to include 4 lines in the toggleSlideStyles function of
the slideShowPlugin like this:
config.macros.slideShow.toggleSlideStyles = function(){
var contentWrapper = $('#contentWrapper');
if(contentWrapper.hasClass("slideShowMode")){
Story.prototype.chooseTemplateForTiddler =
Story.prototype.slideShow_chooseTemplateForTiddler;//(3) restore
taggedTemplate hijack
Story.prototype.slideShow_chooseTemplateForTiddler = null;//(4) clean
up
refreshPageTemplate();
removeStyleSheet("SlideShowStyleSheet");
if(this.theme) removeStyleSheet(this.theme);
} else {
Story.prototype.slideShow_chooseTemplateForTiddler =
Story.prototype.chooseTemplateForTiddler; //(1) save taggedTemplate
hijack
Story.prototype.chooseTemplateForTiddler =
Story.prototype.taggedTemplate_chooseTemplateForTiddler;//(2) restore
core code saved by taggedTemplate
...
Would you like to try this? It may not be an optimal solution but I
think it should work for now.
BTW, do you have your work-in-progress online? I'm curious about
what's coming up because it all seems very close to my own ideas that
I keep holding back because there's no server side solution simple
enough.
--
Paulo Soares
On 26 Mar, 04:12, rouilj <[email protected]> wrote:
> Hi Paulo:
>
> On Mar 25, 9:33 pm, Paulo Soares <[email protected]> wrote:
>
> > The first error you mentioned is fixed. I thought of that case (no
> > headers) but I forgot to test it.
>
> Thanks. I'll revert the changes to my slides. I usually use title
> option
> with slideshow, so I don't need the headers as the slide name provides
> that.
>
> > Regarding the TaggedTemplateTweak, I haven't tested it but I would say
> > that there's no way the 2 plugins work together because they are
> > competing to change the ViewTemplate for the same tiddler.
>
> In researching an answer to this for you, I found out Eric did a good
> job
> writing the TaggedTemplateTweak (TTT). If there is a theme defined,
> TTT looks
> for <tagname>ViewTemplate (and I assume <tagname>StyleSheet and
> <tagname>PageTemplate) in the theme and uses it if present.
>
> So if I add a section:
>
> !contentViewTemplate
> ....
>
> to the PrintingTheme tiddler, it is used rather than the default
> 'contentViewTemplate'
> tiddler. This does mean that I have to duplicate the template in
> ViewTemplate and
> contentViewTemplate code but that's ok.
>
> > Are you sure you still need to use both plugins for a slideshow?
>
> Yes, because this isn't just a slideshow, it's a full textbook/
> presentation
> mechanism (or at least I hope it will be).
>
> In normal use the tiddlers tagged "content" have a contentViewTemplate
> applied via
> TaggedTemplateTweaks. contentViewTemplate is the defaultViewTemplate
> with a div
> added to display the TiddlerNotesPlugin note taking box. This allows
> the student
> to add notes to the tiddler without modifying the content tiddler (as
> it may be
> updated as I find errors or add new material).
>
> Also the contentViewTemplate disables double click to edit. This
> prevents the user
> from accidently trying to edit the content tiddler (since changes to
> it would be
> lost on update) also it allows the user to double/triple click to
> select text.
>
> Slides are just another form of content. When being presented by the
> instructor,
> they should be styled as a normal slide without a notes area, text at
> 200% of
> normal etc.
>
> The students can also run the slide show in their own tiddlywiki. In
> student mode
> the slides should appear as they normally would (using the
> contentViewTemplate with
> the notes area etc) but with the addition of the navigation buttons so
> they can move
> linearly through the presentation and follow the instructor.
>
> In addition, the students can also access the slides (and notes)
> outside of the
> slideshow in random (rather than sequential) access to say review
> notes or examples.
> They can access this mode by using search, any of the lists in the
> right hand pane
> or by opening the presentation tiddler (with the embedded slideshow
> macros) and
> access one of the embedded tiddler links.
>
> Does that explain the use case a bit better?
>
> -- rouilj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---