It would be great to be able to hide weblogs from the list if needed so the client will only see the weblogs where they can order entries.
I actually hacked this into the module last week, if either of you would like to see what I did. It wasn’t that hard, and makes the page much clearer.
Nice, I’d love to see the way you did it :)
No problem…
I added this chunk of code:
$r_weblogs = $DB->query("SELECT weblog_id FROM exp_reeorder_prefs WHERE field_id > 0");
$o_weblogs = array();
if ($r_weblogs->num_rows > 0) {
foreach($r_weblogs->result as $row) { $o_weblogs[] = $row['weblog_id']; }
}
$assigned_weblogs = array_intersect($assigned_weblogs, $o_weblogs);
above this line (line 231):
$weblog_query = $DB->query("SELECT weblog_id, blog_name, blog_title FROM exp_weblogs WHERE weblog_id IN ('".implode("','", $assigned_weblogs)."')");
It adds one additional db query, and I’m sure you could combine them into one somehow, but it just wasn’t that important for me to figure out. :)
Some extra queries in the control panel don’t really matter now do they 😉
A nice solution wazdog!
I was thinking of adding a checkbox or radio button pair to show/hide weblogs. This way a Super Admin can still use (re-order) all weblogs but only show the relevant ones to the (non Super Admin) client.
Nope, have been way too busy lately… :down:
I’d love to add some extra features though, I’ll see if I can find some time soon.
Hmm, can you explain what result you are looking for exactly? Are you using the weblog tag like this, and want to be able to sort by weblog? something else?
{exp:weblog:entries weblog="weblog1|weblog2|weblog3"}
Sounds like you want an orderby=”weblog” parameter added to the weblog tag.
No, it’s actually separate weblog tags stacked in the right sidebar so it would almost have to be like nesting…master controls the order and then the individual weblogs within get ordered…
Master > Reading > Links > Blogs > Testimonials /Master
Reordered…
Master > Blogs > Testimonials > Reading > Links /Master
Make sense?
Makes sense, but…
This module is really just a back end for filling a custom field with a sort order number. The weblog tag in your template takes care of the actual ordering of the entries.
REEOrder can’t be used for ordering weblogs, but your request would make a nice add-on though. I’ll think about it some more this weekend.
You can probably accomplish what you need in different ways using either javascript or a plugin or maybe even related entries (not sure about that one)
It’s not something urgent. Just had a client ask if he could easily change the order of things in the sidebar, I couldn’t think of an easy way. He mentioned this was something that can be done in TypePad, on the other hand, TypePad doesn’t offer all the other things EE is enabling for him 😉
I was initially thinking an order weblog that just contains a list of the parts then nesting but that that ain’t good. Not sure if it would even come close to working.
{exp:weblog:entries weblog="master" orderby=orderField"}
{exp:weblog:entries weblog="orderField1"} Custom fields {/exp:weblog:entries}
{exp:weblog:entries weblog="orderField2"} Custom fields {/exp:weblog:entries}
{/exp:weblog:entries}
The weblog= in the inner weblog tags would be fed by the master weblog.
That’s the idea anyway.
That would probably work if you put the ‘child’ weblog in an embedded template and pass the orderField as an embed variable.
Something like this: (untested of course)
{exp:weblog:entries weblog="master" orderby="orderField"}
{embed="template_group/template" blog="{whatever_field_holds_your_weblog_name}"}
{/exp:weblog:entries}
And inside the embedded template:
{exp:weblog:entries weblog="{embed:blog}"}
Custom fields
{/exp:weblog:entries}
I’m trying to decide between this module, “Reeorder” and another module “Selected Items”, but I can’t tell which is better for my purpose. What I have set-up for a client is a series of “training modules”. A Training Module is just a collection of publications, press, and or tools. But each of those items are stored by type in separate weblogs—i.e. publications, press, tools. Currently, once a training module is created, any publication, press release or tool can be assigned to it using a relationship field. And then, I display the list of items related to the module via the reverse relationship field. This works well, but now the client wants to custom order the display, so that the english version of the publication, displays before the spanish, the spanish, before the chinese, an informational pamphlet before a training manual, etc., etc.
I can use a custom field for sort order, and pipe, but this creates a per weblog sort, so basically of a five item display, the display would look like:
(1) English Pamphlet, (2) English Training Manual, (3) English Powerpoint Slides, (4) Chinese Training Manual, and (5) Tool: Training Game
the client wants the display to ignore weblogs (i.e. group all the titles, regardless of weblog then re-order like:
(1) English Pamphlet, (2) English Training Manual, (3) English Powerpoint Slides, (4) Tool: Training Game, and (5) Chinese Training Manual
Basically english items first, then foreign language items. I’ve fiddled with Selected Items a bit, and while it seems to handle re-ordering independent of weblogs, it doesn’t seem to handle relationships. From what I’ve gathered about Reeorder, since its uses the actual weblog entries data, it should be usable with relationships, but would probably have the same issue of ordering that the {exp:weblog:entries} tag does—ordering or grouping by weblog first.
Is that true or is their a method for making the solution order independent? I’ve been debating just adding an extra field in the title table, but I really, really hate hacking the system. Any ideas.
Alnisa
Hiya,
Sorry to drag this up like this but I remember using this module some time back on an older version of EE 1.5.2 I think and it worked fine. I tried today using this on EE 1.6.1 but it doesn’t seem to work. Was just wondering if it is meant to or not?
Everything goes okay except when I click on the weblog name in the module I get all the up and down arrows and the names of the posts but the drop down to the left of all of that has nothing in it. It seems that they are not being populated with any numbers.
Any help with this would be greatly appreciated as I am currently making an FAQ section that I would like to have them in a specific order but knowing me I will probably miss a couple out and add them later. I would then have to change dates if I wanted to order them in that way which isn’t nice at all!! 😊
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.