Hi Carlos,

I find a useful pattern for implementing this type of thing is as follows:

- Create an app for managing the specialized content (like you suggest, a news 
app)
- implement the templates based on parameters. eg:  
/mysite/news?newstype=X&section=A
- Using parameters means everything works out of the box using just "normal" 
Magnolia templates & models
- When it is all working, create a virtual uri mapping which implements nicer 
URLs: /mysite/news/X/A --> /mysite/news?newstype=X&section=A
- Add a templating function for outputting the nice URLs in your templates

Regards,

Richard



> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:user-list-owner@magnolia- cms.com] Im Auftrag von Carlos A 
> (via Magnolia Forums)
> Gesendet: Freitag, 13. Mai 2016 23:04
> An: Magnolia User List
> Betreff: [magnolia-user] Re: Map a single page to different URL's and 
> show content depending on URL
> 
> Hello Nils,
> 
> Thanks for your reply!
> 
> We'll try creating a VirutalURIMapping node in the Configuration 
> workspace through the hypothetical News Administrator app. The 
> administrator would enter the URL in the news creation Form so that it 
> would be used for the creation of the VitualURIMapping node.
> 
> We don't want to create multiple pages because we may be creating 3000 
> pages approximately , we think it would be better to have items 
> administrated in a separate app and show their information in pages 
> with common layouts and to display an item information depending on 
> the URL entered by a visitor.
> 
> Or is it better to have multiple pages in the Magnolia pages app?
> 
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=1765ed80-9ad1-45e1-b75c-
> 6ee70bb73220
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-
> lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/ To 
> unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to