if you want to do this, then you dont need to create a generic property of categories but then you need to create a document type Category which will then be added into your content structure.
Then for each category you can add articles which will then have the url you want.
'Cursus of workshop' and 'concert' are the 'categorie' document types and 'evenementen' contains all the events.
When a user clicks on 'concert' the page will show all the events from the 'evenementen' folder filtering the pages where the 'categorie' is 'concert'.
Then using url rewrite you can easily remove the evenementen from the url and redirect ./evenementen/cursus-of-workshop/event4 to ./cursus-of-workshop/event4
Thanks for your reply.
I understand what you're trying to do.
But an 'event' can be under more then 1 catagory, I don't want to store the event under two categories.
URL Rewriting with Generic property
Hi,
I was wondering if its possible to use a Generic property of the document type as value in the URL.
For example:
On the document are some 'categories' stored. Like Books, DVD, CD etc, stored in the Generic property 'aaaicategorie'.
All the documents are under the same node, so:
http://www.test.com/categorie/article1/ http://www.test.com/categorie/article2/ http://www.test.com/categorie/article3/
When I go to 'article 3' the URL should be: http://www.test.com/(aaaicategorie)/article1/
Is that possible?
Kind regards,
Rik
Hi Rik,
if you want to do this, then you dont need to create a generic property of categories but then you need to create a document type Category which will then be added into your content structure.
Then for each category you can add articles which will then have the url you want.
Hope this helps
/Michaël
Hi Michaël,
Thanks for you reply and suggested solution.
I already made a 'category' document type:
'Cursus of workshop' and 'concert' are the 'categorie' document types and 'evenementen' contains all the events.
When a user clicks on 'concert' the page will show all the events from the 'evenementen' folder filtering the pages where the 'categorie' is 'concert'.
When a user clicks on an event the url is http://site.nl/evenementen/event/. But the URL need to be http://site.nl/concert/event/
Is that possible?
Kind regards,
Rik
Hi Rik,
you content structure should be like this:
Then using url rewrite you can easily remove the
evenementen
from the url and redirect./evenementen/cursus-of-workshop/event4
to./cursus-of-workshop/event4
/Michaël
Hi Michaël,
Thanks for your reply. I understand what you're trying to do. But an 'event' can be under more then 1 catagory, I don't want to store the event under two categories.
Kind regards,
Rik
is working on a reply...