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.

multiple-entry / single-entry combo

September 06, 2011 6:42am

Subscribe [1]
  • #1 / Sep 06, 2011 6:42am

    gString

    54 posts

    Hi all.
    I have a couple of q. and I think this is the right place for them - pls. correct me if I’m wrong.
    I’m working on a multiple-entry / single-entry template, and it’s working fine, with the exception of a few barriers. In any case, I am not going to use any add-on, just the EE2 itself. 😛

    1. How can I have a pre-selected item when user hits the page first time?
    2. The selected item disappears from the multiple-entries list. How can I undo this behavior?

    Thank you in advance, guys.

  • #2 / Sep 06, 2011 9:07pm

    gString

    54 posts

    One thing I thought I should point out:
    The thing about having a pre-selected entry is that it should not be “hard-wired”. By that I mean that I want the first entry to be selected, but which entry is first is going to be determined and changed by the site’s owner, occasionally.

  • #3 / Sep 08, 2011 7:49am

    gString

    54 posts

    Hi again,
    Just an update: I was able to over-come #1, by having a special page for redirecting.

    {{exp:channel:entries channel="{_channel}" orderby="projectNumber" sort="asc" limit="1"}
        {redirect='{_templateGroup}/{_singleEntry_template}/{url_title}'}
    {/exp:channel:entries}

    However, I’m not very pleased with it. It poses a burden on speed and on my sense of aesthetic. Does any one know if there is something like a “if no-selection” condition or what-ever, that I can use?

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

ExpressionEngine News!

#eecms, #events, #releases