Results 1 to 4 of 4

Thread: Contentslider issue

  1. #1
    User
    Join Date
    06-20-09.
    Location
    Spain
    Posts
    43

    Default Contentslider issue

    Hi! I'm trying to implement the Contentslidermodule in a website but its looks like i'm not doing it proper. I already install the module, and create something like:
    content slider begin
    text (with css class slideElem)
    text (with css class slideElem)
    content slider end
    you can see it here ( http://www.abogadosmmb.eu/index.php/el-bufete.html )
    for the content slider config i choose to show 1 Elements per row, because i want to see one text first and then the other when i press the foreward button.
    But, when i see how this its show on my front, its show both of the text contents and the buttons back and foreward do not have any functionality
    What im doing wrong? i'm missing some javascript reference? i have the mootools implemented already and its looks ok.

    cheers.
    ===
    Fernabel

  2. #2
    Official Contao Team
    Join Date
    06-10-09.
    Location
    Stuttgart, Germany
    Posts
    68

    Default Re: Contentslider issue

    Hi fernabel,

    guess you need some additional css definitions.

    I add here some of mine:

    for slideWrapper you need to set width and height to same sizes you have done for the content element sliderWrapperStart.

    Code:
    #slideWrapper {
    height:400px;
    overflow:hidden;
    width:960px;
     }
    
    #innerSlideWrapper {
    width:960px;
     }
    
     #innerSlideWrapper div.slideElem {
    float:left;
    height:400px;
    width:960px;
     }
    
    #goForward {
    cursor:pointer;
    margin:-220px 0 0;
     }
    
    #goBack {
    cursor:pointer;
    margin:-220px 0 0;
     }
    So try these value and play a bit to get your content sliding.
    ---------------------------------------------------
    kind regards planepix

    Official Contao team member - Official Contao partner
    workshop contao conference site 2011
    workshop contao conference site 2012

  3. #3
    User
    Join Date
    06-20-09.
    Location
    Spain
    Posts
    43

    Default Re: Contentslider issue

    Thanks planepix for your tip! i set the css, and its was looking good, but still get the same error. then I realized that in the js of csStart.tpl ther is an extra ")" i change the line 70 from " }); " to "}" and now its working :D
    Cheers!
    ===
    Fernabel

  4. #4
    User
    Join Date
    06-20-09.
    Location
    Spain
    Posts
    43

    Default Re: Contentslider issue

    ha! and something that i totally forget! i change the
    window.addEvent("domready", function() {
    of line 33 for window.onload = function() {
    because i was getting errors.
    Somebody know why these happend?
    ===
    Fernabel

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •