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.

Basic Design Question: How to Link Channel Title to content

May 23, 2011 7:48pm

Subscribe [2]
  • #1 / May 23, 2011 7:48pm

    restos

    54 posts

    Hello,

    I´m new to EE 2 and I need some help with basic questions.

    I´ve the following template code:

    <div id="container">
        {exp:channel:entries channel="blog" orderby="date" limit="5"}
            <h3>{title}</h3>
    <p>        {news_body}</p>
    
    <p><div class="date">Posted on {entry_date format="%M %d, %Y - %h:%i %A"}</div><br />
            {/exp:channel:entries}

    I want to link the {title} with {news_extended} in a new page.

    {news_extended} is a custom filed for blog channel.


    Thank you.

  • #2 / May 23, 2011 9:02pm

    ewn

    100 posts

    First things first - if you want something to be a hyperlink you need to link it in the HTML right?

    So something like:

    <div id="container">
        {exp:channel:entries channel="blog" orderby="date" limit="5"}
            <h3><a href="http://{title_permalink=blog/fullentry}">{title}</a></h3>
  • #3 / May 23, 2011 9:05pm

    restos

    54 posts

    Something is wrong on my side:

    Not Found

    The page you attempted to load was Not Found. Please try again.

  • #4 / May 23, 2011 9:13pm

    ewn

    100 posts

    Right, that was just an example.  You need to name it per your template names.

    blog/fullentry <————- means go to the template group blog and the template ‘fullentry’ - whatever that is on your side you need to rename to your template names.  (I am guessing “blog” is your template group name in this case).

  • #5 / May 23, 2011 9:16pm

    restos

    54 posts

    Thank you.

    Now I understand how EE works.

  • #6 / May 23, 2011 9:18pm

    ewn

    100 posts

    😊

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases