Page 1 of 1

Listit2... and pretty urls

Posted: Mon Jan 19, 2015 7:05 pm
by jack4ya
I really like Listit2, and being able to use GBFilePicker with it... I have a ListIt2News module (and more)
However, my main gripe is the url constructed: it has an id at the end.

Is there a way to really prettify the url, I have several ListIt2 modules I would like to use and urlprettify.

I did find something here, not sure if it is even of relevance?
http://dev.cmsmadesimple.org/feature_request/view/8180
But I have no idea where to start with:
{cge_module_hint module='ListIt2' detailtemplate='default'}

Re: Listit2... and pretty urls

Posted: Wed Jan 28, 2015 7:17 pm
by jack4ya
Slight bump...

Re: Listit2... and pretty urls

Posted: Wed Jan 28, 2015 7:32 pm
by staartmees
Take a look in the module help of CGExtensions

Re: Listit2... and pretty urls

Posted: Wed Jan 28, 2015 8:22 pm
by jack4ya
I did...
I can see I can pass the usually known parameters (from ListIt2) to a destination page by (on that page) using the 'hint'.

However I have not the slightest clue what parameter would be responsible for the page id that is at the end of the constructed urls to de detailpages.

Re: Listit2... and pretty urls

Posted: Thu Jan 29, 2015 10:14 am
by velden
That parameter is the id of the page where LI2 should show the details. So you seem to have a 'chicken or the egg' problem.

I think you can only work around this by altering the urls with a replace from within the summary template. And use mod_rewrite to add the page id 'hard coded' to the proper requests.

Re: Listit2... and pretty urls

Posted: Thu Feb 19, 2015 8:42 am
by jack4ya
Yes, and with 5 small LisitIt2 Instances and MultiLingual, with about 200 pages, 5 templates, this would be problematic at all. :o

But thanks for the pointer. Was worth thinking about it. ;)