ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to go from list of records to individual record page?

November 12, 2012 5:11pm

Subscribe [2]
  • #1 / Nov 12, 2012 5:11pm

    99developer

    16 posts

    I’ve kindda figured out how to display a list of Channel records (e.g. a product list page). How would I go about providing my users with a link to the individual record (e.g. the product details page)?

  • #2 / Nov 12, 2012 6:23pm

    Boyink!

    5011 posts

    - Create a detail template with another channel:entries tag pair, limited to 1, dynamic not turned off. 
    - Link to the detail template from the list template using a linking variable that puts the entry’s url title into the path - either url_title_path or title_permalink

  • #3 / Nov 12, 2012 6:27pm

    99developer

    16 posts

    Why limited to 1? Shouldn’t it already be 1 anyway?

  • #4 / Nov 12, 2012 6:28pm

    Boyink!

    5011 posts

    Just an extra good measure in case someone hacks off the url_title of the entry, which would cause the channel:entries tag to repeat up to 100x depending on how many entries were in the channel.

  • #5 / Nov 14, 2012 4:56pm

    Dan Decker

    7338 posts

    Hi 99developer,

    What Mike is describing is a means to make sure it only returns 1 entry, an individual record.

    ~

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases