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.

Advice on Specific Ordering

May 30, 2012 12:36pm

Subscribe [2]
  • #1 / May 30, 2012 12:36pm

    asterox

    5 posts

    Hi all. Relative novice to EE so please bear with me.

    I’m trying to accomplish this:

    1. On a homepage, have a list of entry headlines that are color coded according to category.
    2. Each entry headline will have a class attached to it which dictates it’s size relative to the others. Ideally this would be tied to date so more recent entries would be physically larger than less recent ones.
    3. However, I’d like to be able to sequence the order in a non-linear fashion. In other words, the first entry on the list might be smaller because it’s less recent than the fourth entry which might be larger because it’s the most recent entry.

    The effect is similar to a “tag cloud” except the larger item is more recent.

    I don’t mind if there’s some manual work to be done here as there will only be a set number of headlines to worry about (around 7) but I’m having difficulty figuring out the best conceptual approach between statuses, categories and/or add-ons like Low Reorder.

    Any help would be greatly appreciated.

    Thanks.

  • #2 / May 30, 2012 12:44pm

    Boyink!

    5011 posts

    So ordering by date isnt an option?

  • #3 / May 30, 2012 12:48pm

    asterox

    5 posts

    I’m not sure how I’d order by date in a nonlinear fashion.

    So if there are, say, 5 entries with 1 being the most recent, I’d want to be able to order this way

    5
    4
    1
    2
    3

    for example. And then tie that to a class so that the “1” (most recent entry) would be physically larger than the “5” entry. I hope this is making sense.

    Thanks very much for the reply.

  • #4 / May 30, 2012 12:50pm

    Boyink!

    5011 posts

    If the ordering is really arbirtrary, then Low Reorder will be your best bet.

    For the class I’d look into some calculations of entry_date vs. current time.

  • #5 / May 30, 2012 12:56pm

    asterox

    5 posts

    thanks for the reply.
    i could theoretically fix the order as there will be a set number of entries on that page.
    will look into calculation.

  • #6 / May 30, 2012 1:02pm

    asterox

    5 posts

    any chance you could elaborate on the entry_date vs. current time idea? don’t mean to impose on your time but as i mentioned, i’m relatively new to this. if it’s too involved, no worries. thanks again.

  • #7 / May 30, 2012 1:03pm

    Boyink!

    5011 posts

    Oh - just a thought that each entry is time-stamped with entry_date, and possibly you could do a date comparison to figure out the relative age of each entry and use that to apply a class.

  • #8 / May 30, 2012 1:05pm

    asterox

    5 posts

    if i were to do it manually, would this seem (inefficient but) feasible?

    set color by category

    set size by status

    use low-reorder to determine positioning in the list

    every time a new entry was made, it would require the admin to manually cascade the statuses of the last five entries but this would theoretically work, yes?

  • #9 / May 30, 2012 1:07pm

    Boyink!

    5011 posts

    It would.

    You could also create a “color” field, and a “size” field.  And, for that matter, a sort field.

  • #10 / May 30, 2012 1:14pm

    asterox

    5 posts

    re: the date entry idea - sounds smart and also beyond me. 😊

    had thought of the custom fields but thought the low reorder visual model would actually work better for the guy who’s going to be using it day to day. color field might be a better idea than linking to category as well in case he decides to decouple color and category.

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

ExpressionEngine News!

#eecms, #events, #releases