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.

linking

June 21, 2007 8:22pm

Subscribe [2]
  • #1 / Jun 21, 2007 8:22pm

    nullbreached

    116 posts

    I seem to be having some issues with just basic linking.

    I created a new template in my template group and called it blog. In my main nav, I want to link to this new template from the index file (and basically every nav after that)...

    I am getting this error though…

    INVALID URL

    And this is is the url it creates

    <a href="http://mydomain.com/index.php/final/index/&#x7Burl_title_path=final/blog&#x7D">http://mydomain.com/index.php/final/index/{url_title_path=final/blog&#x7D</a>;

    Thanks!

  • #2 / Jun 21, 2007 8:57pm

    Boyink!

    5011 posts

    Can you post the code that you have creating the links?

  • #3 / Jun 21, 2007 8:59pm

    nullbreached

    116 posts

    <div id="mainnav-wrap">
                    <h2 class="noDisplay">Main Menu</h2>
                    <ul>
                        <li class="current"><a href="http://" title="Home Page">home</a></li>
                        <li><a href="http://" title="">events</a></li>
                        <li><a href="http://{url_title_path={my_template_group}/blog}" title="">blog</a></li>
                        <li><a href="http://" title="">press</a></li>
                        <li><a href="http://" title="">contact</a></li>
                    </ul>
                </div>
  • #4 / Jun 21, 2007 9:00pm

    Lisa Wess

    20502 posts

    Is that all of the code?  You have no weblog entries tag, and url_title_path is not a global variable, it is specific to the {exp:weblog:entries} tag…. it won’t parse out of context, hence the problem.

  • #5 / Jun 22, 2007 7:47am

    nullbreached

    116 posts

    This is just my nav bar code. Why would I need a weblog for my nav bar? The file or “page” that I am trying to call in my nav is my blog template.

  • #6 / Jun 22, 2007 7:57am

    silenz

    1651 posts

    Because {url_title_path} can only be used inside a weblog:entries-tag. It will create a link to a specific entry using its url_title.

    To link to your blog-template you use:

    {path={my_template_group}/blog}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases