Copied to clipboard

Flag this post as spam?

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


  • Rocoeh 65 posts 86 karma points
    Apr 18, 2012 @ 13:16
    Rocoeh
    0

    creating a slider from document type

    I have about 10 items of document type 'highlights'. Each document type has certain fields

    Title, Intro text, Body Text, Image

    What I need to do is get all 'highlights' and output them as html. The highlights will have their own page,

    http;//myurl.com/highlights/highlight1

    http;//myurl.com/highlights/highlight2

    http;//myurl.com/highlights/highlight3

    etc, etc.

    however, if the user has a javascript enabled browser I am going to turn the data into a slider.

  • Grant Thomas 291 posts 324 karma points
    Apr 18, 2012 @ 15:21
    Grant Thomas
    0

    Please state the version of your Umbraco instance.

  • Rocoeh 65 posts 86 karma points
    Apr 18, 2012 @ 16:17
    Rocoeh
    0

    4.7

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 24, 2012 @ 10:58
    Dan Diplo
    0

    Where are the highlights stored? It would be best to store them under a parent document which displays the actual slider

    Parent

    -- Highlight 1

    -- Hightlight 2

    -- Highlight 3 

    Then you can do this in a razor macro placed on the parent page:

    @foreach (var highlight in Model.Children)
    {
        <li>@highlight.Title</li>
    }
Please Sign in or register to post replies

Write your reply to:

Draft