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.

weblog tag - display by week but limit totally entries to a certain number?

June 22, 2007 3:26am

Subscribe [3]
  • #1 / Jun 22, 2007 3:26am

    Rob Quigley

    236 posts

    I want to use the weblog tag to display the most recent weeks content:

    display_by="week" limit="1"

    but limit that weeks content to a limited number of entries, such as just one entry while there may be multiple entries for that day or week.

    ==

    So in other words, I want to display the most recent entry from the past week in one spot, the second most recent week’s entry in another spot (different part of the page),the third entry from the week in yet another spot, and so on. The problem I have at the moment is that the data output from each entry is being dropped in a checkered board fashion on a page (think tables with rows and cells) with non repeating content between the entries - so that I just can’t use one weblog tag (I think) to output the whole thing cleanly.

    I was thinking of using the offset tag of one to show the second entry data, then offset of two to show the third entry data and so on and reusing the weblog tag in the different spots. The issue is then if I’m using the display_by=“week” to limit content to the past week then the offset applies to the display_by_week tag and not to the entries themselves so I can’t apply a limit to the number of entries AND limit the content to the past week.

  • #2 / Jun 24, 2007 6:26pm

    Rob Quigley

    236 posts

    Ok, found the answer to my question elsewhere -> http://ellislab.com/forums/viewthread/54189/

    Essentially using php to tell the weblog to start on a day 7 days previous and then using limit as usual.

    Also - as I state in the following thread - I think there is something wrong with the display_by tag as it seems to give wonky results to a number of people in this thread: http://ellislab.com/forums/viewthread/43367/

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

ExpressionEngine News!

#eecms, #events, #releases