Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
How to display different customview(s) for different users ?
Vincent_Reip_(HermesUser1_(Delete)_1628036)
Hello,I'd like to be able to display different customview.html on the Enterprise home page depending on the user login.When I look in webnode/browse.html I see that the DAPIVersion for the customview.html is already filled. It is coming from .fResponse.data.customviewhtmlversion and it is passed to DAPI.FetchVersionToStream. The idea would be to modify the way it is filled in fResponse but I couldn't find where it is.Could anyone help ?Thanks,Vincent
Find more posts tagged with
Comments
Matthew_Nalewajek_(MolsonAdmin_(Delete)_1425049)
One way to do this without too much effort is to set a cookie at the login screen then in the Customview.html have javascript to check the cookie and display different things for different users. RobNote: StyleSheets also work in customview.html This has allowed me to add background graphics/ change background colors/ change fonts/ font colors etc on each individual livelink folder.
Robert_Davies_(unlondonadmin_-_(deleted))
Hi Vincent.I'm not sure that this will be the easiest way to get the effect you are looking for, however if you look inWEBNODE:Webnode Root:WebNode:DocNode:DocVolume:VolWorkbinyou will find a method called_BrowseCatalogs()This method searches the contents for 'customview' and does the work of setting the version etc. Likely any modifications you make should be along the lines of overriding the behaviour of this object.I can't be 100% sure that the enterprise workspace uses this method as well, but if it doesn't then I expect that there will be a similar one in another object somewhere around there.Hope this helps.Best regards/matt.