CMS MADE SIMPLE FORGE

ListItExtended

 

[#9084] orderby="item_position|asc" doesn't work, exclude_category works very oddly

avatar
Created By: bess (bess)
Date Submitted: Tue Mar 26 05:09:46 -0400 2013

Assigned To: Tapio Löytty (Stikki)
Version: 1.4-beta1
CMSMS Version: 1.11.2
Severity: Minor
Resolution: Invalid
State: Closed
Summary:
orderby="item_position|asc" doesn't work, exclude_category works very oddly
Detailed Description:
hello guys

i just install this great module on cmsms.fr :

http://www.cmsmadesimple.fr/telecharger-cms/archives-cms

and everything is fine except small bugs (?)

orderby="item_position|asc" and orderby="item_position|desc" doesn't seems to
have any effect on the list

Other curiosity : 

I have 3 categories : A/B/C and some articles in each category, and even one or
two linked with 2 categories in the same time

{ListIt2download category="A"} works perfecty
{ListIt2download category="A" exclude_category="B"} show me everything ...
Articles of categories A,B and C ... it gives me the impression of a search
using the OR operator : show me articles of category A OR articles wich not in
category B

if it can help you to find a possible bug ;)


History

Comments
avatar
Date: 2013-03-26 05:18
Posted By: Tapio Löytty (Stikki)

Yo,

Neither of is bug.

1)

orderby="item_position|ASC" or orderby="item_position|DESC"

case sensetive.

2) 

You can't use both, category (include) and exclude_category, those are in same
check and therefor over rule each other.

-Stikki-

      
avatar
Date: 2013-03-26 05:21
Posted By: Tapio Löytty (Stikki)

Oh and check classes:

class.ListIt2Query.php
class.ListIt2ItemQuery.php

You get idea how queries work.

It's still work in progress, but i am pretty happy what it is, probably changing
table aliases to something else at some point.

-Stikki-

      
avatar
Date: 2013-03-26 05:24
Posted By: bess (bess)

thank you Stikki for this quick answer :)

I'm disapointed that I can not use both options at the same time but even at
this point it's a very good module ;)

thank you (you and the others) for your work ! ;-)
      
avatar
Date: 2013-03-26 05:24
Posted By: bess (bess)

and be sure : i'll take a look :)
      
avatar
Date: 2013-03-26 05:26
Posted By: Tapio Löytty (Stikki)

Oh and bess:

$item_query = new ListIt2ItemQuery($this, $params);

Events::SendEvent($this->GetName(), 'PreRenderAction', array('action_name' =>
'default', 'query_object' => &$item_query));

default and category actions send their query objects to event before execute,
so you can even make UDT to altern result your self, if you wan :)

Just hook UDT to PreRrenderAction event and grab object there, you can even
execute that object inside UDT and then it gets executed again when it needs to
again in actual action.

-Stikki-
      
avatar
Date: 2013-03-26 05:31
Posted By: bess (bess)

Damn ... you're crazy ^^
      
avatar
Date: 2013-03-26 05:32
Posted By: Tapio Löytty (Stikki)

Hey,

It works :)

And there is no case where i can cover all options, so this is good middle way
:)

-Stikki-
      
Updates

Updated: 2013-06-18 14:31
state: Open => Closed

Updated: 2013-03-26 05:18
resolution_id: => 9
assigned_to_id: 100 => 11306