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 to a "more" page

November 15, 2007 2:01pm

Subscribe [2]
  • #1 / Nov 15, 2007 2:01pm

    cclus

    10 posts

    I have a site working nicely (so far) that does the following:

    - There are multiple weblog entries to a given template (“comms” template group, “news” template);

    - I control how many news entries are displayed on the main “comms” page (3 most recent news entries, determined by the offset variable, showing only the first 10 words of each entry);

    Problem is, I cannot figure out how to link to each entry. I have tried permalink and other methods described and I either get an “Invalid URI” or nothing.

    Here’s the URL: http://ncif.pmhclients.com/index.php/comms/

    I know how to do this in pMachine, but I’m missing something basic in EE and I can’t figure out what it is. Thanks!

  • #2 / Nov 15, 2007 6:55pm

    Leslie Camacho

    1340 posts

    Did you get it figured out? The links I clicked on your site seem to work. Most of the time issues like you describe are because the weblog paths aren’t set right in the CP.

  • #3 / Nov 15, 2007 8:39pm

    cclus

    10 posts

    Greetings,

    No it’s not working…click on the “more” links in the right column of the URL I have in my first posting, you will get an “Invalid URI” page.

    When you say having the paths set correctly in the CP what do you mean exactly? (I know CP means Control Panel) Please be specific as I have spent 6 hours on this, so clearly I am not getting it somewhere.

    P.S. - I have a very great familiarity with pMachine, but (apparently) not with Exp Eng, so it’s doubly frustrating.

    Thanks!

  • #4 / Nov 15, 2007 10:26pm

    Leslie Camacho

    1340 posts

    If you haven’t, its worthwhile to go through the Quick Start Tutorial as that will take you through the steps for setting up a read more page and links in the CP.

  • #5 / Nov 15, 2007 10:43pm

    Leslie Camacho

    1340 posts

    Ah, found it. The URLs aren’t formatted correctly. You probably have something like this:

    <a href="http://ncif.pmhclients.com/index.php/comms/{url_title_path=comms/news}">More</a>

    And should be more like this:

    <a href="http://{url_title_path=comms/news}">More</a>
  • #6 / Nov 16, 2007 12:15am

    cclus

    10 posts

    Please stay with me, I really appreciate it…but your suggestion is the code I have. Here it is:

          ../../../images/title_news2.jpg
          {exp:word_limit total="10"}{exp:weblog:entries weblog="news" limit="1"}{mainContent}{/exp:weblog:entries}{/exp:word_limit}Read More
         
          {exp:word_limit total="10"}{exp:weblog:entries weblog="news" limit="1" offset="1"}{mainContent}{/exp:weblog:entries}{/exp:word_limit} >more
         
          {exp:word_limit total="10"}{exp:weblog:entries weblog="news" limit="1" offset="2"}{mainContent}{/exp:weblog:entries}{/exp:word_limit} >more

    Is there some *really basic* thing I need to do about establishing the name of a weblog for a specific entry or something? In trying to solve this I keep thinking that I’ve forgotten a basic step in establishing a weblog and/or mapping it to a template.

    Thanks!

  • #7 / Nov 16, 2007 3:04am

    Lisa Wess

    20502 posts

    Try moving the plugin tags to around *just* {mainContent} rather than around your entire weblog entries tag.  You also need the url_title_path variable inside the weblog entries tag for context.

    {exp:weblog:entries weblog="news" limit="1" offset="2"}
     {exp:word_limit total="10"}
    {mainContent}
    {/exp:word_limit}
    <a href="http://{url_title_path=comms/news}"> >more</a>
    {/exp:weblog:entries}
  • #8 / Nov 16, 2007 11:38am

    cclus

    10 posts

    Ok, Thanks! It gets me to the right entry, and I get my syntax error. But now there is a new problem introduced, which I will address in a new post to keep this one focused.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases