Change visibility of Resources – WebCenter Portal

The main idea of this post is to help you locate the  “generic-site-resources.xml” file and modify its content.

WebCenter Portal can handle resources in 2 different ways:

 Runtime
2013-10-28_2104

Designtime

2013-10-28_2105

Creating a resource is a topic I will talk in a different post.  What I will like to share with you is how to change the visibility of  new resources in Design Time.

A good example is a Content Template, whenever you create a Content Template in Design Time, this resource by default gets a visibility to False, you can change this in runtime, but if you’re developing to test is a pain to change this property every time you lose your MDS.

Lets create a dummy content template:

2013-10-28_2121 2013-10-28_2124

By default with this settings you’re have your content template not visible. To make it visible you have 2 options:

  1. Run your Portal,
    A.-  Go to admin section then content presenter,
    B.-  Look for your template and make it visible.

    2013-10-29_0158
    The problem with this solution is that as mentioned before you’ll lose all your changes if you are running the Portal locally and you’re erasing your MDS every time you run the Portal.

    THE IMPORTANT BIT

  2. Edit the generic-site-resources.xml file.
    Where?
    “DemoPortalmdsoraclewebcentersiteresources
    scopedMDs8bba98ff_4cbb_40b8_beee_296c916a23ed
    Just look for your template, in my case “org.mauro.ct.blog” look for the tag “<resource>”  and modify the visible property from FALSE  to TRUE.
2013-10-28_21272013-10-28_2127_001 2013-10-28_2129
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: