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.

Permalink vs. autopath?

September 21, 2009 1:21pm

Subscribe [2]
  • #1 / Sep 21, 2009 1:21pm

    tonyd3

    13 posts

    Which is the preferred method of getting a full URL with the entry title at the end?  I can’t really see the difference aside from implementing them.

    That is to say, which is better:

    A.  <a href=’{title_permalink=template_group/template}’>

    - or -

    B.  Setting the Comment Page URL and using <a href=’{comment_url_title_auto_path}’>

  • #2 / Sep 21, 2009 1:23pm

    Lisa Wess

    20502 posts

    That depends entirely on your setup. In any given installation I might use both in different templates.  Generally I prefer B since I usually correlate template groups to weblogs, but that’s my own personal preference.  There is no best practice here.

  • #3 / Sep 21, 2009 1:25pm

    tonyd3

    13 posts

    Thanks for the fast response Lisa.  Just for future reference, and so I can wrap my head around it, what would be the advantage of using A in one template and B in another?

  • #4 / Sep 21, 2009 1:25pm

    Boyink!

    5011 posts

    Either will work.

    I actually prefer:

    C. url_title_path 😉

    I only use comment_url_title_auto_path when I have to—because it obscures the target template in the code.  With url_title_path or title_permalink you can see right where the link is going.

    FWIW I just did a little screencast showing where comment_url_title_auto_path comes in handy.

  • #5 / Sep 21, 2009 1:36pm

    tonyd3

    13 posts

    C!?!??!

    “You’re killing me Smalls!”  😊

    So, what does ur_title_path do differently / how would you use it? 

    If I just go <a href=’{url_title_path}’> that just takes me to a URL with no template group in front of it and hence an invalid page (assuming its not the default template group I guess).

  • #6 / Sep 21, 2009 1:39pm

    Boyink!

    5011 posts

    Those are questions the docs are good at answering..😉

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

ExpressionEngine News!

#eecms, #events, #releases