Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rik Hodiamont 11 posts 31 karma points
    Sep 23, 2016 @ 14:32
    Rik Hodiamont
    0

    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

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Sep 26, 2016 @ 07:20
    Michaël Vanbrabandt
    0

    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

  • Rik Hodiamont 11 posts 31 karma points
    Sep 26, 2016 @ 07:41
    Rik Hodiamont
    0

    Hi Michaël,

    Thanks for you reply and suggested solution.

    I already made a 'category' document type: enter image description here

    '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

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Sep 26, 2016 @ 08:03
    Michaël Vanbrabandt
    0

    Hi Rik,

    you content structure should be like this:

    Home
    
    -    Evenementen ( ./evenementen/ )
    
         -   Concert ( ./evenementen/concert/ )
    
             -   Event 1 ( ./evenementen/concert/event1/ )
    
             -   Event 2 ( ./evenementen/concert/event2/ )
    
             -   Event 3 ( ./evenementen/concert/event3/ )
    
         -   Cursus of workshop ( ./evenementen/cursus-of-workshop/ )
    
             -   Event 4 ( ./evenementen/cursus-of-workshop/event4 )
    
             -   Event 5 ( ./evenementen/cursus-of-workshop/event5 )
    
             -   Event 6 ( ./evenementen/cursus-of-workshop/event6 )
    

    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

  • Rik Hodiamont 11 posts 31 karma points
    Sep 26, 2016 @ 10:53
    Rik Hodiamont
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft