Benjamin JALON wrote:
In my application, each business view is associated to one Nxtheme
page. I have a generic fragment (used in different business view) that
need to know the business view...
Thanks for the answer...
OK, then the switch occurs in the widget's code.
Another possibility is to declare perspectives, associate perspectives
to view ids, and set the visibility settings to show fragments only in
given perspectives. In that way you have a business view <-> widget
correspondence that requires no specific programming.
perspectives were designed to allow to do minor visual changes inside a
same page, but sometimes it can be easier to duplicate pages. That's a
trade-off.
PS: if you're using pages you might want to use getThemePageByUrl(URL
url) instead, that returns a "page path", i.e. themename/pagename
/JM
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm