More in this section

Forums / Developing with Sitefinity / Using a list as an FAQ

Using a list as an FAQ

2 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    05 Aug 2010
    07 Oct 2010
    Link to this post

    I'm using the Lists module to store FAQ's - seems like to covers the requirements pretty well. One thing though - is it possible to have each list item link to its own url dyanmically? Similarly to how the News module creates a url for each article.

    Is it possible?

    Thanks in advance
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    07 Oct 2010
    Link to this post
    Hello Alastair,

    When you use PageList mode of ListDisplay control and click on the headline you are not supposed to go to another page. The control changes its presentation mode and you are on the same page. You can customize the control, but this means that you have to override its behavior and change the NavigateUrl of the heading.

    Create a custom control that inherits from ListDisplay. Then override PageLists_ItemCreated and implement a custom method that will show a single item based on the ID of a single item in the QueryString

    /// <summary>
    /// Summary description for ListsDisplayCustom
    /// </summary>
    public class ListsDisplayCustom :ListDisplay
        protectedoverridevoidPageLists_ItemCreated(objectsender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
                var qs = Context.Request.QueryString["item"];
                base.PageLists_ItemCreated(sender, e);
        public virtual void ShowSingleItem(stringid)
            IListItem listItem = (IListItem)this.Manager.GetListItem(newGuid(id));
            if(this.PageListContainer.Headline != null)
                ((Control)this.PageListContainer.Headline).Visible = true;
                this.PageListContainer.Headline.Text = listItem.Headline;
            if(this.PageListContainer.Content != null)
                ((Control)this.PageListContainer.Content).Visible = true;
                this.PageListContainer.Content.Text = "";// get the list item content here
            if(this.PageListContainer.BackToAllItemsButton != null)
                ((Control)this.PageListContainer.BackToAllItemsButton).Visible = true;
            this.PageListContainer.Lists.Visible = false;

    You have to add a ToolboxItem for the control and override PageListTemplatePath to set the path to your template.

    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
2 posts, 0 answered