6 Replies Latest reply: Apr 10, 2012 12:51 PM by Steve Hamilton RSS

    problems with adding (copying) new UCM Cs layout

    Najdawi
      Dear All,
      i am trying to add new layout to Oracle UCM, by following the steps as mentioned in this link http://studentsatoracle.blogspot.com/2010/11/ucm-how-to-create-new-skin-and-layout.html ; and i faces the following issues:

      when i want to change the user layout from existing oracle Trays to my NewTray the Oracle, Oracle2, Gray skins did not appear. also after selecting the NewTray as a layout, the left tree; which have Administration, Search, Browse Content, ...etc, is disappear.

      how can i select a skin from the NewTray layout?
      how can i show "appear" the ucm cs left tree?

      Regards
        • 1. Re: problems with adding (copying) new UCM Cs layout
          ryan sullivan2
          First question, are you on 11g or 10g?


          Next, I would strongly suggest you follow the original blog post, which has all of the needed information:

          https://blogs.oracle.com/kyle/entry/customizing_layouts_and_skins_in

          your post follows the 10g methods & references Kyle's 10g blog post, but there's a new post for 11g. I would strongly suggest reviewing Kyle's step-by-step first.

          Here's the oracle docs:

          http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/c04_look_nav.htm#insertedID0

          One of the first things to make sure you've done after installing the component (after restarting the servers) is to publish the static and dynamic files. You can do this via the config applet or the admin actions page. This makes sure that your new skin & layout directories actually receive the files from the component.

          Also, check the logs for errors.

          -ryan
          • 2. Re: problems with adding (copying) new UCM Cs layout
            Najdawi
            Thanks so much for your response,

            i had tried the component on a UCM Windows VM and it works fine the new layouts appears in the user layouts option; i can select from them.
            but i had tried to install the component on UCM Linux VM and enable it and the new layouts is created as a folders on the \\layouts path, but they didn't appear in the UCM CS user layouts; i cannot select them since they are hidden.

            i had tried to add these configuration in the Administration --> Admin server --> General Configuration, but also not appear.

            so i want to ask if there is an extra steps to do with this component in case it will be installed on Linux not Windows?

            note: i am using UCM Oracle 11g.

            Regards.
            • 3. Re: problems with adding (copying) new UCM Cs layout
              Steve Hamilton
              Sometimes you have to publish the weblayout files manually
              Try going to the Administrations, Admin Actions page and selecting the Publish Dynamic layout files and Publish Static layout files under WebLayout Publishing
              • 4. Re: problems with adding (copying) new UCM Cs layout
                ryan sullivan2
                Yeah, Double for what Steve mentions above.

                The only gotcha is if there are some hardcoded file paths in your component. All of the paths should be relative or use idocscript variables to render the correct system paths.

                if there are any "C:" or the like in your component, it will be tied to Windows. I don't think Kyle's sample will run you into this issue.

                But, also make sure you have your trace sections enabled (or do 'all') and verify that the publish process isn't failing.

                -ryan
                • 5. Re: problems with adding (copying) new UCM Cs layout
                  Najdawi
                  Thanks all for you response,
                  i had already tried publishing; [publish static, string, and dynamic files] and [publish schema configuration and data] , but same problem not appear.

                  also there is no full path in my component; all paths ar relative to the ucm installation directory. the component that i installed is the CreateLayoutAndSkin in the http://www.oracle.com/technetwork/indexes/samplecode/webcenter-content-samples-1352729.html ; . i didn't change anything in the component except the name and the id of the layouts in the createlayourandskin_resource.htm file and install the component.

                  these configuration i added them in Administration --> Admin server --> General Configuration:
                  LegacyScanLayoutsDirForAdditionalLayouts=true
                  LegacyScanLayoutsDirForAdditionalSkins=true
                  but also no changes.

                  this works fine on Windows but for Linux the new layouts didn't appear i the user layouts.

                  the following is the createlayourandskin_resource.htm after modification

                  <html>
                  <head>
                  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
                  <title>
                  CreateLayout staticResTable
                  </title>
                  </head>
                  <body>


                  <@table CreateLayoutAndSkin_Layouts@>
                  <table border=1>
                  <tr>
                  <td>id</td><td>label</td><td>enabled</td>
                  </tr>
                  <tr>
                  <td>NewTopMenusNaj</td><td>New Top Menus Naj</td><td>1</td>
                  </tr>
                  <tr>
                  <td>NewTraysNaj</td><td>New Trays Naj</td><td>1</td>
                  </tr>
                  </table>
                  <@end@>


                  <@dynamicdata LayoutRenderModes@>
                  layoutName, layoutMode
                  NewTopMenusNaj, Top Menus
                  NewTraysNaj, Trays
                  <@end@>


                  <@table CreateLayoutAndSkin_LayoutSkinPairs@>
                  <table border=1><caption><strong>
                  <tr>
                  <td>layout</td><td>skin</td><td>skinDir</td><td>enabled</td>
                  </tr>
                  <tr>
                  <td>NewTopMenusNaj</td><td>Oracle</td><td></td><td>1</td>
                  </tr>
                  <tr>
                  <td>NewTraysNaj</td><td>Oracle</td><td></td><td>1</td>
                  </tr>
                  <tr>
                  <td>Top Menus</td><td>Gray</td><td></td><td>1</td>
                  </tr>
                  </table>
                  <@end@>


                  <@table CreateLayoutAndSkin_PublishedWeblayoutFiles@>
                  <table border=1>
                  <tr>
                  <td>path</td>
                  <td>template</td>
                  <td>class</td>
                  <td>loadOrder</td>
                  <td>doPublishScript</td>
                  </tr>


                  <tr>
                  <td>resources/layouts/NewTopMenusNaj/layout.js<;/td>
                  <td>TOP_MENUS_LAYOUT_JS</td>
                  <td>javascript:layout:NewTopMenusNaj</td>
                  <td>50</td>
                  <td><$if isLayoutEnabled("NewTopMenusNaj") and (not DisableNewTopMenusPublishing)$><$doPublish = 1$><$endif$></td>
                  </tr>
                  <tr>
                  <td>resources/layouts/NewTopMenusNaj/Oracle/skin.css<;/td>
                  <td>IDC_SKIN_CSS</td>
                  <td>css:layout:NewTopMenusNaj</td>
                  <td>50</td>
                  <td><$if isLayoutEnabled("NewTopMenusNaj") and (not DisableOracleSkinPublishing) and (not DisableNewTopMenusPublishing)$><$doPublish = 1$><$endif$><$tags="top_menus:oracle"$></td>
                  </tr>


                  <tr>
                  <td>resources/layouts/NewTraysNaj/layout.js<;/td>
                  <td>TRAYS_LAYOUT_JS</td>
                  <td>javascript:layout:NewTraysNaj</td>
                  <td>50</td>
                  <td><$if isLayoutEnabled("NewTraysNaj") and (not DisableNewTraysPublishing)$><$doPublish = 1$><$endif$></td>
                  </tr>
                  <tr>
                  <td>resources/layouts/NewTraysNaj/Oracle/skin.css<;/td>
                  <td>IDC_SKIN_CSS</td>
                  <td>css:layout:NewTraysNaj</td>
                  <td>50</td>
                  <td><$if isLayoutEnabled("NewTraysNaj") and (not DisableOracleSkinPublishing) and (not DisableNewTraysPublishing)$><$doPublish = 1$><$endif$><$tags="trays:oracle"$></td>
                  </tr>

                  </table>
                  <@end@>


                  <@table CreateLayoutAndSkin_PublishedStaticFiles@>
                  <table border=1>
                  <tr>
                  <td>srcPath</td>
                  <td>path</td>
                  <td>class</td>
                  <td>loadOrder</td>
                  <td>doPublishScript</td>
                  <td>canDeleteDir</td>
                  </tr>


                  <tr>
                  <td>publish/resources/layouts/NewTraysNaj/Oracle</td>
                  <td>resources/layouts/NewTraysNaj/Oracle</td>
                  <td>resources:layout:NewTraysNaj</td>
                  <td>50</td>
                  <td><$if isLayoutEnabled("NewTraysNaj") and (not DisableOracleSkinPublishing) and (not DisableNewTraysPublishing)$><$doPublish = 1$><$endif$></td>
                  <td>0</td>
                  </tr>
                  <tr>
                  <td>publish/resources/layouts/Top Menus/Gray</td>
                  <td>resources/layouts/Top Menus/Gray</td>
                  <td>resources:layout:TopMenus</td>
                  <td>50</td>
                  <td><$if isLayoutEnabled("Top Menus") and (not DisableOracleSkinPublishing) and (not DisableNewTraysPublishing)$><$doPublish = 1$><$endif$></td>
                  <td>0</td>
                  </tr>
                  </table>
                  <@end@>


                  <@dynamicdata css_vars_trays_oracle@>
                  name, value
                  linkColor1, #00FF00
                  linkColor2, #0000FF
                  <@end@>


                  <@dynamicdata css_global@>
                  <?commatable cssStyleMergeAppendFormat="1"?>
                  selector, rules
                  .bigBoldAndRed, color:red;font-weight:bold;font-size=14pt
                  <@end@>

                  </body></html>
                  • 6. Re: problems with adding (copying) new UCM Cs layout
                    Steve Hamilton
                    On the Linux VM, check that the directory was created under weblayout (resources/layouts/NewTraysNaj)

                    also verify the directory names are all lower case, all upper or mixed. In Linux the case is relevant but not in Windows so you have to make sure you always refer to the resources in the correct case.

                    Edited by: Steve Hamilton on Apr 10, 2012 1:50 PM
                    Also - revert to the original component and make sure that it works for you