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.

single_page

March 04, 2008 7:19pm

Subscribe [2]
  • #1 / Mar 04, 2008 7:19pm

    scarduner

    5 posts

    THis seems so basic but I can’t find anything on how…

    I want to provide to list weblogpostings in a brief table with a link to open each in a page only displaying that entry

    Read more
    generates this URL )for event_three) but it doesn’t display that entry if it’s not the first entry.

    http://nyimc.pmhclients.com/index.php/site/event/single_entry/event_three/

    I can limit the template to one entry but it’s not displaying the entry in the URL

    i can’t find anything on single_entry. So I am assuming that’s not the way…

    Thanks
    -Stuart

  • #2 / Mar 05, 2008 12:00pm

    tbritton

    714 posts

    This is very basic. You need to do some basic reading.

    Dissecting the Default Templates is an excellent series of articles, as is The Importance of Semantics. I think you will enjoy both very much!

    Placing your code between weblog:entries tags but removing the extra item will automatically generate the correct permalinks.

    <a href="http://{title_permalink=template_group/template}">Read more</a>

    Then the template where you are “reading more” needs a weblog:entries limit=“1” arrangement, with the custom fields listed below.

    {exp:weblog:entries limit="1"}
    {title}
    {body}
    {/exp:weblog:entries}

    Terry

  • #3 / Mar 05, 2008 1:27pm

    scarduner

    5 posts

    Thanks, Terry

    It can be a struggle for a non-programmer to work with something like expressionengine. I read all those docs you mentioned. Sometimes just syntax can be a challenge, In this case I found someone using “single-entry” and thought it the way to go even though i couldn’t find anything on it.

    Your help greatly appreciated. Without this forum I - and others in my shoes - would be lost, unable to use this great application…

    Stuart

  • #4 / Mar 05, 2008 2:50pm

    tbritton

    714 posts

    Well, that one item had me stumped for weeks, so I certainly understand!! It never occurred to me that it would fill the url automatically and send it to the template just like that. (The “read more” template - a single entry “article” or “comments” template - uses the URL to dynamically assign the article… and it is smart enough to know which weblog that article came from, since they all have unique id’s).

    Keep on pluggin - it is deeper into programming than many ever thought they would go for many, but it is made so much easier by the ExpressionEngine methods that it becomes ‘interesting’ very quickly!

    Terry

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

ExpressionEngine News!

#eecms, #events, #releases