Archive for the ‘OracleWCM’ Category
Assign Info Button at the Top
When contributing various assets in Site Studio Designer the Assign Info form will be presented. By default, the buttons to commit are at the bottom of the screen. This is not such an issue the first time I save/commit the content. However, as I continue editing/saving the content I get annoyed by the fact that I have to scroll to the bottom of the page and click Assign Info each time.
I have finally broke down and created a new component that adds the Assign Info button to the top of the page as well.
Download the Sample Assign Info Buttons at Top Component.

Site Studio 10gR4 Link to Rendition
In my Oracle OpenWorld 2009 demo I showed how to link to specific renditions from a WYSIWYG Element in the Site Studio 10gR4 Contributor Application. This post is about that topic and one of the components I demonstrated during that session.
Download the Sample Link to Renditions Component now.
You may also want to check out the other related posts and free components: Web URL Map Extras and Web and Web Sites Menu Filtering.
This particular component is very simple. We accomplish this by overriding two Dynamic HTML includes named ss_compute_doc_url and rendition_info_select_form. Crack the component open to see more specifics.
Once this component is installed (either via Component Manager in the Admin Server or Component Wizard) the select buttons next to each rendition in the Renditions page will insert the correct rendition into the contributor element.
Disclaimer: Accessing renditions may pull the file from a zip file. To learn more about how renditions are stored and the performance implications of this kind of flexibility please contact your favorite Oracle UCM/WCM/URM/DAM partner. Solutions do exist, and they can guide you through the pitfalls.

![]()


Web Sites Menu Filtering
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!):
<$c=" STARTING EDIT HERE, JS"$>
<$if UserIsAdmin OR userHasRole("SSMENU" & siteId)$>
navBuilder.addChildNodeTo('SS_DISPLAY_WEBSITES'
, 'item'
, 'id==SS_WEBSITE_<$n$>'
, 'label==<$js(label)$>'
, 'url==<$js(siteRef)$>'
, 'icon==WebItem.gif');
<$endif$>
<$c=" ENDING EDIT HERE, JS"$>
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.
jQuery Hosted by Google AND Microsoft
Last Tuesday, 9/15/2009, Scott Gutherie of Microsoft broke the news about jQuery on the Microsoft CDN. Now, whichever side of the fence you sit on in the Google vs. Microsoft religious fervor you will still enjoy being able to use jQuery on their dime! Happy, happy, joy joy!
The official ASP.NET Page about the CDN:
http://www.asp.net/ajax/cdn/
An in action sample:
http://stephenwalther.com/blog/archive/2009/09/16/microsoft-ajax-cdn-and-the-jquery-validation-library.aspx
Which should you use?
http://stackoverflow.com/questions/1447184/microsoft-cdn-for-jquery-or-google-cdn
Those of us using jQuery in our Oracle Web Content Management initiatives need to be aware of this and the Google AJAX APIs. I always like to have options. This is just one more option for us.
You can also check out the Google jQuery hosting options here.
Hide Primary File In Site Studio Contributor
When users create new datafiles through Site Studio Contributor the Primary File (primaryFile) field can be the source of some questions or confusion. This field is usually pre-populated with ?default.xml?. Sometimes users will ask what this field is and/or why they see it. One of the easiest ways to deal with this issue or answer this problem is to hide that field! Add the following field to the server's config.cfg and restart. It looks like this setting may have been added in the may releases, so this may or may not work for you depending on your version and when this new feature was added.
SSHidePrimaryFileInContributor=true
