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.

multi-entry & single-entry templates

December 19, 2010 12:03pm

Subscribe [2]
  • #1 / Dec 19, 2010 12:03pm

    jmc7

    7 posts

    Hi there,

    I’m really digging EE!

    I have a Channel called “Articles” with a template in Articles/index which displays the multiple entries.  I have two questions:

    1) When displaying the multiple entries on the screen, I want the article body text(article_body) to be limited to a smaller amount of words or characters.  Is there anyway to do this without adding a new “summary” field and doing it manually?  I’d love to have something like:

    {articleBody maxChars="200"}

    2) After the article_body text I have a link to the single-entry page like so:

    <a href="http://{comment_url_title_auto_path}">more</a>

    I would really like to have two templates, one for multiple-entries one for single-entries.  The single entry template would have the typical comment section and some other features.  Can you help me to achieve this?  Or if there is a different way I should be thinking about this, please let me know.

    Thanks,
    Jeff

  • #2 / Dec 20, 2010 10:47am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, Jeff!

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    1. Look on Devot-ee.com for plugins that will limit the characters or number of words. There are several there.

    2. The {comment_url_title_auto_path} doesn’t have to be for comments per se. You can use it for any sort of single entry page. You might want to make a permalink page as well.. for example, if you have a template called site/info - you’d build your link like this:

    Does that help?

  • #3 / Dec 20, 2010 10:49am

    jmc7

    7 posts

    refresh

  • #4 / Dec 20, 2010 10:59am

    jmc7

    7 posts

    Ah, your image just came through and made a lot more sense than the original code block 😊

    Thanks for the quick reply with this, it is very helpful.

    -Jeff

  • #5 / Dec 20, 2010 11:26pm

    Lisa Wess

    20502 posts

    Hi, Jeff -

    You might also find the first article in The Importance of Semantics will help you in building this dynamically.

    Does that help, and did you have any further questions?

    Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases