• Resolved ninjaraptor

    (@ninjaraptor)


    I’m having some trouble getting my template to do what it wants – I assume that the way the plugin handles slide transitions is jQuery pulls the values from the list of slides below into the template (so the h1 with id="fs-title" gets the title etc), but I can’t figure out what codes to use for some values.

    Specifically I’d like to know what placeholders to use for the post permalink and the button-comment field, but if there’s a complete list somewhere then that would be helpful.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jeff_

    (@jeff_)

    Jsut have a look at the default template… its simple :

    – fs-main is the main container
    – fs-slide is the main part, where the image is shown
    – fs-placeholder is the element that materialize the visible part of image and contains the previons and next controle (fs-prev and fs-next) + the clickable part of image (fs-link)
    – fs-text is the text ribbon that takes place just below fs-placeholder and is on the picture and contains the fs-title and fs-excerpt that are respectively the title and the comment of the current slider
    then you will find an unordered list that materialize the buttons and contains the slides informations

    All elements id are quite explicit…

    The transitions has 2 times :
    1) the current picture is hidden and all displayed informations (title, comment and link) are cleared + the current button loose the “current” class (performed by the fsChangeSlide function)
    2) the next picture is shown and the informations (title, comment and link) are set (performed by the fsChangeSlide2 function)
    The loops are started by the frontpageSlideshow function and the fsDoSlide function that respectively initialize the slider if not already done, and go a step forward onto the loop

    Hope this helps

    Thread Starter ninjaraptor

    (@ninjaraptor)

    Hi jeff_, thanks for the reply.

    I understand the placeholders in the default template – it was more the two that I mentioned (specifically calling the post permalink, and the slide button-content field) that were getting me, since they don’t appear to be explicitly used anywhere in the default template (correct me if I’m wrong!). I see the line;

    <div id="fs-entry-button-comment-'.$id.'" class="fs-comment">'.$entry['button-comment'].'</div>

    in the default template, but even though this is filled with the field from my saved page I can’t get the value to transfer into my active slide (have experimented with elements with ids like fs-comment, fs-button-comment, etc).

    When I was using the default template, the fs-link element just called a hash ref (#frontpage-slideshow), which didn’t take me to the post (is this supposed to be replaced, or called via jQuery?).

    Maybe I’m missing something, but I’ve been poking it for a while and it’s got me!

    Cheers

    ————–

    EDIT: After further poking in the fsChangeSlide2() function, it appears that the button-comment field is never set. That would explain my issues!

    I also see now that the frontpageSlideshow() function sets an onClick handler for the link element, rather than simply setting the href in the template.

    Further fiddling will ensue…

    Well that’s answered my questions! Thanks for your time.

    Plugin Author jeff_

    (@jeff_)

    The button-comment is not set because you did not set it… (look at the add/edit post page, just below the editor, you will find a special formular allowing you to control how the post looks like onto the slider)

    Concerning the link : the href cannot be set in the template because there is only one link… (read the code!) the link’s href is set dynamicly with javascript.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Templating Help’ is closed to new replies.