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

Forums / Developing with Sitefinity / List of links for generic content items?

List of links for generic content items?

6 posts, 0 answered
  1. Marianella
    Marianella avatar
    11 posts
    Registered:
    30 Sep 2010
    04 Oct 2010
    Link to this post
    Hello,

    I have a series of pages that are shared content in my site, and I am looking to create a table of content for all these pages (they are biographies) so ideally, I would like to have the main page become a series of links from the generic content items that I have already assigned to one category.

    I have tried many things with the ContentView control to no avail. I am able to display all the items (but the full bios) on one page, but not links to the pages. I have tried with lists, but I am not finding a way to build the list dynamically.

    Any help would be appreciated!

    Thanks,

    Marianella
  2. Leonard
    Leonard avatar
    19 posts
    Registered:
    01 Dec 2005
    04 Oct 2010
    Link to this post
    A possible solution is to create a Blog dedicated to your bios, each bio being a blog entry. Then use "Blog Posts" control that ships with Sitefinity to present the list of posts (bios), with the layout of your choice. One of the available layouts is what you mentioned - list of links that point to the full post (bio) page.

    I hope this helps --

    Leonard

     
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Oct 2010
    Link to this post
    Hello Marianella,

    You can use Generic_Content provider and create content items inside it. Then assign each item to a category. ContentView control has a public property FilterExpression that you can use the filter the entire list by Category. The syntax for the expression is  Category = "Category Name Here".

    You could also create a custom metakey for each content item where you type the page name or other data and link using this metakey to filter or sort content items list.


    Greetings,
    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
  4. Marianella
    Marianella avatar
    11 posts
    Registered:
    30 Sep 2010
    04 Oct 2010
    Link to this post
    Hi Leonard,

    The problem with making them blog posts is that I need the content to remain as shared content. The content is being used for two separate web purposes so the blog would not work for one of the pieces.

    Thanks for the help!

    Marianella
  5. Marianella
    Marianella avatar
    11 posts
    Registered:
    30 Sep 2010
    04 Oct 2010
    Link to this post
    Hi Ivan,

    This is what I just did:

    Added category="Hall of Fame" under the FilterExpression field

    Then, this is the error that I get:

    Left operand 'category="Hall' is not supported. Supported left operands are :

        * Name
        * Description
        * Author
        * Category
        * ID
        * Tag.ID
        * Tag.Name
        * ParentID

    Condition 'of' is not supported. Supported conditions are :

        * =
        * <>
        * >
        * <
        * >=
        * <=
        * IN
        * LIKE
        * IS NULL
        * IS NOT NULL

    Also, I am not sure I understand how to go about the second suggestion: "You could also create a custom metakey for each content item where you type the page name or other data and link using this metakey to filter or sort content items list.", and how I could make it work.

    Thanks for your help!

    Marianella
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Oct 2010
    Link to this post
    Hello Marianella,

    You should have spaces in the query - Category = "Category Name Here". This is how I posted it in the previous post. About creating a custom fields you can take a look at our User Manual, page 214 - Adding Custom Fields

    Regards,
    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
Register for webinar
6 posts, 0 answered