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.

What is the correct weblog path

March 18, 2008 6:49am

Subscribe [2]
  • #1 / Mar 18, 2008 6:49am

    leadsuccess

    408 posts

    ok EE is a mother to learn but worth it, so…

    I am trying to get my weblogs pointing to the right path this is what i am using

    {exp:weblog:entries weblog="news|lifestyle"}

    More Info

    {/exp:weblog:entries}

    Here is what I get if I click on the link.

    <a href="http://example.com/{weblog_short_name/vancouver_international_boat_show//info}">http://example.com/{weblog_short_name/vancouver_international_boat_show//info}</a>

    I have tried many different approaches but none work, help!

  • #2 / Mar 18, 2008 10:51am

    e-man

    1816 posts

    ok EE is a mother to learn but worth it, so…

    I am trying to get my weblogs pointing to the right path this is what i am using

    {exp:weblog:entries weblog="news|lifestyle"}

    More Info

    {/exp:weblog:entries}

    Here is what I get if I click on the link.

    <a href="http://example.com/{weblog_short_name/vancouver_international_boat_show//info}">http://example.com/{weblog_short_name/vancouver_international_boat_show//info}</a>

    I have tried many different approaches but none work, help!

    The basic syntax for url_title_path is

    <a href="http://{url_title_path=weblog/archives}">permalink</a>

    where “weblog” refers here to a template group called “weblog” and “archives” to a template called “archives” inside the “weblog” template group. (this is a confusing example in the docs I admit)
    Is {weblog_short_name} referring to a weblog or a template group?

    Remember your weblogs are just containers for data, it’s the way your template groups and templates are structured that determine your paths.

  • #3 / Mar 18, 2008 1:11pm

    Arun S.

    792 posts

    ok EE is a mother to learn but worth it, so…

    I am trying to get my weblogs pointing to the right path this is what i am using

    {exp:weblog:entries weblog="news|lifestyle"}

    More Info

    {/exp:weblog:entries}

    Here is what I get if I click on the link.

    <a href="http://example.com/{weblog_short_name/vancouver_international_boat_show//info}">http://example.com/{weblog_short_name/vancouver_international_boat_show//info}</a>

    I have tried many different approaches but none work, help!

    I don’t think that you can add EE tags inside the url_title_path tag.  At least I haven’t been successful with it.

    The way I would do what you are trying is this:

    <a href="http://{site_url}{weblog_short_name}/info">More Info</a>
    
    Result: <a href="http://www.example.com/news/info">http://www.example.com/news/info</a>
    <a href="http://{site_url}{weblog_short_name}/info/{url_title}">More Info</a>
    
    Result: <a href="http://www.example.com/news/info/vancouver_international_boat_show">http://www.example.com/news/info/vancouver_international_boat_show</a>

    I wasn’t sure if you wanted the url_title in the URL or not.

  • #4 / Mar 18, 2008 2:44pm

    leadsuccess

    408 posts

    thanks for all the help and good ideas!  What I did was this:

    <a href="http://{weblog_short_name}/{url_title}">[Read More]</a>

    I am using this since I take index.php out of the URL.  So the end result is this in th URL.

    http://example.com/news/no_more_soda

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

ExpressionEngine News!

#eecms, #events, #releases