Skip to content

A little bug using "SideButtons" in contao #4

Description

@dh-uniquedesign

The lines 24 to 27 in the Contao-Templates "ce_noobslide_end.html5" and "ce_noobslide_end.xhtml" have to be modified when using the "SideButtons":

<?php if($this->SideButtons): ?>
   nextBtn: new Element('a', {'class':'ce_noobSlide_button ce_noobSlide_next', html:"<span><?php echo $this->next; ?></span>"}).inject(document.getElement('#<?php echo $this->articleId; ?> .ce_noobSlide'), 'after'),
   prevBtn: new Element('a', {'class':'ce_noobSlide_button ce_noobSlide_previous', html:"<span><?php echo $this->previous; ?></span>"}).inject(document.getElement('#<?php echo $this->articleId; ?> .ce_noobSlide'), 'after'),
<?php endif; ?>

In "nextBtn" and "prevBtn", you have to change the SINGLE-quotes after "html:" and before "}).inject" to DOUBLE-quotes in order to mask them correct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions