EllisLab text mark
Advanced Search
9 of 11
9
   
REEOrder Module (Custom ordering of entries)
Posted: 03 November 2009 08:05 PM   [ Ignore ]   [ # 127 ]   [ Rating: 0 ]
Joined: 2007-03-29
517 posts

any ideas for #123? I was just about to delete my previous/next pagination because I cant get it to synch with the way the weblog is ordered through reeorder. I thought I give it another try on the forum to see if anybody was able to do this.

 
Posted: 17 November 2009 06:06 AM   [ Ignore ]   [ # 128 ]   [ Rating: 0 ]
Joined: 2009-05-25
1 posts

I installed reeorder on ee 1.6.7 and I have a problem with pagination. Whenever I click on “next page” the list of articles is not updated and the url keeps on adding more /P#/ on top: eg. /index.php/video/P0/P3/P3/P3/

Is this a bug or is it that the reeorder module does not work with pagination?

 
Posted: 17 November 2009 03:13 PM   [ Ignore ]   [ # 129 ]   [ Rating: 0 ]
Joined: 2007-03-29
517 posts

I installed reeorder on ee 1.6.7 and I have a problem with pagination. Whenever I click on “next page” the list of articles is not updated and the url keeps on adding more /P#/ on top: eg. /index.php/video/P0/P3/P3/P3/

Is this a bug or is it that the reeorder module does not work with pagination?

It is not a bug. That’s the way Reeorder works. There is some php code that people use to get the paginatino to work. I did not have any luck with it though. I am still looking for a solution.

You can read one of my earlier posts and the responses here. http://ellislab.com/forums/viewthread/43903/P108/#658406

Let me know if you find a solution as still need it too

 
Posted: 17 November 2009 03:23 PM   [ Ignore ]   [ # 130 ]   [ Rating: 0 ]
Avatar
Joined: 2002-02-05
462 posts

florian,

I said it before and I’ll say it again:
http://ellislab.com/forums/viewthread/43903/P108/#658410

downer

 
Posted: 17 November 2009 03:30 PM   [ Ignore ]   [ # 131 ]   [ Rating: 0 ]
Joined: 2007-03-29
517 posts

Yes. I know. I was just trying to point Andreas into that direction. That’s why I linked to our previous conversation. I wasnt able to get it working with regular ee order/sort functionality. That’s what I tried after the php code that I found on the forum didnt work and after you had suggested it. I need to revisit this and play around some more.
Thanks for your input.

 
Posted: 19 November 2009 08:14 PM   [ Ignore ]   [ # 132 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-08
33 posts

Suggestion:

Add a different color to the background when you are dragging and dropping a row. It is a little confusing as is.

 Signature 
 
Posted: 23 November 2009 04:42 PM   [ Ignore ]   [ # 133 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-16
408 posts

I’ve always loved this module, but it always had one shortcoming… it didn’t work with Gypsy. If I wanted to reorder 5 weblogs, I had to have 5 ‘ordering’ fields. No longer smile I just changed the method below, so now I can create a single ‘order’ field, and it’s available to all weblogs.

function create_custom_field_menu($weblog_id)
    
{
        
global $DB$DSP;
        
        
// get field_group for this weblog
        
$field_group_query $DB->query("SELECT field_group 
                                        FROM exp_weblogs 
                                        WHERE weblog_id = '
$weblog_id'");
        
        
$field_group_id $field_group_query->row['field_group'];
        
        
$gypsy_enabled $DB->query("SELECT count(*) AS count FROM exp_extensions WHERE class = 'Gypsy' AND enabled ='y'");
        
        if(
$gypsy_enabled->num_rows 0
        
{
            
// use group_id to get custom field_id, or see if it's a gypsy field
            
$custom_field_id_query $DB->query("SELECT field_id, field_name, field_label, group_id
                                                FROM exp_weblog_fields 
                                                WHERE group_id = '
$field_group_id'
                                                OR gypsy_weblogs LIKE '%
$weblog_id%' ORDER BY field_order ASC");
        
}
        
else
        
{
            
// use group_id to get custom field_id
            
$custom_field_id_query $DB->query("SELECT field_id, field_name, field_label, group_id
                                                FROM exp_weblog_fields 
                                                WHERE group_id = '
$field_group_id' ORDER BY field_order ASC");
        

        
        $custom_field_id 
$DB->query("SELECT * FROM exp_reeorder_prefs WHERE weblog_id = '$weblog_id'");
        if (
$custom_field_id->num_rows == 0)
        
{
            $cf_id 
'';
        
else {
            $cf_id 
$custom_field_id->row['field_id'];
        
}
        
        $dropdown_menu 
$DSP->input_select_option(0'---');
        foreach (
$custom_field_id_query->result as $row{
            
            
if ($row['field_id'== $cf_id{
                $dropdown_menu 
.= $DSP->input_select_option($row['field_id']'('.$row['field_id'].') ' .$row['field_name']'y');
            
else {
                $dropdown_menu 
.= $DSP->input_select_option($row['field_id']'('.$row['field_id'].') ' .$row['field_name']);
            
}
            
        }
        
        
return $dropdown_menu;
    
 Signature 

@litzinger
Bold Minded add-ons

 
Posted: 01 December 2009 08:19 AM   [ Ignore ]   [ # 134 ]   [ Rating: 0 ]
Joined: 2009-08-18
3 posts

@litzinger: thanks, will test this out now. Definitely worth the fix.

Feature Request: it would be nice to have multiple sorts for a single weblog. Right now only a single field can be tied to the weblog under the REEorder preferences.

 
Posted: 14 December 2009 06:44 PM   [ Ignore ]   [ # 135 ]   [ Rating: 0 ]
Joined: 2008-05-13
136 posts

I’ve used this module/extension in the past and just run into an issue that I can’t recall whether it happened in the past or not.  When I add a new entry it does not automatically get assigned a sort order # which causes a problem in my particular case.  I have a weblog with limit of 3 entries showing, if I am sorting by my custom_sort_field, my newest entries do not get assigned a sort value by default and don’t end up showing up in my entries loop.  Is this normal or something I should look into?

Thanks again for a great extension / module!

 
Posted: 15 December 2009 03:14 PM   [ Ignore ]   [ # 136 ]   [ Rating: 0 ]
Avatar
Joined: 2002-02-05
462 posts

Hi cityzen,

This is expected behaviour.
Entries need to be re-ordered to get a sort value.

 
Posted: 15 December 2009 03:17 PM   [ Ignore ]   [ # 137 ]   [ Rating: 0 ]
Joined: 2008-05-13
136 posts

Excellent, thanks for clarifying.  It works great when I am listing all entries but the weird implementation I have now doesn’t work so well with that behavior.  Thanks again for the prompt response.

Mike

 
Posted: 30 December 2009 09:10 PM   [ Ignore ]   [ # 138 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-01
42 posts

Hey Cocoaholic,

I love the REEOrder module, it’s helped out with a lot of manual functions for clients. I’m wondering if there’s a possible bug or issue when using the XML function. I can’t imagine for the life of me why this is happening, but it’s only inside of an xml file.

My XML template uses this code:

<?xml version="1.0" encoding="UTF-8"?>

<content>
{exp:weblog:entries weblog="home_page_banner" limit="4" orderby="homepage_reeorder" dynamic="off"}<image path="{homebanner_image}"{if banner_url != ""} {banner_url}link="{address}" win="{if opens_in != ""}_blank{if:else}_self{/if}"{/banner_url}{/if} />
{/exp:weblog:entries}</content

That outputs this:

<?xml version="1.0" encoding="UTF-8"?>

<content>
<
image path="/images/banners/Sprint_Banner_2.jpg" link="http://www.sprintsave4cu.com/" win="_blank" />
<
image path="/images/banners/Rewards_header_banner_3.jpg" link="https://www.uchooserewards.com/members/home.php?sid=40XXdKrlo40" win="_blank" />
<
image path="/images/banners/HeaderBanner2-UltFreeCheck.jpg" link="http://198.171.234.140/index.php/banking/checking/" win="_self" />
<
image path="/images/banners/HeaderBanner1-75thAnniversary.jpg" link="http://198.171.234.140/images/uploads/anniversary_calendar.pdf" win="_blank" />
</
content

That renders in the order in which the content was posted, and ignores the REEOrder custom fields entirely.

However, when I create a standard page using the exact same snippet of content like this:

{exp:weblog:entries weblog="home_page_banner" limit="4" orderby="homepage_reeorder" dynamic="off"}<image path="{homebanner_image}"{if banner_url != ""} {banner_url}link="{address}" win="{if opens_in != ""}_blank{if:else}_self{/if}"{/banner_url}{/if} />
{/exp:weblog:entries} 

I end up getting this, which is the correct ordered rendering:

<image path="/images/banners/Sprint_Banner_2.jpg" link="http://www.sprintsave4cu.com/" win="_blank" />
<
image path="/images/banners/HeaderBanner2-UltFreeCheck.jpg" link="http://198.171.234.140/index.php/banking/checking/" win="_self" />
<
image path="/images/banners/HeaderBanner1-75thAnniversary.jpg" link="http://198.171.234.140/images/uploads/anniversary_calendar.pdf" win="_blank" />
<
image path="/images/banners/Rewards_header_banner_3.jpg" link="https://www.uchooserewards.com/members/home.php?sid=40XXdKrlo40" win="_blank" /> 

If anyone has any suggestions or insight, I’d appreciate it. I’m going bonkers! :D

 
Posted: 19 January 2010 07:53 PM   [ Ignore ]   [ # 139 ]   [ Rating: 0 ]
Avatar
Joined: 2008-09-18
234 posts

This is a great module so thanks for taking the time to make it. Just one quick question for you. Is it possible to update the post status within the module itself?

For example, I’m using the module to allow clients to order the features they have on their homepage, however I’d also like them to be change the status to stop displaying a certain entry at all for now? The module is so close (it’s already displaying the status) to this, so I’m wondering if you have any plans to implement this functionality?

Cheers

 Signature 

Twitter / Pitch / Blog

 
Posted: 26 January 2010 06:13 PM   [ Ignore ]   [ # 140 ]   [ Rating: 0 ]
Avatar
Joined: 2006-02-10
105 posts

Do you know if this module is 2.0 compatible?

 
Posted: 26 January 2010 10:04 PM   [ Ignore ]   [ # 141 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-30
125 posts

Thanks for the nice module

after installing and don’t see any order numbers in the drop down menu of the reeorder menu though - did I get something basic wrong?

I’am using categories in my weblog - could that be a reason?

using EE 1.6.8

——


don’t you hate that - just after I submitted it was starting to work - but still how about categories?

 
9 of 11
9