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.

How to make Weblog Entry Lists

March 05, 2009 1:07am

Subscribe [3]
  • #1 / Mar 05, 2009 1:07am

    agrublev

    15 posts

    Hi am very much interested in a way to have users pick different weblog entries and organize them in lists, so that if they like three entries for one purpose they can save it as a list that will contain the entry list, and they can share it with others as a link. Any suggestions??

  • #2 / Mar 05, 2009 1:30am

    lebisol

    2234 posts

  • #3 / Mar 05, 2009 1:47pm

    agrublev

    15 posts

    I am already using that 😊 for favorites. But i need people to be able to make multiple lists, and then link to them. Hence what i have come up with so far is making a Weblog called lists which has 5 custom fields those get filled in when someone clicks a checkbox next to an entry without the user seeing, the SAEF form is hidden and it uses javascript to populate the textfields with the entry id’s of the top 5 you chose. Except now in the display page there is no way for me to feed in the entry id’s into the weblog:entries that will display the top 5. I know you can do {exp:entries weblog="tools" entry_id="23|12|5|55"} but how can i populate that with the output from the weblog lists??? Any ideas?

  • #4 / Mar 05, 2009 1:50pm

    Boyink!

    5011 posts

    Is there a way you can feed those selected entry_id’s into a link, such that you can use segment variables on the weblog:entries tag?

    That’s the basic approach I used on this product comparison tool.

  • #5 / Mar 05, 2009 2:03pm

    agrublev

    15 posts

    Brilliant idea, i will try doing this right away and then ill let you know how it goes! THANKS!

  • #6 / Mar 05, 2009 4:23pm

    agrublev

    15 posts

    Well i’ve pretty much made it work, for anyone who cares here is how you can make topFive lists of weblog posts:

    1. Create a new weblog that is called something like “list”
    2. Create custom field set that has 5 text fields with no formatting
    3. Create a SAEF from the list weblog.
    4. Add a checkbox inside of each entry from your regular Weblog (example default_blog) that onclick calls a JS function
    5. With javascript and jquery do the following type of idea

    var runtime = 1;
                function populateForm(entryId) {
                    alert(entryId);
                    if (runtime == 1)
                        $('#field_id_7').val(entryId);
                    else if (runtime == 2)
                        $('#field_id_8').val(entryId);
                    else if (runtime == 3)
                        $('#field_id_9').val(entryId);
                    else if (runtime == 4)
                       $('#field_id_10').val(entryId);
                    else if (runtime == 5)
                        $('#field_id_11').val(entryId);
                    runtime++;
                }

    6. Now that those are populated just make the page that contains the list weblog with all these values to have a {redirect="list/{segment2}/{segment3}”} the list page needs to contain a {entries} tag that has the entry_id=”{segment2}|{segment3}” attribute

  • #7 / Mar 05, 2009 5:12pm

    lebisol

    2234 posts

    That is pretty cool and alternative way to using topComments and topViews as a scale of popularity.
    Sort of ‘top voted’ or ‘top liked’ entries….good stuff, thanks for sharing!

  • #8 / Mar 05, 2009 7:01pm

    agrublev

    15 posts

    Btw since i really wanted to keep the functionality of being able to select a link to your topFive entries list, i used an iframe so that when you go to the fzilla.com/topfive/TheNameYouChoseForEntry then it has an iframe in the middle of the page that has <iframe scr=”/list/{list1}/{list2}” . Really glad i got this to work 😊

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

ExpressionEngine News!

#eecms, #events, #releases