Archive

Archive for the ‘OracleWCM’ Category

Assign Info Button at the Top

November 23, 2009 Jason Stortz Comments off

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 component from the Downloads page.

Assign Info buttons at the top

Categories: OracleWCM

Web Sites Menu Filtering

October 13, 2009 Jason Stortz Comments off

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:

Sysadmin Sample Image

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.

Role

And TA DA! Now SingleSiteGuy can only see the menu we gave him a role to access.

Single Site Guy

Grab the Websites Menu Filter Sample Component.

Categories: OracleWCM

jQuery Hosted by Google AND Microsoft

September 21, 2009 Jason Stortz Comments off

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.

Categories: OracleWCM

Hide Primary File In Site Studio Contributor

June 10, 2009 Jason Stortz Comments off

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

Categories: OracleWCM

Disabling Site Studio Contributor

March 10, 2009 Jason Stortz Comments off

Use can use the following configuration setting to disable contribution on a content server:

DisableSiteStudioContribution=true

Over on John's Blog you can find even more information about disabling and/or "enhancing" the contributor key-stroke

Component: Site Studio – Consumption to Contribution Ctrl Shift F5 redirect

Guide: Disable ctrl + shift + f5 Site Studio contributor option

Updated: Consumption to Contribution Ctrl Shift F5 redirect.

Categories: OracleWCM

Site Studio 10gR4 Update and Samples

March 9, 2009 Jason Stortz Comments off

The Oracle Technology Network has a page with samples, viewlets and material on using Site Studio 10gR4.  Specfically, there is a nice PDF About Using 10gR4 From External Applications.

Categories: OracleWCM

Site Studio 10gR4 Now Available

January 9, 2009 Jason Stortz Comments off
Categories: OracleWCM

Site Studio Default Link Format Per Site

October 20, 2008 Jason Stortz Comments off

With the newer versions of Site Studio (10gR3, at least 10.1.3.3.3+) there is a handy way to set the default link format for your site.  You can do this through the Site Studio Designer and the setting is persisted in your Project XML file in Content Server.  This is pretty handy if you want to do things like using one manner of linking to data files for 90% of your content creation work.

Categories: OracleWCM

SSEphoxImageSetting – A Content Server Configuration for Ephox

October 14, 2008 Jason Stortz Comments off

When oracle released the 10.1.3.3.3+ site studio product they delivered a new contributor application along with new data file formats. Inside these data files the structure has changed from previous versions. Here is an example of the new format:

<?xml version="1.0" encoding="UTF-8" ?><wcm:root xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0" version="8.0.0.0"> <wcm:element name="HeaderImage">  <img border="0" alt="Wide Image" src="[!--$ssWeblayoutUrl('groups/public/documents/web_assets/wideimage.gif')--]" /> </wcm:element></wcm:root>

As you can see a near full path is embedded in the xml file. In this case if I were to change the security group of this image from public to secure the page using this data file would render with a missing image. The same is also true of the doc type and/or account. What can we do about this?

The documentation mentions that the function ssWeblayoutUrl() is able to work with the dDocName: This script extension is used to determine the full web address of a file from either the path or dDocName. This is most typically used for paths to images in data files.

Great. It turns out that through the use of a configuration variable added to config.cfg or through the admin server under general configuration week in control what gets embedded in data files. Note: this is available in build 251 or higher.

SSWeblayoutUrlUsesDocNames=true

On a related note, check out another blog post starring ssWeblayoutUrl over at Web Monkey Magic.

http://webmonkeymagic.blogspot.com/2008/09/surprise-ssweblayouturl.html

Categories: OracleWCM

About ServerBean

August 11, 2008 Jason Stortz Comments off

Perhaps the context is Site Studio. Perhaps the context is a JSP (Java Server Page) checked into Content Server. Regardless, you will eventually begin to wonder "What is this ServerBean thing?" and "What can I do with it?" I often get asked about the existence of documentation on ServerBean, and it has recently been pointed out to me that this is covered in Bex Huff's book The Definitive Guide to Stellent Content Server Development (which is pretty darn good, so get it if you don't have it).

That said, there is some information I can present here about the ServerBean class starting with the signatures of the public methods. I've sprinkled sparse notes among the methods that may or may not be of use. The simplest description of ServerBean is a shortcut class for performing actions like manipulating the local data, executing services, reading enviornment variables and executing IdocScript.

class ServerBean{   // Constructor   // NOTE: A single, no argument constructor is supplied and you    // must use the init method to initialize   ServerBean()

   // After the constructor you must initialize with this method   void init(ServletRequest servletrequest)
   // Remaining Methods ////////////////////////////////////////////
   void addOptionList(String s, Vector v)   void addResultSet(String s, ServerResultSet serverresultset)
   // Remaining methods in alphabetical order   String evalIdcScp(String s) throws ContentServerException
   // If the flag is true it means you have already wrapped the String    // in <$> offsets   String evalIdcScp(String s, boolean flag)throws ContentServerException   String evalResInc(String s) throws ContentServerException
   // This is the long hand version of evalIdcScp, just use    // evalIdcScp to save some processing   String evaluateIdocScript(String s)throws ContentServerException   String evaluateResourceInclude(String s) throws ContentServerException   void executeService()throws ContentServerException   Object getCachedObject(String s)   ServerResultSet getCurrentActiveResultSet()   Properties getEnvironment()   String getEnvironmentValue(String s)   String getLocal(String s)   Properties getLocalData()   Vector getOptionList(String s)   Enumeration getOptionLists()   ServerResultSet getResultSet(String s)   Enumeration getResultSetList()   void parseExecuteService(String s) throws ContentServerException   void parseExecuteService(String s, char c, char c1)throws ContentServerException   void putLocal(String s, String s1)   void removeLocal(String s)   ServerResultSet removeResultSet(String s)   void setCachedObject(String s, Object obj)   void setEnvironment(Properties p)   void setEnvironmentValue(String s, String s1)   void setLocalData(Properties p)}
Categories: OracleWCM