Site Studio - Custom Elements

Hi,
i have cloned ss_docname_form_link.
I have successfully added dDoctitle, but any reference to custom metadata fields (e.g. xComments) fails.
Any suggestions?
Dave Martin

Hi,
an extract of the code is below, I have extended the points where dDocName is being used to add dDocTitle and xComments throughout the code.
if (WCM.IsValid(returnValue) && WCM.IsValid(returnValue.docUrl))
                    var link = returnValue.docUrl || '';
                    var dDocName = returnValue.dDocName || '';
                    var dDocTitle = returnValue.dDocTitle || '';                    
                    var xComments = returnValue.xComments || '';
                    Custom.SetInputValue( link, dDocName, dDocTitle, dDocAuthor, xComments);
                    link = $ID('input-value').value;
                    link = Custom.GetDisplayValue( link );
                    $ID('display-value').value = link;
Regards, Dave

Similar Messages

  • Google recaptcha Implementation in Site Studio Custom Forms

    I am implementing recaptcha in my custom html forms which i have defined in custom component resource.for recaptcha implementation i am using recaptcha4j-0.0.7.jar ,on form submit it calls my custom service 'MyMail' which executes javafunction where i am calling recaptcha fuction to verify recaptcha text and after that sending Form details to given Email Address.*But when i am redirecting to same page for sending message for recaptcha response all form fields values goes blank.*
    Is there any other way to retain form values when my service returns recaptcha response?
    <form id="DataForm10" class="form" action="<$HttpCgiPath$>?IdcService=My_MAIL" method="post">
    <fieldset class="rc_grey">
    <input type="hidden" name="Email" value="<$email$>"/>
    <input type="hidden" name="RedirectUrl" value="<$ssGetServerRelativeUrl(siteId, nodeId)$>"/>
    <ol>
    <li>
    <div class="grid_4 alpha">
    <label for="name"><em> *</em>Your Name</label>
    </div>
    <div class="grid_5">
         <input type="text" name="name" id="name" class="mandatory"/>
    </div>
    </li>
    <li>
    <div class="grid_4 alpha">
    <label for="reference_no"><em> *</em>Your Reference No (located top left of payslip)</label>
    </div>
    <div class="grid_5">
         <input type="text" name="reference_no" id="reference_no" class="mandatory" />
    </div>
    </li>
    <li>
    <div class="grid_4 alpha">
    <label for="dob"><em> *</em>Your Date of birth</label>
    </div>
    <div class="grid_5">
         <input type="text" name="dob" id="dob" class="mandatory"/>
    </div>
    </li>
    <li>
    <div class="grid_4 alpha">
    <label for="ni_number"><em> *</em>Your NI Number</label>
    </div>
    <div class="grid_5">
         <input type="text" name="ni_number" id="ni_number" class="mandatory"/>
    </div>
    </li>
    <li>
    <$include recaptcha_inc$>
    </li>
    </ol>
    </fieldset>
    <div class="s_mrg">
              <input type="submit" value="Send" class="button" />
    </div>
    <div class="clear"></div>
    </form>
    Also if there is any other better approach to implement google reCAPTCHA in oracle UCM Site Studio?Please Suggest

    Hi Mikey,
    This code is not working because when i am redirecting on same Form page all m_binder data will lost , so the response data will be blank on page after redirecting.You can see theprevious form code where i have specified RedirectUrl input hidden field and in my java fucntion i am only appending Response message with RedirectUrl parameter.
    if (reCaptchaResponse.isValid()) { 
              // this command is used to send email to the client. The message
                   // sent is a template (Mail), and the data to format the
                   // message is taken out of m_binder, contained in "this"
              boolean response=InternetFunctions.sendMailTo(emailStr, "Mail", subject, this.m_service);
                   redirecturl=redirecturl+"?Response="+response;
                   m_binder.putLocal("RedirectUrl",redirecturl);
         } else {
              redirecturl=redirecturl+"?valid="+reCaptchaResponse.isValid();
                   m_binder.putLocal("RedirectUrl",redirecturl);
              }catch(Exception e){
                   e.printStackTrace();
                   redirecturl=redirecturl+"?error="+e.getMessage();
                   m_binder.putLocal("RedirectUrl",redirecturl);
    so please tell me is there any other way to submit my custom form and will display previous form field values entered by user when recaptcha response will  show on same page  through my service.
    Thanks
    Anubhav

  • Site Studio Page Element for a photo/pic

    Hi,
    I am trying to develope a UCM website using Jdev Site Studio.
    I have to create a user profile page. The page should have photo, introduction, interests and contact details.
    I have created a region definition with 3 WYSWYG elements for introduction, interests and contact details. But I am not sure
    what element to use for photo. An example or some sample code which uses some site studio element for photo will be helpful.
    Thanks
    Mahendra

    Mahendra,
    I believe you can use either WYSIWYG or IMAGE ONLY elements. Check the tutorial available at the link mentioned in this thread: Site studio 11g  -  tutorial - Contribution mode prompts for userid / pass
    Jiri

  • Addition of extra Space issue in site studio text element

    Hi,
    we have implemented WCM for our website. We are in webcenter PS3 version.
    At places where we have used text element for titles of various sections,
    if we append one extra space and save it, it displays as   in front end.
    When we remove the space, it does not clear. But if we cut and paste once the word once again it is perfect.
    Is there any solution to trim that space when it is displayed at front end. Please suggest.
    Regards,
    Bhaskar

    enclose your text element with strTrimWs.
    Removes spaces from the beginning and end of a string.

  • Insert Wysiwyg Element button grayed out in Site Studio (help!!!)

    I just finished installing Site Studio and UCM onto Windows Server 2004 R2 Apache Setup. I am unable to insert a Wysiwg Elements among other items (the buttons are clicked out)
    On a side note, when I try to open a site in Contributor Mode, I click on Edit region, and I get the following error
    "No elements exist within the region. This window will now close"
    Are these two issues related. Thanks for the help.

    What is your browser version. Can you try from Firefox browser.
    Also contribution elements will be enabled only if your mouse cursor is in contribution region. else they will be greyed out.
    regards,
    deepak
    Edited by: r.dipk on Apr 22, 2010 12:06 AM

  • How to create dynamic list element in Site Studio designer?

    Hi all,
    I have installed the Site Studio Designer(10gR4).The dynamic list element that i have added in the contributor region executes a query to search and display all the files in a particular folder.In the contributor mode when i try to add/edit the dynamic list element it gives an error saying :
    Unable to perform the action due to the following reasons:
    [+] Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT IdcColl2.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.* FROM IdcColl2, DocMeta WHERE IdcColl2.dID=DocMeta.dID AND (((((( xCollectionID >= 14 AND xCollectionID <= 14 ) AND NOT ( (CONTAINS(xDontShowInListsForWebsites, '{DIPP_Sample}') > 0) )))))) ORDER BY dDocTitle desc'. ORA-20000: Oracle Text error: DRG-10599: column is not indexed
    I have enabled the full-text search on the content server and also included xWebsites and xWebsiteObjectType columns to be full indexed in the Zone Fields Configuration.Is there any other setting to be done?Please help.
    Thanks,
    nithya

    Hi
    Include the xDontShowInListsForWebsites also from the zone filed and then update it.Then test it out.
    Hope it helps
    Srinath

  • Unable to define element definition in Site Studio

    Hello guys,
    I'm using SiteStudio and UCM 11g and trying to make a news site. I follow this tutorial's instructions, but after i try to add an element definiton, i cannot see it on project again. I mean the element definiton that i try to add couldn't be added actually. Does anybody have an idea about this problem?
    Helps will be appreciated.Regars
    Erdo

    So, I assume that we speak about SSXA and JDev IDE.
    First of all, you should find out where is the problem (what metadata is missing/is not configured). My guess is that it will be Web Sites (xWebsites). This parameter can be best influenced from JDev by selecting the site you want to work with in the upper-right corner of the Site Assets section in the JDev (you might find the text +( No Sites Specified)+ there ). Note that you must have a Site Studio Connection created and must be logged in to make this work (since you can create the element definition I assume that you have your connection ready).
    Of course, like with any other metadata you may also specify the metadata later via Advanced Checkin, but since it should not be necessary to do it that way.
    The other parameter, Web Site Object Type, will be selected for you by JDev, depending on the object you want to create.

  • How to set one of the elements in contributable mode to non editable in oracle site studio

    Hi,
    I am using oracle site  studio and webcenter content.In contributable mode for a cdf I have a static element and 4 columns in that(4 elements). I want to enter data in all 4 columns and after that I want to make one of the column as non editable. Is it possible? If yes, kindly let know how this can be achieved.
    Thanks in advance

    If you don't need to actually display the non-editable region in the editor, then you could do the following:
    Add all 4 elements to the region definition.
    Add your content/data.
    Remove the non-editable element from the region definition.
    The content/data will still be stored in the CDF and should be retrievable.
    Jonathan
    https://jonathanhult.com

  • Using a Site Studio 10R4 Dynamic List Element Definition

    Hi All,
    I've created and can use a Static List Element Definition > Region Definition > Region Template with no problems based off of the 10gR4 samples.
    However, there is no example that I've found to utilise the Element Definition of a Dynamic List. I'm attempting to use the same sample code as provided for a Static List but having no luck displaying the results of the query...
    Does anyone have some sample code used in a Region Template or Sub Template to show how we use a Dynamic List Element Definition please?
    I noted from another thread in this forum that there are some iDoc calls to make which load the query defined in the Element Definition... I can't find any documentation regarding this either.
    Thanks
    Edited by: user615721 on May 4, 2009 10:08 AM
    Edited by: user615721 on May 4, 2009 10:09 AM

    Found my answer in another thread, here... Re: Using a Site Studio 10R4 Dynamic List Element Definition
    'For 10gR4 Site Studio you can get examples and even a video talking about making dyanmic lists from here:
    http://www.oracle.com/technology/products/content-management/ucm/SiteStudio10gR4Tutorials/index.html'
    Edited by: user615721 on May 4, 2009 10:25 AM
    Edited by: user615721 on May 4, 2009 10:25 AM

  • Hidden Assets like element definition, region definition from site studio designer

    Hi Experts,
    I am facing problem in Site Studio Designer, I have created a new Website and Created Page Template and when i tried to create the site assets like element definition, region definition, region templates. It's visible and when i refresh the list or change the list from element definition to region definition and again open the tab of element definition, the definition list removes or hide from the list in Site Studio Designer and when i check the content server for the same region definitions, element definitions all are present in content server but hides from site studio designer. Can any one please help me out resolve this issue i am unable to edit any assets.
    Thanks,
    Vijay

    First, the Override Editor CSS is ONLY used to change the CSS for the contributor editor. For instance, if you have a div tag that encompasses the entire website and specify it to be center-aligned, everything within your WYSIWYG editor will be center-aligned too (not ideal). So you could, for instance, use the Override Editor CSS to have the same div class that overrides the text within the contributor to be left-aligned.
    As far as not being able to apply the CSS, I'm not too sure. You should at least be able to create a completely blank HCSP layout page, and see that no classes are available (because there is no CSS on the page). When you have a CSS, I've found that the classes loaded aren't always necessarily the ones that are in the CSS. My recommendation is to select "Allow selected classes", ONLY use the "additional classes", and type in the classes you want to show up in the CSS WYSIWYG dropdown. That's the only way I've gotten it to work.

  • Metadata values not showing in Site Studio layout using Idoc Script

    Hi All,
    We have a SS layout (secondary) with replaceable regions for showing content that is listed in a primary page dynamic list.
    Part of the layout shows contribution elements of Contributor Data File content items, but part of layout also shows metadata values. We use <!--$DOC_INFO.dDocTitle--> to show the content item Title with no problems.
    However, for some content items, some metadata values are not showing on the layout - specifically a custom metadata field called xFinishDate (which is of type 'Date' in Config Man). The code <!--$DOC_INFO.xFinishDate--> simply does not work (nothing is displayed) for some content items, despite definitely having a set FinishDate value. Some other content items show this value fine.
    The <!--$DOC_INFO.dDocTitle--> value works for ALL items, but the <!--$DOC_INFO.xFinishDate--> does not, and there appears to be no difference between the items that it does, and does not work for. They are all CDF, same DocType, same CheckIn profile, etc.
    The non-working items are all released and indexed. Their Content Information in Content Server shows complete metadata. I have resubmitted the non-working items for reconversion in Repo Man but no luck.
    Is there something I am missing? Any help is greatly appreciated.
    Luke.

    Actually the default DOC_INFO resultset that is on the page seems to be for the content item being loaded into the secondary layout's replaceable regions. This is why DOC_INFO.dDocTitle gives the results expected.
    However, I think I have discovered why the xFinishDate value was not showing. Using sapan's code (and modifying it a bit) I was able to print out all the metadata field names and values for default DOC_INFO resultset.
    Using this URL as an example: http://www.bond.edu.au/about-bond/jobs-at-bond/BD3_011217
    At the top of page region (replaceable) where the Contributor Data File is loaded into, the DOC_INFO resultset is relevant to the content item that is being loaded into the layout (content ID: BD3_011217 - as per the URL format), which is what we want.
    However, throughout the Contributor Data File content, if a link is made using the Site Studio link wizard via FCK Editor (in the above case, it is the position description link, which is a link to a PDF) and the link is 'Link to a file' and the 'Choose Target section' is selected as 'Use default website section metadata', the resulting link looks like "http://www.bond.edu.au/about-bond/jobs-at-bond/BD3_011216". Any references to the DOC_INFO resultset on the page after the instance of this link now use the metadata of the content item referred to in the link, not the original content item. I have dumped out the DOC_INFO fields/values in different parts of the layout to prove this. The linked content item has no xFinishDate value so this is why nothing displays (displaying xFinishDate needs to happen after the link to the position description).
    I guess I need to either:
    - change the way the link is made to the content item to "Link to the Content Item's URL", but I would prefer not to expose the resulting path e.g. "[!--$HttpRelativeWebRoot--]groups/group-name/@account-name/documents/content-type/content-id.pdf"
    - explicitly make a resultset using <!--$executeService("SS_GET_SEARCH_RESULTS")--> with the content ID I know I want and use it instead of the default DOC_INFO one. Is there any other way to make a resultset comprising of a single item's metadata?
    9.45 SS_GET_SEARCH_RESULTS
    ■ Description: This is a wrapper around the regular CS GET_SEARCH_RESULTS
    service. It allows some Site Studio features to be specified simply as flags and have
    the real query syntax be constructed on the server. It can modify the standard
    'SearchResults' resultset to contain an additional column called 'ssUrl' which will
    contain the Site Studio-friendly url for all of the search results.
    ■ Parameters:
    – siteId: the unique identifier of the site (required).
    – ssLimitScope: True/False, restricting scope to within the site only (optional).
    – ssUserSearchText: user-supplied search text (optional).
    – ssWebsiteObjectType: object type (optional).
    – computeFriendlyUrls: True/False, modify results to include ssUrl (optional).
    ■ Returns: resultset named ’Search Results’.
    ■ Security: The user must have at write access to at least one security group on the
    content server
    Thanks to everyone for their help. Almost there!
    Edited by: lukeb2112 on 18/01/2010 17:30

  • 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

  • IDOC script in custom element forms

    Hi,
    I am using Site Studio 10gr4.
    I was wondering if its possible to use IDOC script inside custom element forms. What I want to acheive is to display a combox box inside a custom element in a static list. The values inside the combobox are retreived from one of the views (created inside Configuration Manager in the content server).
    Your help will be appreciated.
    Many Thanks

    OK, I found the answer :).
    I checked in the custom element element form as an HTM. Chaning it to HCSP fixed the issue :).

  • JQUERY on a Custom Element Form

    Hi,
    I would like to know if it's possible to use the librairy jquery on a custom element form ( SSXA) . How to do a link to the jquery librairy stores in UCM ?
    I want to create a date picker with jquery . anyone have already done it before ?
    Thank you for your answer

    Eran,
    Can you elaborate on what you're looking for?
    UCM comes with a number of sample custom element forms. These forms are leveraged within a pretty strict context of the site studio contributor. The primary api is javascript based.
    I don't believe you would be restricted on the types of custom element forms you can create if you're implementing into a jsp/x site. I believe the issue is mostly dependent on how you're calling the SS contributor.
    -ryan

  • Upgrading from Site Studio R3 to R4

    We're upgrading to the current version of Site Studio R4 from R3. We've installed Site Studio R4 server components on the server in a separate test environment. BUT - if we were to install it on our development server where the content for our existing R3 sites is served, am I correct that it should serve the R3 sites properly and allow me edit R3 sites in Site Studio Designer R4 without first re-making the site in Designer R4 from the ground up?
    Or is there a conversion process I will have to go through with each of our sites that were designed in the previous version?
    And is there anywhere on Oracle's site that explains the upgrade process and what's compatible and not?
    Thanks!
    Barry

    10gR3 to 10gR4 is backwards compatible with the exception of Custom Element Forms.
    Also, "backwards compatible" means you can still use contribution regions instead of the new placeholder model, but you won't get many of the benefits of the new model until you go in and recode those pieces. It does however give you the ability to run your pre-upgrades sites as is and build new sites with all the new features. As well as work on updating pre-upgrade sites incrementally.
    -Jason Stortz
    http://www.corecontentonly.com
    http://www.redstonecontentsolutions.com

Maybe you are looking for