expression language is a way to make symfony configuration more dynamic
at runtime:
http://symfony.com/doc/current/components/expression_language/index.html
but not sure if that is enough in your case. what you want to look at is
probably the
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\PrefixCandidates class.
you can probably extend that class to support your multi domain
scenario, overwriting getCandidates to first update the prefixes based
on the domain before calling the original getCandidates method.
why do you have content > contenttree? i would have expected to have
content | menus | routes | extrastuff all on the same level of the tree.
then you can restrict the prefix to /subsites/subsite1/routes
cheers,david
On 13.08.2015 02:15, Bruno Reis wrote:
> Where can I look into expression language? If there is one, this would
> probably solve my problem.
>
> I'm creating multiple "subsites" and I want the structure to be like:
>
> subsites
> subsite1
> content
> contenttree
> menus
> extrastuff
> subsite2
> content
> contenttree
> menus
> extrastuff
>
> the content are also the routes.
>
> So I need to either:
>
> - make each content as a basepath and start the content tree with a
> "subsiteN" node
>
> - make "subsites" the basepath, but skip the "contenttree" in the route
> generation
>
>
> Thanks.
>
>
>
> 2015-08-12 3:58 GMT-03:00 David Buchmann <
da...@liip.ch
> <mailto:
da...@liip.ch>>:
>
> why do you need dynamic base paths? multisite?
>
> one thing could be to look into expression language.
>
> but if there is a good use case, we can also alter the provider to allow
> to customize this. the reason to make things private is just to avoid
> tight coupling - when there are good arguments to make something
> overwriteable we can do it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
symfony-cmf-us...@googlegroups.com
> <mailto:
symfony-cmf-users%2Bunsu...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
symfony-cmf-us...@googlegroups.com
> <mailto:
symfony-cmf-us...@googlegroups.com>.
--
Liip AG // Agile Web Development // T
+41 43 500 39 80
CH-8005 Zurich // PGP 0xA581808B //
www.liip.ch