Listit2... and pretty urls

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Listit2... and pretty urls

Post 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'}
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Listit2... and pretty urls

Post by jack4ya »

Slight bump...
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Listit2... and pretty urls

Post by staartmees »

Take a look in the module help of CGExtensions
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Listit2... and pretty urls

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Listit2... and pretty urls

Post 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.
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Listit2... and pretty urls

Post 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. ;)
Locked

Return to “Modules/Add-Ons”