We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

REEOrder Module (Custom ordering of entries)

Development and Programming

Eric Barstad's avatar
Eric Barstad
198 posts
17 years ago
Eric Barstad's avatar Eric Barstad
I think it would definitely be useful to reorder by Category as well since this module works with weblog entries. I’d imagine that when choosing the weblog there could be a drop down that would ask if you’d like to sort by all, or per category. Then, when reordering it could be broken up into lists depending on how many categories there are.

That would be awesome! Not sure if it’s possible, but I’d love to see it. Great module, Cocoaholic!

       
Cocoaholic's avatar
Cocoaholic
445 posts
17 years ago
Cocoaholic's avatar Cocoaholic

Update: v1.0.1 fixes a relationships bug.

       
AJP's avatar
AJP
311 posts
17 years ago
AJP's avatar AJP

Thanks for your help debugging that relationship caching issue.

And of course, thanks for the module too. 😊

       
AJP's avatar
AJP
311 posts
17 years ago
AJP's avatar AJP

I just encountered a major bug when using this module with MSM installs. When you edit the preferences for the module, it deletes all previous reeorder prefs, and only creates preferences based on the weblogs available in your current site. So, instead of checking each preference if it already exists, we blow away all, including those for weblogs on other sites.

I’m working on a fix, where it checks each preferences, first for the weblog setting (if it exists), and then if the settings have changed run an update, or if new settings, run an insert.

       
Eric Barstad's avatar
Eric Barstad
198 posts
about 17 years ago
Eric Barstad's avatar Eric Barstad

This is just a feature request, as I didn’t see it mentioned before: AJAX drag and drop to reorder entries. I really love the way this works in Playa, and it might make a nice addition to REEorder.

       
Cocoaholic's avatar
Cocoaholic
445 posts
about 17 years ago
Cocoaholic's avatar Cocoaholic

Grrrr 😉

       
Eric Barstad's avatar
Eric Barstad
198 posts
about 17 years ago
Eric Barstad's avatar Eric Barstad

Sorry… =:-O

       
Herb's avatar
Herb
224 posts
about 17 years ago
Herb's avatar Herb

Wow, this is good… err Fantastisch. But then, I want just a little more. You do not specify to whether we may modify your work in your copyright notice. May I use this module as a starting point and jump start towards added features I need? I will use it solely on a non-commercial site.

       
Cocoaholic's avatar
Cocoaholic
445 posts
about 17 years ago
Cocoaholic's avatar Cocoaholic

Hi Herb,

Feel free to add whatever you need for personal or project use.

-Elwin

       
Herb's avatar
Herb
224 posts
about 17 years ago
Herb's avatar Herb

Thanks ever so much.

       
pushloop's avatar
pushloop
422 posts
about 17 years ago
pushloop's avatar pushloop

Like a famous burger company once sais: “Oooh, I’m lovin’ it!” And I do!

Currently I’m using the module to arrange the order of the menu and pages in a coda-slider-style website, where the sorting of the menu links and entries need to be the same, and the admin need to be able to change the order of these in an easy way.

Reeorder did the trick. Tnx Cocaholic 😊

       
Jacob Graf's avatar
Jacob Graf
163 posts
16 years ago
Jacob Graf's avatar Jacob Graf

I have a client who is using this to sort pages in a semi-static environment based off of categories. Could someone come up with a way to display another column in the Module with each entries category relationships listed? Thanks in advance!

       
Andrew Gunstone's avatar
Andrew Gunstone
101 posts
16 years ago
Andrew Gunstone's avatar Andrew Gunstone

Hi Guys, I have just come across the same Multiple Site Manager (MSM) issue that AJP described above.

It is a really quick fix, so I thought I would share it with everyone.

Basically you need to open the “mcp.reeorder.php” file, search for the “update_prefs()” function, and then replace with this:

function update_prefs()
    {
        global $DB, $LANG, $FNS;
        
        // only fetch weblogs assigned to current user
        $assigned_weblogs = $FNS->fetch_assigned_weblogs();
        
        $data = array();
        foreach ($assigned_weblogs as $val)
        {
            $data['weblog_id'] = $val;
            $data['field_id'] = $_POST['reeorder_row_'.$val];
            $data['sort_order'] = $_POST['sort_order_'.$val];
            $DB->query("DELETE FROM exp_reeorder_prefs WHERE weblog_id = '".$val."' ");
            $DB->query($DB->insert_string('exp_reeorder_prefs', $data));
        }
        
        return $this->preferences($LANG->line('prefs_updated'));
    }

The change is simple…instead of deleting everything out of the table, we only delete a single row as needed. This means that preferences for the other sites are not touched when you make an update.

Hope that this helps someone, as I was pulling my hair out for a short while there!

Cheers.

PS: this module rocks, so a huge thanks to Cocoaholic!!

       
JoshL's avatar
JoshL
22 posts
16 years ago
JoshL's avatar JoshL

This module is awesome!!!

Any chance of getting the ‘automatic update’ option happening soon? I’ve been waiting patiently! 😊

It would be radical to have a number automatically placed into the field when an entry is submitted. Perhaps even depending on sort order; i.e. if it’s sorted asc, the number is 001 and the rest of the list gets updated accordingly. If it’s sorted desc, then it simply gets put at the back of the sort order.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

Is the attached file on page 1 the most recent version?

       
First 3 4 5 6 7 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.