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.

Documentation about Channel Path Preferences

November 28, 2010 5:45pm

Subscribe [4]
  • #1 / Nov 28, 2010 5:45pm

    Lee Powell

    88 posts

    Hi - is there any documentation about setting Channel Path Preferences? I can’t quite get my head around what I should be setting…

    For example I’ve created a channel for news articles aptly named ‘news’. I’ve also created a new template group called ‘news’, with the 2 templates named ‘index’ and ‘article’.

    I’d expect the landing page, showing the excepts of the latest 10 articles at this url, using the ‘index’ template within my ‘news’ template group:

    http://mysite.com/news/

    To then view an article via a template in the ‘news’ template group:

    http://mysite.com/news/article/this_is_my_article

    So, what should the settings be in my Channel Preferences for news? Or am I going about this the wrong way??

    Thanks.

  • #2 / Nov 29, 2010 1:58am

    John Henry Donovan

    12339 posts

    Lee,

    One example of using these paths is the variable {comment_url_title_auto_path} which is replaced by the URL set in the “Comment Page URL” which would be something like http://mysite.com/news/article/

    {exp:channel:entries channel="news" limit="10"}
    <h3>{title}</h3>
    <p>{summary}<br />
    <a href="http://{comment_url_title_auto_path}">Read More</a><br />
    {/exp:channel:entries}

    Does that help?

  • #3 / Nov 29, 2010 4:54am

    Lee Powell

    88 posts

    Hi John,

    Thanks for your reply.

    So, for my news channel, the other paths would be:

    Channel URL: http://mysite.com/news
    Search Results URL: http://mysite.com/news/search
    Ping Results URL: http://mysite.com/news/ping
    RSS Results URL: http://mysite.com/news/rss

    Is that correct? Also, should they end with a slash?

    Thanks.

  • #4 / Nov 29, 2010 7:28am

    Sue Crocker

    26054 posts

    Hi, Lee. No, they don’t need to end in a slash. Assuming that’s where you want your items to go… then the paths are OK.

  • #5 / Nov 29, 2010 7:36am

    Lee Powell

    88 posts

    Hi Sue,

    Thanks for your reply.

    I think the point is I’m not sure if that’s where I want/should have them going. In what case and how do these other paths get used?

    Thanks.

  • #6 / Nov 29, 2010 8:27am

    Sue Crocker

    26054 posts

    When you click on a search result, you want to go to a single entry template, to just view that entry. Normally if you’re using the Agile theme, that would be a comments template.

    Same with the ping url. It goes to a single entry template. Now if you’re wanting to keep track of where your hits are coming from, you could use separate templates. Otherwise, just use your comments/single entry page.

    For the RSS setting, where is your RSS feed at? That’s the path for that setting.

    Does that help?

  • #7 / Nov 29, 2010 11:24am

    Lee Powell

    88 posts

    Excuse me being a newcomer to EE - but I don’t understand why I would use a comments template to view an article?

    Thanks.

  • #8 / Nov 29, 2010 4:24pm

    Ingmar

    29245 posts

    why I would use a comments template to view an article?

    While details are up to you, of course, this is quite a common setup: you have an “index” page with a list of articles, and a secondary, single-entry template that also includes a comment form. You could certainly use yet another template for that purpose, too.

  • #9 / Dec 23, 2010 6:46am

    Lee Powell

    88 posts

    Thanks for all the help with this - now I’m in the middle of my first EE build, I can see how valuable these paths are 😊

    Completely ‘get’ them now.

  • #10 / Dec 27, 2010 11:10am

    Sue Crocker

    26054 posts

    Glad to hear it! Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases