Grab the Web URL Map Extras Component at the Downloads page.
In my Oracle OpenWorld 2009 demo I showed how to use the Web URL Map feature of Content Server to make images and renditions easier to use in Cascading Style Sheets. This post is about that topic and one of the components I demonstrated during that session.
One way to make referencing images (and especially renditions) in Cascading Style Sheets and other places in your web sites is to use the Web URL Mapping tool that comes with Content Server. Check out Kyle’s blog, he has a whole post about this feature.
I have several of these mappings that I always like to add to a server. So, I made a component that will add these mappings to the server when you install the component. Also, I wanted an example component showing how you can read from a defined map and add it to another map. Hence, the WebMapUrlExtras component was born and is available here.
WebMapUrlExtras adds the following four mappings.
pass in a dDocName and get back the web rendition of an image
pass in a dDocName and get back the native file
pass in a query string and get back the quick search results
pass in a dDocName and get back the web rendition, or you can optionally specify the rendition by tagging on a ?Rendtion=<rendition name>
Prior to the component your Web Map URL configuration might look like this:
After installing the component and restarting it should look similar to this:
This year at Oracle OpenWorld 2009, I presented a session on leveraging digital asset management with Site Studio 10gR4. During that session I briefly showed the website's menu in UCM. I discussed how one might restrict the list of sites in that menu per user. This video demonstrates that ability.
I am starting to release some of the example components demonstrated at my session this year at Oracle OpenWorld 2009. In the demo I briefly showed the Web Sites menu and talked about filtering the sites in this menu based on UCM Roles. This component demonstrates how one might accomplish such a task. As other articles related to my session come on line I will inter-link them together.
You know that Web Sites menu Site Studio adds to Content Server? Can I limit the links in that list somehow? This question is asked fairly regularly. I wanted to get a sample of how one might accomplish just that out for general consumption. Once you see an example accomplishing the filtering of that list you’ll be able to apply your own specific business logic as well.
In this example we’re going to use Roles to control what web sites are listed in the menu for any given user. I’ve seen this list controlled by Roles, Accounts, Custom User Metadata and every combination of those aspects and more. This is a LOT less about securing sites away from the users (as it doesn’t do that AT ALL) and more about thinning the sites list to something more context appropriate for individuals attempting to do their everyday job.
How to do this? Override the custom_finish_layout_init dynamic html include. Here’s the important snippet (don’t worry, there is an example component!):
So, sysadmin has the admin role, so s/he can see our three site samples in the web sites list:
Now, pretend we’ve created a new user named SingleSiteGuy (stay on task here, this is not a dating site side story…). We’ll give SingleSiteGuy our new SSMENUPayPalDemo Role.
And TA DA! Now SingleSiteGuy can only see the menu we gave him a role to access.
Grab the Websites Menu Filter Sample Component.