Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 12 posts 91 karma points
    Sep 05, 2014 @ 14:25
    Dan
    0

    Create a simple image slider

    Hi!

    I'm new to Umbraco, and can't work out the best way to create an image slider. I need a simple image slider that I can use on multiple pages on my site - just with different images. I assume I'd create a macro? I'm just not sure how I can use it in my templates?

    Thanks!

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2014 @ 14:30
    Fuji Kusaka
    0

    Hi Dan,

    Yes you can create a macro using a parameter since you want to use this same macro to display different images/ multiple images on your site.

    What version of umbraco are you using here ?

     

    //fuji

  • Dan 12 posts 91 karma points
    Sep 05, 2014 @ 14:39
    Dan
    0

    Hey, thanks for the response! I'm using Umbraco 7 (latest version)

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 05, 2014 @ 16:42
    Fuji Kusaka
    0

    Hi Dan,

    Under the Developer Section you can create a Partial View macro files choosing from the snippet list "list images from media folder".

    Just set your macro parameter Alias to whatever your want "mediaId" Type "Single Media Picker".

    Since you will be using the macro in your template just no need to check the Use in rich text editor. In your template insert your macro and choose your media Folder.

    Hope this helps.

    //fuji

     

     

  • Dan 12 posts 91 karma points
    Sep 05, 2014 @ 19:51
    Dan
    0

    That did help, thanks for the pointer!

Please Sign in or register to post replies

Write your reply to:

Draft