Modifying a section's primary page template through API

Hi all,
I'm trying to remove the association between a placeholder on a given section and its data file from a remote machine (running automated tests). Using JDeveloper, I open the site structure, find the section, and update the Primary Page to remove the template parameters. For example:
Before: Primary Page = @PAGETEMPLATE?placeholder1=datafile1
After: Primary Page = @PAGETEMPLATE
I can't find any IDC service that allows me to do this. Does this service exist? Or is there another way to break this association?
Thanks again!

Answering my own question...
It's possible to use SiteStudio services (documented here: http://docs.oracle.com/cd/E21764_01/doc.1111/e10615/c11_ss_services.htm#sthref690) through RIDC to do this. Services of interest:
SS_GET_ALL_SITES_EX2 to get site info (name and ID)
SS_GET_FIRST_NODE_ID to get root node ID
SS_GET_RELATIVE_NODE_ID to navigate through the site tree (parent, child, prior, next)
SS_GET_NODE_PROPERTY to get a node property (e.g. label)
SS_SET_NODE_PROPERTY to set a node property (e.g. primaryUrl)
Here the primaryUrl property was the one I needed to update.

Similar Messages

  • Preference or Page Item in Page Template

    Hi,
    I'm trying to place dynamic header and footer text on my pages. I am trying to include a variable reference in the Body section of my page template. I can reference Static Substitution strings, but I cannot get either preferences or page items to display. How do I get data driven values into the page template? Thanks!

    Bill,
    Sorry for the misdirection. I made the popular error of thinking that I had knowledge which I did not, in fact, possess.
    I adjusted your page so that it might work the way you intend. It turns out that it is not possible to reference preferences using &ITEM_NAME. notation, only page/application items and static substitution strings. Setting and getting named preferences must be done with the API as illustrated in the new page process:  htmldb_util.set_preference(p_preference => 'IIR_CLASS',p_value => 'TESTING99');
      :IIR_CLASS := htmldb_util.get_preference(p_preference => 'IIR_CLASS');... although items can be sourced from named preferences and those items themselves can have "User" persistence just like preferences.
    Scott

  • Change the Page Template Body to use 8 columns instead of 12

    Apex Version: 4.2.0.00.27
    Theme: 25
    I have a page that I need to divide by 8 segments, rather than 12 ( I will need to place items and buttons in one of the 8 columns).
    To begin, I have made a copy of the One Level Tabs - No Sidebar page template. I have tried to edit this template, and played with multiple combinations changing the Grid Layout and Display Points settings, but instead of creating a page that has 8 columns, that span the width of the page, I am just left with blank space.
    See attached:.
    https://docs.google.com/file/d/0B8Hpc-BDtEo9cjliSEJCR1hlN2c/edit?usp=drivesdk
    And these are the Page Template Settings:
    https://docs.google.com/file/d/0B8Hpc-BDtEo9ZnVVeU9vUm5jUUU/edit?usp=drivesdk
    Is it possible to change the body section of the page template to have 8 columns span the entire width, without the dead space?
    Amanda.

    Amanda,
    The CSS definition that comes with Theme 25 is based on 12 columns. The definition actually contains multiple fixed grid definitions for different screen sizes. For each definition, the column widths are defined (hard coded) based on the 12 column grid.
    Important: the grid attributes in the page template do not define the grid, the CSS does. The attributes/definition in the page template is necessary for APEX to dynamically use the grid definition. The CSS is leading!
    If you want to use an 8 column grid, you will have to re-write the CSS grid definition and alter the grid definition in the page template accordingly. So it is possible, but, depending on your level of understanding CSS and @Media queries, maybe not that trivial.
    Kind regards,
    Christian

  • Puzzled by Default Page Template value

    I am looking at the 11.1.1.4 Spaces VM trying to understand how the product works.
    On the Configuration tab of the Administration page, in the Resources section, the Default Page Template value is "gsr15fd08a7_5f0f_4f6e_9150_2a7eb8b5fb7a". When I look at the GUID values for each of the Page Templates available as Resources, none match.
    questions:
    where can I find the "gsr15fd08a7_5f0f_4f6e_9150_2a7eb8b5fb7a" Page Template?
    is there a general way to find a resource given a GUID?
    Thanks

    See Re: How to setup "Alternating row" type of report as default for newpages

  • Master Page Template problems

    1.)    I have a problem with the Master Page Template when I place a Back to Top link at the bottom of the page of the Master and then generate or publish my product the link only works at the higher level. If pages in the product are under a folder or if the pages are in a different book the link does not work. I’m using the # for the Back to Top link.
    2.)    Another problem with the Master if you place a See Also Button on the master page you are limited on your project pages as to what you placed in the links on the Master Page. In other words if I have a project that has 30 pages and 10 chapters and I want the link to jump to chapter 3 page 5 and I only palced the 10 chapter links in the Master See Also Button I can not change the link under the See Also Button on chapter 3 page 5 with out it breaking the link to the Master Page. Is what has to be done Is place a See Also Button on each and evey page and edit the links in each and every one.
    3.)    Breadcrumb trail links. Why in the Design view you can not change the Breadcrumb trail links to above a graphics header if you have placed on your Master Page? If others are having problems with this just go into the HTML and place the breadcrumb section in your header section. You may have to play around with the formating of your styles to get it just right.

    codeOutsideHTMLIsLocked="false" -->
    That says that anything outside of that area can't be modified, right?
    Nope. It says anything outside that area is editable, i.e., it's treated as an editable region.  This is the default behavior for a DW template and it allows you to place server scripting or javascript code above the <html> tag, or below the </html> tag in any child page. 
    Unless you are using server scripting, or are very advanced in your use of DW, you should never mess with this default setting.

  • A method to create completely customized photo book page templates from scratch in Lightroom 5

    I was able to successfully create completely customized Lightroom 5 page templates (including altering the number of, positions, and sizes of pictures) by making edits to the templatePages.lua file(s) in the Lightroom directory tree.  I have never heard of the LUA file format before, but it is ASCII and looks somewhat like XML, so it was fairly easy to decipher.  Here is a high-level description of how I did it.  This applies to Lightroom 5 on Windows 7.  If this doesn't make any sense to you, then don't try it - you're likely in over your head.  Although my description is brief and lacking in detail, it should enable someone who is capable of handling this to figure it out with a little of careful trial and error.  Do this at your own risk - if you screw-up your installation, catalog, or computer, it's your own fault.  It all worked great for me.
    First, open the "<lightroom 5 install directory>\Templates\Layout Templates" folder.  Then navigate to the template set that contains the template you would like to use as a starting point for the new template.  For example, "12x12-blurb\clean12x12".  Make a back-up copy of the templatePages.lua file in case you mess something up and want to revert.
    There will be a bunch of .jpg files in this directory that each contain a preview image of the layout that carries the same name as the .jpg file.  Find the one that you would like to use as a starting point.  Take note of the name of the file, which is probably something similar to "page_26_preview.jpg".   Duplicate the file and rename it to something unique, such as "dummy_preview.jpg".  It's just temporary, so it doesn't matter what name you pick, provided it is a legal file name with no spaces.
    Next, open the templatePages.lua file in a text editor.  I suggest using one that can automatically recognize and format ULA (such as Notepad++, which is open source and free to use).  Then search the file for the unique portion of the file name you took note of earlier, such as "page_26".  It will point you to a section in the LUA file that describes that particular template.  Carefully copy that entire section, including a balanced number of brackets (starting with the two brackets and commas before "children" and ending with the one bracket and comma after the "title" line.  Paste the copied text into the end of the file on a new line immediately following the bracket and comma after the "title" field for the last page template section (right near the end of the file).  Change the "previewName" field to the name of the preview file copy that you created ("dummy_preview.jpg" for me) and the "name" field to the name of the new template you're creating ("dummy" for me, since it is just temporary).  Next change at least one of the hex characters in the "pageID" field such that the new template will have a unique page identifier.
    Now you can make edits to the photo and text fields included in the new section, using other templates in the template file as examples.  "x" and "y" fields are coordinates (in pixels) for the bottom-left corner of the picture or text field, "height" and "width" are the width of the field in pixels.  The fields should be mostly self-explanatory, but make sure that the "photoindex" fields are filled-in starting from 1 to N, where N is the number of pictures in the template, with no duplicates or gaps.  They do not need to be in order.  Treat the "textIndex" fields similarly for text fields.  If you want to add an additional picture or text field, simply copy the section describing a picture or text field from another template and paste it, carefully, into the new template that you are creating.
    Once you are done, save the file (you may get interference from Windows UAC, in which case save the file elsewhere and the move it back to the correct directory).  Then open Lightroom.  Create a new photobook, and choose the new template for one of the pages, remembering that the preview image will look like the JPG that you copied.  Voila!  If you didn't screw anything up, you should see a page based on your new template.  Then right-click the page and select "Save as custom page", which will cause a fresh preview file to be created for your new template and your template to be copied to the "custom pages" section of the template menu.  The new section you added to the "templatePages.lua" and the "dummy" preview file can now be deleted, since they are no longer needed.  I save them so that I may simply overwrite them the next time I need to create a customized template.
    Enjoy, and please share any clarifications, corrections, or enhancements to my process.

    peter at knowhowpro wrote:
    DHWachs wrote:
    This post was great!  Thank you so much.  But I am hoping you know one more thing related to this.  In the "transform" section of the definition (where the x/y coordinates are set along with height and width) there is an option called "angle".  I was hoping that changing this value would allow me to offset the angle of the picture.  However, if I put any value there other than 0 the template becomes unusable.
    Do you happen to know what this option does?
    I haven't looked into the files, so this is just a guess based on how some graphic applications work. It's common to think of rotating a shape as pivoting around a center point, but It's possible that the file sets a value for the rotation point not at the center. In some graphics applications, you can set a shape's pivot at any corner or in the middle of any side, of the rectangle that contains the whole shape.
    So, your value may be rotating the shape around a pivot that moves the shape into some area that upsets the behavior of other shapes. Just a thought.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Peter's point is a good one.  I would also assume that the "angle" property allows you to rotate an image, but I haven't tried it myself.  One thing to investigate - are there any page templates included in LR that have image placeholders that are at an angle (I don't recall any, off-hand)?  If so, looking at the associated .lua file could provide insight into how an angled image placeholder should be described.

  • How to create a page template?

    Hi!
    I need to create a page template. There are any templates and the page preview option show an overview about the region and areas these. I would like to create a based page in this template. I think that I should know:
    1 - How to create the shortcut?
    2 - How to create the page template?
    3 - How to assign a region with a page template?
    Priscila Britto

    Hi people!
    I get to resolve any items. Anything important are:
    - you can to view a structure of page template. The first you view it in the menu Shared Components >> Templates. There is a icon in the column "Preview" for the page, report and region template items. In the click on the icon you can view a template structure that should be shown in the execution.
    - You can view where will be inserted a region on the option "display point". You need to click on the icon in the right of the "display point" option;
    Well, If you pay attention in the two options you will know how to modify a template and how to create.
    Priscila Britto

  • How to change page template for a single page?

    I create a new document based on the Pages "Reports > Business Report".
    Now the first page is formatted as a "Cover" page with a larger top margin.
    Via "Format > Advanced > Manage Pages..." I see there are what I assume are the "Page Templates":
    - Cover
    - Table of Contents
    - Chapter Page
    - Text Page
    - Appendix
    My question: How can I change the template for a single page in my document? E.g. I don't want Page #1 to be formatted as "Cover". I'd like it to be a "Text Page".
    Any hints?

    Just delete the Cover section and insert a Text Page.
    Click on:
    +Toolbar > View > Page Thumbnails+
    Click on the Cover thumbnail, it will be outlined in yellow, hit delete.
    It may start off with certain defaults but you do not have to accept them.
    Peter

  • Using iWork 09 Pages I need the first six pages of a document to not be counted as page numbers. I need the seventh page to be numbered as page one. I already know to have a section break between pages 6 and 7 and to use inspector "start at." Not working

    In the book I'm formatting, the first page is the title page, the second page is the copyright page, the third through fifth pages are the table of contents, the sixth page is blank, then the text (which I want to number as page one) is the introduction. I have section breaks between the title page, the copyright page, the table of contents, and the introduction. Using the Inspector, Layout, Section, and selecting "Start at" 7 doesn't do anything!

    Is is a bit tricky, but it works. On your 6th page (the blank one) go to Insert > Section Break. This will give you a 7th page. Then go to Inspector (blue circle with a white letter i in it) and go to Layout Inspector (2nd tab). Once in thee, go to Section. Check "Start at" and enter the number 1. Then ensure all other toons I there are unchecked.
    Then go to Insert, and select Auto Page Numbers. You will find that your 7th page is numbered 1 as you want, but the first six pages will be numbered 1 to 6, which you don't want. But you can then delete the page numbering in that 1st section, leaving your 2nd section, beginning at page 7, numbered as page 1. You'll need to play around a bit as I did, and I would suggest using a test document to play with so you can undo any unwanted actions etc, but with tweaking around, it's doable. This took me ages to sort, so if it works for you, please give me the points :-)

  • Creating a New ADF Page Template

    -- I posted this in the WebCenter forum but since it is primarily around ADF I thought I would post here also
    -- Extending WebCenter Spaces 11.1.1.3: Creating New Page Template w/Float Div
    Hi all,
    I am attempting to create a new group space page template for Spaces that has a floating div on the right side that will have content wrap around it. It should look similar in concept to the image in this link:
    http://css.maxdesign.com.au/floatutorial/tutorial0104.htm
    This seems like it should be simple enough but I need to allow dynamic content to be added each region with Oracle Composer. Currently when I am testing this and add content the two regions end up in distinct columns. This appears to be a result of the html elements that get wrapped around the content by the ADF tags. Has anyone successfully created a page template / page similar to this or have any ideas on how I might get it to work? Below is the current code I am using:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:pe="http://xmlns.oracle.com/adf/pageeditor"
              xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable"
              xmlns:trh="http://myfaces.apache.org/trinidad/html">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <pe:changeModeLink id="cml1"/>
            <pe:pageCustomizable id="pageCustomizable1">
            <af:panelStretchLayout id="psl1">         
                <f:facet name="center">
                  <af:panelGroupLayout layout="scroll"
                                       xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                       id="pgl1">
                    <af:panelBox text="PanelBox1" id="pb1">
                      <f:facet name="toolbar"/>               
                      <trh:tableLayout id="tl1" width="100%">
                        <trh:rowLayout id="rl1">
                          <trh:cellFormat id="cf1" width="20%" valign="top">                       
                              <cust:panelCustomizable id="mainC"/>                         
                          </trh:cellFormat>
                          <trh:cellFormat id="cf2" width="80%" valign="top">
                            <!-- This is a div tag with style set to "float:right"; I had to describe this line as it didn't show up in the post -->                         
                                <cust:panelCustomizable id="mainC1"/>                       
                            </ div>               
                            <cust:panelCustomizable id="mainC2"/>                                                                
                          </trh:cellFormat>
                        </trh:rowLayout>
                      </trh:tableLayout>
                    </af:panelBox>
                  </af:panelGroupLayout>
                </f:facet>
              </af:panelStretchLayout>         
              <f:facet name="editor">
                <pe:pageEditorPanel id="pep1"/>
              </f:facet>
            </pe:pageCustomizable>  
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

    Hi ,
    I understand that you want to be able to select content type when creating a wiki page to a Wiki Page library. In browser ,you cannot add content types to a wiki page library .You need to edit the library in SharePoint Designer.
    Open the site in SharePoint Designer.
    Click on the library. Check ‘Allow management of content types’ in the Settings section.
    Then you can add content types to this page library.
    Then you can add content types in the Site Content Types gallery which inherit from the Wiki Content type.
    Add the newly added content type to the Wiki Page Library.
    In this way ,when you add a new page in the Wiki Page library ,you can choose a different content type .
    Edit the content type in Library Settings .Choose Advanced Settings for the content type .Here you can upload new page for the content type .
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Designer6i:  How change About Page template filename Web PL/SQL

    Hi
    how i can change the About Page template filename on Web Pl/Sql
    Thank!!

    Hi,
    Have you upgraded Apex?
    I assume you use XE EPG.
    Have you grant execute privilege on procedure to DAD user ANONYMOUS?
    GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
    And write schema.procedure at upper case to function.
    If you have not upgraded Apex, run as SYS or SYSTEM
    CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        -- Administrator note: the procedure_name input parameter may be in the format:
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        if upper(procedure_name) in (
              'WOLF_22.HELLO_WORLD'
        ) then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /Regards,
    Jari

  • Designer6i: About Page template filename Web PL/SQL Applications

    how can change the About Page template filename Web PL/SQL Applications
    Thank!!!
    my e-mail is: [email protected]

    Hi,
    Have you upgraded Apex?
    I assume you use XE EPG.
    Have you grant execute privilege on procedure to DAD user ANONYMOUS?
    GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
    And write schema.procedure at upper case to function.
    If you have not upgraded Apex, run as SYS or SYSTEM
    CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        -- Administrator note: the procedure_name input parameter may be in the format:
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        if upper(procedure_name) in (
              'WOLF_22.HELLO_WORLD'
        ) then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /Regards,
    Jari

  • How do I remove a blank page from a section of 4 pages? (Pages)

    1 page (page 4) in a section of 4 pages is blank.  How do I remove that page only?   I followed the help instructions; but was asked if I was sure I want to delete pages 1-4.

    What version of Pages?
    What instructions? It sounds like you have got the wrong ones and are trying to delete a page in the Thumbnails, which will delete th entire section.
    If you have a blank page in a Word Processing template, it is because there is some text on it, even a return, tab, space or page break:
    Menu > View > Show Invisibles > backspace over whatever it is to get rid of it
    Peter

  • Default Display Points in Page Templates

    Ver 1.6 adds Default Display Points in the Page Templates. As I understand it these would be the default positions for Breadcrumb menus and Sidebars.
    How do these work? If you create a region, based on a breadcrumb style menu, you must specify a Display Point. The breadcrumb menu region uses that location rather than the Default Display Point.
    How do these work?
    And whats a sidebar? it is not a menu type
    Thanks

    Thanks Vikas.
    Since the format had to be repeated over many pages, I just built a custom type of Region that I use with the button positions that I need for which I modified the CSS to include my formatted classes well as the Region for only those button position that I need.
    Regards,
    Nayana

  • Calling a stored workspace procedure/function in page template

    I have an unusual puzzle. I am trying to find a way to call a stored procedure or function in a page template; ie, through HTML/javascript.
    I maintain a website with several dozen applications and I currently have the page templates in all of these applications subscribed to one master template, so that changes can be made in one place and implemented across all the applications. So far, the only content I can display on every page in every application through page template subscription is static content; dynamic content (ie content generated based on data in the database) is implemented page-by-page (or application-by-application).
    I'm wondering if there is a way to call stored procedures/functions from the page template to create dynamic content (based on the :APP_USER identity, for example). htmldb_Get() doesn't seem to be helpful, because as far as I can tell it only calls on-demand application processes, not workspace procedures/functions.
    Is there any way at all that a workspace procedure/function can be called directly from the page template (eg with a javascript function of some kind)? Again, I am trying to avoid having to use any application/page-level apex entities (items, processes, etc) so that I can just put the javascript or whatever in the page template and refresh all the applications in my workspace.
    Thanks in advance!
    Jonathan Cole
    PS - I am currently using v3.1

    Just to add the owner in output :
    SCOTT@demo102> ed
    Wrote file afiedt.buf
      1  select owner, table_name, ltrim(max(sys_connect_by_path(column_name,','))
      2                     keep (dense_rank last order by position),',') as PKcolumns
      3  from
      4  (select a.owner, a.table_name, b.column_name, b.position
      5   from all_tables a, all_cons_columns b, all_constraints c
      6   where a.owner=b.owner
      7   and   a.table_name=b.table_name
      8   and   b.owner=c.owner
      9   and   b.constraint_name=c.constraint_name
    10   and   c.constraint_type='P'
    11   and   a.table_name in ('SDO_COORD_AXES','EMP'))
    12  group by owner, table_name
    13  connect by prior owner = owner and prior table_name = table_name and prior position = position - 1
    14* start with position = 1
    SCOTT@demo102> /
    OWNER                          TABLE_NAME                      PKCOLUMNS
    MDSYS                          SDO_COORD_AXES                  COORD_SYS_ID,ORDER
    SCOTT                          EMP                             EMPNO
    SCOTT@demo102> Nicolas.

Maybe you are looking for