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.

Entry’s structure

February 17, 2014 5:06am

Subscribe [3]
  • #1 / Feb 17, 2014 5:06am

    nermin

    11 posts

    Hi all

    I need some help on structuring entry’s in the right way and achieve the desired results. As shown on the attached illustration, I have a list of thumbnails which are links, and they link to same template. And I would like to hide the active entry from the thumbnail list, when a single entry is active.

    As shown in the attached illustration; when a user clicks on the thumbnail A, and the A thumbnail shows at the top of the page, then thumbnail A should be hidden in the thumbnails list. The same with, when thumbnail B is active and so on…

    Please write me, if you have any qualified suggestions on how to solve this, it is urgent 😊

    Thank you in advance
    N

    Link to image: http://nermin.dk/img/structure.png

  • #2 / Feb 17, 2014 10:37am

    Rob Allen

    3114 posts

    I’d think you’d need some Javascript to do this.

    Output your entries list as normal, then on click write the content to the “top” container and add a CSS class to hide the clicked list item.

  • #3 / Feb 17, 2014 11:10am

    Boyink!

    5011 posts

    My only thought was the related entries mode on the channel:entries tag:

    http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html#related-categories-mode

    You’d have to assign entries a & b to a category, but then while on a single entry page you can show other entries in the same category excluding the currently-displayed main entry.

  • #4 / Feb 18, 2014 5:22am

    nermin

    11 posts

    Thank you for your answers. Javascript could of course be a possible solution, but I will try to make it work with an EE native solution.

    Boyink, I think that I understand your suggestion, but it is still unclear for me, how to exclude the currently-displayed main entry. Could you please make a more detailed explanation on it.

    BR

  • #5 / Feb 18, 2014 7:42am

    Boyink!

    5011 posts

    From the docs:

    When enabled, this parameter alters the behavior of the {exp:channel:entries} tag, causing it to ignore the entry ID or URL title found in the URL, and instead show a list of entries that are in the same category as the entry specified in the URL. This lets you create a list of entries that are “related” to the primary one specified by the URL.

    Use it to build the list of entries not being displayed, and use another entries tag to display the main entry.

  • #6 / Feb 19, 2014 9:44am

    nermin

    11 posts

    Hi Boyink!

    I got it right, and it works perfectly, when I am on the single entry, but there is still a challenge on the starting page.

    To illustrate it better, if url is the following:
    http://www.url.com/home = list of “thumbnails = entries” A,B,C etc. plus single entry A details is shown on the top of the page.

    When clicking on the thumbnail B, the url should look like:
    http://www.url.com/home/B = list of “thumbnails = entries” shows: A & C and entry B is shown on the top in details.

    The problem now is that on the start page “www.url.com/home” the list of “thumbnails = entries” “A,B,C” is gone.

    Any suggestions on how to solve it?

    BR

  • #7 / Feb 19, 2014 1:18pm

    Boyink!

    5011 posts

    I’d look into some conditionals and segment variables…

  • #8 / Feb 19, 2014 5:06pm

    nermin

    11 posts

    Hi Boyink!

    Great, thanks for your help, I got it right, it works now! 😊

  • #9 / Feb 19, 2014 6:23pm

    Boyink!

    5011 posts

    Cool deal..😉

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

ExpressionEngine News!

#eecms, #events, #releases