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'}
Listit2... and pretty urls
Re: Listit2... and pretty urls
Slight bump...
-
staartmees
- Power Poster

- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Listit2... and pretty urls
Take a look in the module help of CGExtensions
Re: Listit2... and pretty urls
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.
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
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.
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
Yes, and with 5 small LisitIt2 Instances and MultiLingual, with about 200 pages, 5 templates, this would be problematic at all.
But thanks for the pointer. Was worth thinking about it.
But thanks for the pointer. Was worth thinking about it.

