Jump to content

hamzaalibhatti

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by hamzaalibhatti

  1. i filled the slider field in the template name home and get the slider on the same template file and place the code before body 


    I'm starting to think that the documentation is not clear enough on this point, I should definitely add more information.

    Let's try to explain better how the module works:

    1. Create your slider using the module, suppose that this slider is called Slider1.
    2. Define a field of type Slider and give it a name. I'm calling it slider.
    3. Add this field to an existing template, for example on the home template.
    4. Now go to your pages tree and edit the home page. On the slider field select the slider that you want to display on the page.

    On your template file use the code $page->get('slider') to get the ID of the Slider1 slider, and pass it to the MarkupSlider module.

    i do the same steps that you advised but it throws the error 

  2. @kongondo 

    install all the three module in the MarkupSlider.Module file it not get the slider id if i place the slider id in the query slider is showing but the problem exist $sliderId is not getting the id from db

    yes my error is on the same line if i pass the id in the getreplacement function in query in the place of :id  to 1the slider id in db its showing the slider 

  3. implement a process slider module and set the field slider in template when place the code in template file its throw the error unknown slider here is the code i placed in template file  

    $slider = $modules->get('MarkupSlider');

    echo $slider->getStyles($arrows = false, $bullets = false);

    echo $slider->render($page->get('Slider1'), $includeScript = true, $options = array()); 

    post-3959-0-44133100-1449676419_thumb.pn

×
×
  • Create New...