AnythingSlider in SharePoint

Anything Slider in SharePoint – Update

Several people have asked how to change the under of items displayed in the slider and how to change the sort order.

Item Limit

To change the number of items displayed use the code below.

[sourcecode language=”html”]



'
0




Table

























  • [/sourcecode]

    On line 13 change the RowLimit to the number of items you would like to show. For example if you wanted to show 6 items you would change line 13 to this

    [sourcecode]
    [/sourcecode]

    Sort Order

    Changing the sort order can be done through SharePoint Designer once you are using the updated code

    • Click on the arrow to show the common data view tasks.
    • Click on ‘Sort and Group’ the second option.
    • Make changes as needed.

    If dont want to do it that way there is another  option.

    • Open the page in SharePoint Designer
    • In code view find this ‘SharePoint:SPDataSource’ you will need to edit this tag.
    • Find the SelectCommand and add/edit the OrderBy attibute.
    • See the code below for an example. (Ordered by Created Date  in Ascending order). Its basically a CAML query.
    [sourcecode] my previous post on the Anything Slider.  If you have questions please post a comment.

    Add a Comment

    Your email address will not be published. Required fields are marked *