Site Studio Placeholder question...

Hello all,
I was wondering if it's possible to check if a placeholder has a subtemplate, regiontemplate or data file associated to it through idoc...
for example, consider the code below:
<body>
<div id="content">
<!--$wcmPlaceholder("Content_Placeholder")-->
</div>
<div id="links">
<!--$wcmPlaceholder("Links_Placeholder")-->
</div>
</body>
I would like to see if "Links_Placeholder" has anything associated to it in Idoc script, and if it does, I would give my body a class of "2column" (<body class="2column">). Then through CSS I could change the width to be a 2 column layout instead of 1. This is as opposed to having 2 different templates... 1 single column layout, and one 2 column.
Is this possible?
Thanks,
DP

alternative would be: Create a custom section property called numColumns which your site contributor can give. This way you know the number of columns required for the layout.
regards,
deepak

Similar Messages

  • Site Studio - Fragment question

    Hi,
    Is it possible to have dynamic listing within static list element.
    I have a Fragment in my page for static listing, Fragment contains number of elements of which one is custom element with radio button.
    Script says if Radio button A is selected display certain element in the page, if B is selected display different element and so on.
    I was wondering if it is possible to added query element within that Fragment which I can generate dynamic listing. Eg: if Radio button E is selected then display listing from whatever a query is.
    Thank you,

    You've basically described your own anwswer. Remember a dynamic list is nothing more than a structure that holds a query and the ui to display the results of that query. So, in your static list have an element that is a custom element to go get a query, or even a plain text element where you can paste the query. Then, your static list region template (if you're 10gR4) or your fragment ui (10gR3) panel will have to contain the code to execute the query and write out the radio buttons.
    -Jason
    http://www.corecontentonly.com

  • Some questions related to site studio 10gR4

    Hi everyone
    We are developing a solution using UCM, and I have couple of questions regarding the usage of the site studio 10gR4.
    It will be really great if any one of you can either answer or point me to the rite document/webpage where I can get these answers.
    The requirement is, we are going to use the site studio to develop the page template, and place holder, region definitions, element definitions etc. And then the contributor will contributor will contribute content using the contributor mode. But, there is another website in which this page template will be embedded, a Java based website.
    So it will be like, we create this page template, and call it inside a web application using CIS.
    Now my questions are
    Q1. Is there any service or CIS API to call page template? I have seen the page holder service, but don't know if there is any for page template.
    Q2. If there is a service I can call Page template, will that page template be in HTML format including all the sub elements like place holder, region definition etc?
    Q3. Now suppose if I am able to get all the required content using either the place holder or page template service call. Now I am displaying it to the user as an embedded content inside my other Java based website. Can I still do the Cntrl+Shift+F5 and call it in the contributor mode? If I am not, is there any way to achieve it? Because my contributors want to contribute while seeing the whole website and not just the embedded page template.
    Q4. Can anyone tell me about all the services Site studio supports? or any document where I can find them?
    Thanks in advance
    Rupal chawla

    Thanks for the replies, but I have found the answers to all of the questions, i will put them here for others as well ...
    Q1. Is there any service or CIS API to call page template? I have seen the page holder service, but don't know if there is any for page template.
    Nope, there is no service to call Page template.
    Q2. If there is a service I can call Page template, will that page template be in HTML format including all the sub elements like place holder, region definition etc
    Since there is no service to call page template, this question remains invalid. However, the answer to the other part with reference to place holder will be, the place holder CIS call will return the HTML that can be embedded in the calling framework. This HTML will contain everything present inside the place holder like fragments, RD, RT etc.
    Q3. Now suppose if I am able to get all the required content using either the place holder or page template service call. Now I am displaying it to the user as an
    embedded content inside my other Java based website. Can I still do the Cntrl+Shift+F5 and call it in the contributor mode? If I am not, is there any way to achieve it? Because my contributors want to contribute while seeing the whole website and not just the embedded page template.
    Atually the Cntrl+Shift+F5  generates an event which calls the begin_edit_session service, since we can associate this event with anything, it hardly matters if we are using Cntrl+Shift+F5 or a button click or a link on the page, the sole purpose remains calling the  begin_edit_session service. In the contribution mode, we will only see the embedded part that is coming from the UCM and not if anything is present in in the embedding framework
    Q4. Can anyone tell me about all the services Site studio supports? or any document where I can find them?
    placeholder service, and begin edit session service, obviously there are many of them (you can see in <UCM>\CS\custom\SiteStudio\resources\ss_services.htm), but for CIS integration these are the useful one's.
    Edited by: Rupal Chawla on 29-Sep-2009 22:44

  • Getting 404 while view in browser from the site studio desinger..10gr4

    Hi ,
    Thanks for the help guys.
    I have a question here...I have created a website using site studio designer and a home page ..when i right click on the home page i have created...to view in the browser..its giving me 404 error...i am not sure whats the problem is...
    the url looks like this
    http://myucmIpAddress/sitestudiosamplewebsite/index.htm

    Hi
    Reason is you have missed out to make the config changes in Apache webserver's httpd.conf file . It should be like this :
    <Location "/">
    IdcSecurity idc
    </Location>
    Restart apache after this and then test .
    Thanks
    Srinath

  • Error while creating place holder definition in Site Studio using Jdev,UCM

    Hi,
    I am Using UCM and Jdev 11g.
    I was creating a website using Oracle® Fusion Middleware Developer's Guide for Site Studio for External Applications
    11g Release 1 (11.1.1).
    It worked fine till step 9 of 4.2 i.e i created till region template.
    But as i was creating place holder definition, i was trying to add region definition.
    This was the step where i got the error :
    Unable to retrieve search results. Error occurred while retrying the search query. Error occurred while processing. Unable to return results.
    Because of this i am not able to see any region definitions which i had created earlier. so i am not able to add any region definition to it.
    Please help me resolve this.

    HI Srinath,
    Thanks for the response.
    Please let me know how to addsystemdatabase tracing section on UCM .
    PFB the error which is coming in Jdev.
    oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Error occurred while processing. Unable to return results. Unable to create the result set for query 'SELECT Revisions.dID, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, dFileSize AS VaultFileSize, DocMeta.*, RevClasses.*
              FROM Revisions, DocMeta, Documents, RevClasses
              WHERE Revisions.dID=DocMeta.dID And Revisions.dID=Documents.dID And Revisions.dDocName = RevClasses.dDocName And dIsPrimary = 1 And dReleaseState IN ('Y', 'U', 'I') AND (((((((( xWebsiteObjectType LIKE '%Placeholder Definition%' ) AND ((( CONTAINS(xWebsites, 'SiteStudioDemo')> 0 ))))))))) AND ((((dSecurityGroup != 'SG_MO_Op' OR dSecurityGroup IS NULL))))) ORDER BY dInDate Desc'. ORA-00904: "CONTAINS": invalid identifier
    java.sql.SQLSyntaxErrorException: ORA-00904: "CONTAINS": invalid identifier.
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:135)
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:107)
         at oracle.stellent.wcm.core.idc.AbstractIdcApi.getResponseBinder(AbstractIdcApi.java:254)
         at oracle.stellent.wcm.core.idc.impl.SiteStudioApi.search(SiteStudioApi.java:216)
         at oracle.stellent.wcm.jdev.cis.PluginSiteStudioApi$1.run(PluginSiteStudioApi.java:127)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)

  • URGENT: Consuming Portlets in Site Studio Design.

    Hi...
    I am quite new to oracle technologies and have to create a full fledged secure B2B web portal (web center application) using various web center technologies like Wiki, Discussions etc and also integrate and manage content through it. The portal is going to have proper left, right, top & bottom navigation sections and access to content would be dependent on user roles and rights. I also have to create various JPDK and WSRP portlets that need to be used in the portal for search, navigation mapping etc. The portal would be obviously deployed on a Oracle Application Server. The main usage of the portal is going to be for collaboration between the various employees of an organization and also to manage their day to day business activities. Moreover, some power user have to be able to create and update content on the fly.
    1. My concern is that is is possible to use Site Studio somehow in the development of this kind of a portal?
    2. How to consume Portlets in Site Studio (as fragments?) or how to embed portlets in the site studio design?
    3. Can I create the complete web layout and content management mechanisms using Site Studio and then integrate Portlets on to it using JDeveloper?
    4. Is such an integration possible? If yes what would be the limitations of such an approach? If no, what are the best possible tools for the same?
    Please let me know your comments in detail.
    Thanks in advance.
    Best Regards,
    Naveen
    Edited by: NaveenZ on Sep 24, 2009 10:24 PM

    Hi NaveenZ,
    You might want to post your question on ECM forum.
    George

  • How to link to a file in UCM with content presenter site studio template

    Hi,
    I have Webcenter spaces with content presenter showing Site studio content.
    In this site studio region I have an element for rich text (html)
    Now we want to create a link in this text to an existing document in UCM.
    The question is how achief this?
    There seems no standard functionality for doing this.
    Any suggestion is welcome!
    Thanks,
    Edward

    Hi,
    I have Webcenter spaces with content presenter showing Site studio content.
    In this site studio region I have an element for rich text (html)
    Now we want to create a link in this text to an existing document in UCM.
    The question is how achief this?
    There seems no standard functionality for doing this.
    Any suggestion is welcome!
    Thanks,
    Edward

  • Language/Localization problem with Site Studio

    I have created a small site using Site Studio. Now in the homepage, there is a select option box where the user have to choose a language (English or Japanese) based on which the text on the page should get converted in a particular language.
    So for this, I have created a custom component where I have defined strings in the following way:
    <@ja.wwMyString=My String in Japanese@>
    <@fr.wwMyString=My String in French@>
    <@en.wwMyString=My String in English@>
    And when I see the text on the browser, it displays "My String in English" because the SystemLocale value is set as 'English-US'. So I need a way by which I can change the Locale of the site. So I have 2 questions:
    1. How can I achieve the same?
    2. Is my approach correct? Maybe there are better ways to do the same. I guess there will be a lot of manual work if I follow the approach described above.

    Any reply?

  • Character replacement script for Site Studio / idocscript

    Working on creating and RSS feed of items in our CMS via the RSS feed component in Site Studio. I have the feed generating, but the Google Product search parser that I need to read the feed balks at odd (non-standard) characters like "o-slash" and an accented e. We have many items with foreign-language descriptions or authors from non-English countries that use characters outside of standard English.
    I would have thought that using xml(parameter) would have solved this problem, but it does not.
    At the moment, I'm "solving" this by individually locating the error and adding a "regexReplaceAll" for each one to change it to a somewhat acceptable alternative. It gets even tougher when, for example, I have to replace for the "o-slash" by using this:
    <!--$theAuthor = regexReplaceAll(xCreator, "&#248;", "&#38;#248;")-->
    because the server recognizes the o-slash as &#248, but the xml parser (Google Product search's data feed) will accept it only if I also make the ampersand in the entity an entity as well.
    My question is... is there an easier way to find and replace for all these potential pitfalls? Is there a idocscript that someone has already written and is willing to share?
    Thanks in advance for any help you can give.
    Barry
    (using Site Studio 10gR4)

    Thanks, but <!--$xml(descriptionText)--> doesn't seem to work for this parser (Google products data feed) and/or the characters that are being used.
    For example, the output of <!--$xml(descriptionText)--> is this:
    "...lleven un método efectivo para medir la satisfacción..."
    and the error is this:
    "Some of the characters in your items seem to be invalid.
    ...lleven un método efectivo para medir la satisfacción..."
    So the parser is either seeing something different than what I see (even though we're reading the same file) or it just doesn't consider "é" and "ó" to be valid xml (and I have no idea if they are or not).
    I have been asking for more guidance on the Google products board, too, but was hoping that there was something else that could be done from Site Studio end.
    Thanks!
    Barry

  • Best Practices for Forms within Site Studio Templates

    Last summer our university redesigned our entire website using site studio. We only use the content server for the SiteStudio add on. During the redesign, we found that it wasn't clear how we were supposed to migrate our current web forms (applications, payment forms, etc) to sitestudio. Our current workaround is to place the form within the content server, and have it submit data to a cgi (perl,php) placed on a separate web server. We wrap the backend of the form within an html template that looks like our sitestudio templates so that it appears to the end user that they are still on our website.
    Obviously, this is not ideal. I have been reading documentation on how to use the content server to host JSP files. The jsp files run flawlessly if they are accessed via the weblayout folder directly. I have not yet found a solution that will allow me to wrap my jsp forms within our existing sitestudio templates.
    Has anyone else encountered this problem, or come up with an alternate solution to this problem?

    Thanks, I appreciate your taking time to find the precise answer. Just today this bit me again.
    I have a need to modify the ComboBox template to italicize placeholder text.  That's a easy thing to do; however, now that I've created a new template I have to name it and add a Style={StaticResource MyNewStyle} to ALL the comboboxes in my app. 
    If I leave my new template unnamed - to override the default - none of the theme resource changes that I already have in place are picked up by the existing ComboBoxes, and they revert to their default look.
    There's clearly something wrong in the way I'm doing it or the way it's implemented.

  • Problem previewing Site Studio Data Files

    Hello,
    I'm building a JSF webcenter application, which has lots of content that's going to be published using Site Studio.
    Using Site Studio Designer, I have created:
    - An element definition (WYSIWYG)
    - A region definition that contains just the element above
    - A region template, that simply outputs the element (<!--$wcmElement("Element")-->)
    - A placeholder definition, associated to the region definition and region template above
    - Several Contributor Data Files, all of them associated to the region definition above
    On the webcenter application:
    - Content is shown using WCM_PLACEHOLDER (along with the templateDocName param)
    - A link that points to the WCM_BEGIN_EDIT_SESSION service is exposed for the authenticated users
    Additional UCM configuration:
    - UCM accounts are activated
    - Data files are categorized under the accounts created
    - There are Workflows to approve modifications on the data files
    Everything is working fine, but when reviewing content on the workflow for approval/rejection, the content itself is not displayed. Instead, it gives me the following error message: *"Region template is unavailable"*. I can see that this is the service being called to get the HTML rendition:
    http://<server:port>/cs/idcplg?IdcService=SS_QD_GET_RENDITION&coreContentOnly=1&dDocName=PIO-HOME-SERVICOSGRATUITOS&dID=45601
    After enabling the trace for "sitestudio" itens, the following gets logged:
    SSXA_GET_CACHE_SYNC_INFO [dUser=sysadmin][IsJava=1] 0.03409299999475479(secs)
         !csUserEventMessage,weblogic,ds-imesp-dof2.lab.kaizen.com.br:16200!csFileServiceReferredToBy,http://<server:port>/cs/idcplg?IdcService=REVIEW_WORKFLOW_DOC&dDocName=PIO-HOME-SERVICOSGRATUITOS&inQueueRedirect=1!csFileServiceUserAgent,Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/534.24 (KHTML\, like Gecko) Chrome/11.0.696.65 Safari/534.24,GET intradoc.common.ServiceException: *!csSSQuickDiffRegionTemplateUnavailable*
         at sitestudio.quickdiff.SSQDFileServiceHandler.qdPrepareDelivery(Unknown Source)
         ... 28 more
    Am I missing something? Do I have to configure the region template somewhere else?
    Any help would be much appreciated, since I can't find any documentation about this error!
    Thanks,
    Tomy Inhauser

    After 2 days trying to fix this problem, I finally posted it on the forum. 10 minutes later, I found the cause: the content item SS_DEFAULT_REGION_TEMPLATE, which is checked-in on the installation of the Site Studio components, was missing on my environment! (ie, someone deleted it)
    Although it is clearly not a bug, it would be very nice for the error message to show the name of the region template that's unavailable, since these "system files" are not protected!

  • Site Studio 10gR3 to R4

    Hi All,
    We need to migrate from Site Stuidio 10gR3 to 10gR4.
    Our current CS config :
    Version: 10.1.3.3.2 (071031) (Build:7.2.2.184)
    SiteStudio
    03-11 (7.7.2.240)
    Compatible with Build (2008-)     Feature Extensions:SiteStudio:7.7.2.240-1.0,ContentTrackerSupport:1.0-1.0
    Classpath: $COMPONENT_DIR/classes;$COMPONENT_DIR/lib/jakarta-oro-2.0.8.jar;
    Libpath: $COMPONENT_DIR/lib
    No patches or upgrades have ever been installed on this since its installation on Feb 2008.
    Could you please guide me the way to plan this activity. I mean any sort of documentation or steps that we need to go through or check list or test plan before we carry out this activity.
    One more question :
    What are the latest versions of Content Server and Site Studio?
    Thanks,
    Nir.

    Hi Sreenath,
    Thank you for the information. When we migrate from 10gR3 to 10gR4, can we safely assume the following things:
    -- All existing customizations done on 10gR3 will continue to work on new platform versioned at 10gR4
    -- Will be able to do enhancements and add new templates on 10gR4 [SS resources and mainly templates(hcsp) ]without any side effects.
    Regards,
    Gowtham

  • Site Studio - no fragment directory in weblayout

    Hi people,
    I've just installed the SampleWiki on my Content Server, the installation worked fine but there is no images and no layout on the wiki.
    While checking on my Content Server files, I found that there was no fragment directory in the weblayout directory.
    Before installing the SampleWiki, I installed Site Studio and the CS10R3UpdateBundle.
    Does someone has an idea ? Why is there no fragment' directory ?
    Thanks,
    romain.

    I should have tested more before sending a question..
    I created the directory by myself and deployed the sample wiki fragment one more time!
    Then, all the repertories appeared in the fragments' directory...
    So, it works now.
    (I still do not understand why it hasn't worked the first time!)
    Romain.

  • Site Studio and it's uses

    Ok so I was questioned about making a web page accessing UCM data for the end user, and I was wondering if Site Studio is the proper approach to tackle this kind of request. I was reading up on some materal on it and it seemed the right way to go, I just wanted to be sure before I commit to idea like that.

    With all respect
    making a web page accessing UCM data for the end useris hardly enough to decide which way to go.
    You can
    - use UCM's web GUI
    - create a site via Site Studio or SSXA
    - use a portal technology and expose UCM's portlets
    - create your own web application and get content from UCM via services or RIDC calls
    Site Studio is mainly for creation of sites, where site's documents (pages, images, multimedia, but also CSSs, templates or fragments) are stored in UCM. Site Studio's sites also support contribution mode where authorized users may modify content of the site directly in the WYSIWYG mode, or management mode, where site managers may add new site's sections, re-organize pages, etc. Is this something close to your requirements?

  • Site Studio XA: Checking if the page is in contrib mode

    Hi,
    I am trying to check if the jspx page is in contribution mode or not. Is there any site studio tag or variable that I can use to verify that?
    Thanks
    al

    Sorry, didn't quite understand your question. Anyway, here's the list of Java classes and config variables for SiteContext (parameters of each method) for future reference.

Maybe you are looking for

  • Unable to capture HDV footage with FCP 5.1

    I've captured HD footage onto my old computer (10.4.11) without any problem but now I'm trying on my new one and it doesn't want to know. First off there was a problem with the Firewire port ejecting my hard drives randomly so I took it to be repaire

  • Summary Report For Store Activities.

    Dear Gurus.. I need to make a summary report on Store Activities. Having following Fields. Material number |  Material Description |  Material Unit | Opening Balance | Quantity |  Receipts | Quantity | Issues | Quantity | Closing Balance | Quantity |

  • Service entry sheet create for contracts with unplanned services

    Hi, I am creating SES using BAPI_ENTRYSHEET_CREATE. I have a scenario in which i need to create SES based on the PO no, PO Item , Quantity, Headertext, Contract No, Contract Item, Contract_Item_Line. While creating manual SES using ML81N we use Contr

  • Adobe has my money and won't give me my serial number!

    For those of you who have successfully downloaded an upgrade to Lightroom 3 with serial numbers, congratulations!  If you haven't, you might beware that you might not get a serial number and neither customer nor technical support has ANY answer for y

  • Multiple instances of weblogic server 5.1 on one node.

    Hi, We failed to start one instance on a node where we were able to start another instance from another location. We installed two instances of Weblogic server 5.1 on Solaris 5.7. One at /usr/weblogic and another at /opt/weblogic. We were able to sta