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.

one weblog, twice on one page based on category????

July 24, 2007 4:17pm

Subscribe [2]
  • #1 / Jul 24, 2007 4:17pm

    Eastwood Design

    605 posts

    I have one weblog and 2 categories in that weblog.  I want to show all category 6 entries then show category 7 entries all on one page.  For some reason it is not displaying anything if I try both.  Here is what I am doing.

    {exp:weblog:entries weblog="womencedlinks" sort="asc" category="6" orderby="date" limit="99"}
    <div align="left"><h1>{title}</h1></div>  <div id="textlinks">{womencedlinks_url}</div>
       <div align="left">{womencedlinks_content}</div>
    {/exp:weblog:entries}  
    
       {exp:weblog:entries weblog="womencedlinks" sort="asc" category="7" orderby="date" limit="99"}
    <div align="left"><h1>{title}</h1></div>  <div id="textlinks">{womencedlinks_url}</div>
       <div align="left">{womencedlinks_content}</div>
    {/exp:weblog:entries}

    Is there a problem with tring to display a weblog twice on one page?
    using v 1.6.0

  • #2 / Jul 24, 2007 4:18pm

    Lisa Wess

    20502 posts

    What is the URL you are visiting this at? I suspect you need dynamic=“off”.

    by the way - EE, by default, limits to 100, so you don’t really need that limit=“99” unless that single entry difference is a huge deal. =)

  • #3 / Jul 24, 2007 5:58pm

    interesting bit about the default limit… but if you specify a limit greater than 100, EE will do it, right?

  • #4 / Jul 24, 2007 6:36pm

    Lisa Wess

    20502 posts

    Yes, that is just a default to protect from using excess memory without doing so on purpose. =)

  • #5 / Jul 25, 2007 9:43am

    Eastwood Design

    605 posts

    What do you mean what url am I visiting this at?

    still does not work when dynamic is off.  I tried this:

    <div id="womenced">
      <strong>Community-based Economic Development Links 
      </strong>
       {exp:weblog:entries weblog="womencedlinks" sort="asc" category="6" orderby="date" dynamic="off"}
    <div align="left"><h1>{title}</h1></div>  <div id="textlinks">{womencedlinks_url}</div>
       <div align="left">{womencedlinks_content}</div>
    {/exp:weblog:entries}  
    
      <strong><strong>Community-based Economic Development Links 
      </strong>
    Local web sites include:
       {exp:weblog:entries weblog="womencedlinks" sort="asc" category="7" orderby="date" dynamic="off"}
    <div align="left"><h1>{title}</h1></div>  <div id="textlinks">{womencedlinks_url}</div>
       <div align="left">{womencedlinks_content}</div>
    {/exp:weblog:entries} </div>

    when I try this and click update the page reloads and everything on the page after

    </strong>
    Local web sites include:

    is stripped and the page just ends.

  • #6 / Jul 25, 2007 9:55am

    Eastwood Design

    605 posts

    I think I got it, there was a little little typo in the code (I think I was missing a </p> tag.  Problem seems to have been solved.  Thanks for your quick replies

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

ExpressionEngine News!

#eecms, #events, #releases