+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / How to use list as pagelist

How to use list as pagelist

3 posts, 0 answered
  1. Sunil Gupta
    Sunil Gupta avatar
    2 posts
    Registered:
    25 Mar 2010
    09 Apr 2010
    Link to this post
    Hi,

    I am defining a list in the list modules. how can i use that list as a page list. i.e. open a new page on click on the list item. where to specify the url of the page to be opened.

    please help.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Apr 2010
    Link to this post
    Hi Sunil Gupta,

    In the Item Content of a list item you can enter some links and set the target property to "_blank", so that you will be able to navigate to this links.

    The template of SimpleList mode has the structure as shown below

    <asp:Repeater ID="lists" runat="server">
        <ItemTemplate>
            <h2 class="sf_listTitle"><asp:Literal ID="listTitle" runat="server" /></h2>
            <asp:Repeater ID="listItems" runat="server">
                <HeaderTemplate>
                    <ul class="sf_simpleList">
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <asp:Literal ID="content" runat="server" />
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </ItemTemplate>
    </asp:Repeater>

    If necessary you could subscribe for ItemDataBound event of the repeater and access IListItem items and INamedList items and modify the behavior of the control. You could add LinkButton control in the HeaderTemplate and ItemTemplate and set the Text property to the name of the list and list items, so that you will have better control.

    Another option would be using Generic Content control and adding list of links as a content of an IContent item.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Sunil Gupta
    Sunil Gupta avatar
    2 posts
    Registered:
    25 Mar 2010
    09 Apr 2010
    Link to this post
    your answer did not specify where to put the URL of the page that needs to be open, and how can this be achieved without using the usercontrol page/.net pages, we want to do this by using only the list modules in the sitefinity.

    plz help ASAP
Register for webinar
3 posts, 0 answered