CMS MADE SIMPLE FORGE

ListItExtended

 

[#9182] Categories->sub-categories and pretty url

avatar
Created By: Superpink (Superpink)
Date Submitted: Mon Apr 22 03:23:39 -0400 2013

Assigned To: Tapio Löytty (Stikki)
Version: 1.4-beta1
CMSMS Version: 1.11.5
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Categories->sub-categories and pretty url
Detailed Description:
Hi,

I've a problem with pretty urls.

I have categories and sub-categories, when I try to display a detail view, the
category appears in my URL and it return an empty view (with debug view, array
Item ->alias shows "activites/la-mezzanine" but should be just "la-mezzanine").

If i delete the sub-category in url, detail view is correctly displayed and var
-> alias shows "la-mezzanine".


Example :
http://****/commercants/activites/la-mezzanine/29.html
=>Return an empty view

http://****/commercants/la-mezzanine/29.html
=> Ok

I use {$item->url} and "commercants" is the new name of the module. "activites"
is a category.

I tought it was an htaccess error but the error with the ->alias var is strange.

Thanks.

CMSMS 1.11.5
ListitExtd 1.4 beta


History

Comments
avatar
Date: 2013-04-22 03:30
Posted By: Tapio Löytty (Stikki)

Dosent even look correct URL's


      
avatar
Date: 2013-04-22 03:34
Posted By: Superpink (Superpink)

I don't understand...

Do you want to have the real url ? Or do you speak about an error I did ?
      
avatar
Date: 2013-04-23 04:40
Posted By: Tapio Löytty (Stikki)

I don't know how you managed to get those URL's and in what context, but those
ain't working.

That's what i am sure about.
      
avatar
Date: 2013-04-23 04:53
Posted By: Superpink (Superpink)

I use a summary template on my homepage (multilanguage site with MLECMS, I use a
snippet "{MleCMS name="snippet_articlesAccueil"}" ) :

In my snippet, I have :

{ListIt2Commercants summarytemplate="liste" category="activites"
subcategory=true detailpage="detail-activites" pagelimit="1"}

And the line for the URL in my summary template is :

{foreach from=$items item=item}
...
<p class="boutonIndex"><span class="text"><a href="{$item->url}" title="Voir la
fiche du commercant : {$item->title|cms_escape}">{translate text="Voir cette
fiche"}</a></span></p>
...
{/foreach}

I didn't change anything on the module...




      
avatar
Date: 2013-04-23 05:10
Posted By: Darren Kierman (kierweb)

I'm have the same problem - Look at Bug #9187
      
avatar
Date: 2013-04-23 05:37
Posted By: Darren Kierman (kierweb)

TRY THIS 

Within framework/action.default.php

Uncomment this line !!!!!!

        listit2_utils::clean_params($params, $this->allowed_params, true);

and then it seems to work :)
      
avatar
Date: 2013-04-23 06:02
Posted By: Tapio Löytty (Stikki)

Allowed params is removed in later development cycle of LI2.

So it's not really viable fix.

I tested this case and your right, category applies there.

If i fix category, i break pagination, there is really no clean way doing this,
as there are so many URL params and combinations that i would need to consider
about.

if category is added statically to page using CGE module hint system, then it
works as expected.

Category part is fixed in GIT now, but there no really good way to fix it
completely, feel free to try.
      
Updates

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

Updated: 2013-04-23 06:02
resolution_id: 9 => 7
assigned_to_id: 100 => 11306

Updated: 2013-04-23 04:40
resolution_id: 10 => 9

Updated: 2013-04-22 05:20
resolution_id: 9 => 10

Updated: 2013-04-22 03:30
resolution_id: => 9