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.

creating two entry formats

September 30, 2007 11:55am

Subscribe [1]
  • #1 / Sep 30, 2007 11:55am

    llorax

    6 posts

    I set up an entry format for a category page to only display the title and link to entries.  The problem was when the permalink was pressed, the article would show up in the same format and didn’t include the actual body.  If I just make two entries they both show up on the content page.  How do I make a new template for all individual articles to follow?

    <div class="entry">
    
    <h2 class="title"><a href="http://{title_permalink={my_template_group}/relationships}">{title}</a></h2>
    by {writer}
    {summary}
    {categories}
    <a href="http://{path=site_index}">{category_name}</a> •
    {/categories}
    </div>
    
    <div class="entry">
    {date_heading}
    <h3 class="date">{entry_date format=' %l, %F %d, %Y '}</h3>
    {/date_heading}
    
    <h2 class="title">{title}</h2>
    {body}
    
    {extended}
    
    <div class="posted">Posted by {writer}
    
    
    
    {categories}
    <a href="http://{path=site_index}">{category_name}</a> •
    {/categories}
    </div>
    {/exp:weblog:entries}
    </div>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases