How to add URLs in apage without using edit mode

Hello everybody.
We have Portal 9.0.4.1 under Solaris, and we are just beggining using it :-)
We created a section for links (to urls) in the home page of each user. We would like our users to add links to their most used pages (for example, metalink.oracle.com), but we do not want them to enter in edit mode, we would like some functionallity like the "add portlet" in the customize option.
Any help will be very apreciated.
Thanks in advance.
Lisandro

The example is generic and not hardcoded to any region on the page ... but has the same "warning" that Mark mentioned about this example not working in future versions if Oracle changes the URL structure:
The Add Item example shows how to create a new item type ...adding an item of this type to any region allows you to add content to that region
The Edit Item example show how to show a edit link or icon next to the item in view mode.
Add Item
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This code sample shows how to create an item allows the content contributor to add items to the page group/page/region that the sample item is placed in.
If you want your content contributor to add items to multiple regions on a page, add the sample item to all regions that you wish to expose this functionality in.
Step 1: Create a PL/SQL procedure
Create the following procedure:
Create or Replace Procedure <schema>.ADDITEM_URL
p_itemid IN VARCHAR2,
p_pageid IN VARCHAR2,
p_siteid IN VARCHAR2)
as
v_url varchar2(2000);
v_region varchar2(2000);
v_looplink varchar2(2000);
v_host varchar2(2000);
begin
select folder_region_id into v_region
from portal.wwsbr_all_items
where id = p_itemid and
caid = p_siteid;
if instr(portal.wwctx_api.get_host, ':') = 0 then
v_host := portal.wwctx_api.get_host;
else
v_host := substr(portal.wwctx_api.get_host,
1,
(instr(portal.wwctx_api.get_host, ':')-1))
|| '%3A'
|| substr(portal.wwctx_api.get_host,
(instr(portal.wwctx_api.get_host, ':')+1));
end if;
v_looplink := 'http%3A%2F%2F'
|| v_host
|| '%2Fportal%2Fpage%3F_pageid%3D'
|| p_siteid
|| '%2C'
|| p_pageid
|| '%26_dad%3D'
|| portal.wwctx_api.get_dad_name
|| '%26_schema%3D'
|| portal.wwctx_api.get_product_schema
|| '&p_containerpageid='
|| p_pageid;
v_url := portal.wwctx_api.get_base_url
|| 'portal.wwv_additem.selectitemtype?'
|| 'p_cornerid=' || p_pageid
|| '&p_siteid=' || p_siteid
|| '&p_regionid=' || v_region
|| '&p_looplink=' || v_looplink;
htp.p('<a href="' || v_url || "><img src="/images/additem.gif"</a>');
exception
when others then
htp.p('error');
end;
Once the procedure has been created, grant EXECUTE permission to PUBLIC.
Step 2: Create a custom item type
This custom item type will be associated with the PL/SQL procedure created above. Placing an item of this type on a page will give the content contributor something to click on while the page is in view mode to call the add item wizard.
Go to the Procedures tab of the new item type and associate with PL/SQL procedure.
Ensure the “Display Procedure Results With Item” checkbox is checked.
Step 3: Add item of type “Add_Item” to a page.
1.     Configure the Page Group to allow items of your new type to be added
2.     Add an item of type “add_item” to your page.
3.     For the region containing your new item, in the properties, ensure the “Associated Functions” attribute is in the Displayed Attributes list.
Edit Item
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This code sample draws an Edit icon for content contributors to click on while the page is in view mode to edit the item with the default Edit Item wizard.
Step 1: Create a PL/SQL procedure
Create or Replace Procedure <schema>.EDITITEM_URL
p_itemid IN VARCHAR2,
p_pageid IN VARCHAR2,
p_siteid IN VARCHAR2)
as
v_looplink varchar2(2000);
v_url varchar2(2000);
v_subtype varchar2(2000);
v_itemtype varchar2(2000);
v_catid varchar2(2000);
v_catcaid varchar2(2000);
v_parentid varchar2(2000);
v_host varchar2(2000);
begin
select subtype
,itemtype
,category_id
,category_caid
,parent_item_id
into v_subtype
,v_itemtype
,v_catid
,v_catcaid
,v_parentid
from portal.wwsbr_all_items
where id = p_itemid and
caid = p_siteid;
if instr(portal.wwctx_api.get_host, ':') = 0 then
v_host := portal.wwctx_api.get_host;
else
v_host := substr(portal.wwctx_api.get_host,
1,
(instr(portal.wwctx_api.get_host, ':')-1))
|| '%3A'
|| substr(portal.wwctx_api.get_host,
(instr(portal.wwctx_api.get_host, ':')+1));
end if;
v_looplink := 'http%3A%2F%2F'
|| v_host
|| '%2Fportal%2Fpage%3F_pageid%3D'
|| p_siteid
|| '%2C'
|| p_pageid
|| '%26_dad%3D'
|| portal.wwctx_api.get_dad_name
|| '%26_schema%3D'
|| portal.wwctx_api.get_product_schema
|| '&p_containerpageid='
|| p_pageid;
v_url := portal.wwctx_api.get_base_url
|| 'portal.wwv_edit_tab.edititem?'
|| 'p_thingid=' || p_itemid
|| '&p_cornerid=' || p_pageid
|| '&p_siteid=' || p_siteid
|| '&p_subtype=' || v_subtype
|| '&p_itemtype=' || v_itemtype
|| '&p_topicid=' || v_catid
|| '&p_topicsiteid=' || v_catcaid
|| '&p_cornerlinkid='
|| '&p_parentid=' || v_parentid
|| '&p_action=update'
|| '&p_currcornerid=' || p_pageid
|| '&p_language='
|| portal.wwctx_api.get_nls_language
|| '&p_looplink=' || v_looplink;
htp.p('<a href="' || v_url || "><img src="/images/ed-item.gif"</a>');
exception
when others then
null;
end;
Step 2: Associate Procedure with Item Types
For every item type that you wish to supply an edit icon to show while the page is in view mode, call the EDITITEM_URL procedure created in the step above.
Step 3: Show Associated Function attribute
In order for the procedure associated with the item type to execute, you must ensure the region properties are set on the Style/Attributes tab have the Associated Function listed as one of the Displayed Attributes.

Similar Messages

  • How to add a mute button without using the default skin?

    I want to use a mute/unmute button for my current project which does not use the default skin.  I searched the web and found the following solution.
    http://kb2.adobe.com/cps/163/2ed9f163.html
    I followed the instruction and it works fine on single slide. The problem is that it does not carry through the whole project.  If I mute the first slide, the audio is on again on the next slide. My mute/unmute setting doesn't go to the next slide.
    Any one have a solution to this problem? Any help or tips are greatly appreciated.

    Hi there
    Did you pay close attention to step 4?
    Click image to see larger...
    Addtionally, your post reads as if you feel the mute button is only avaliable with the Default playback control set. Note that there are all sorts of options with the supplied playback controls that offer enabling a mute button.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • I want to download an audiobook, but my daughter has a giftcard credit on the account. How can I download my audiobook without using the money from her giftcard?

    I want to download an audiobook, but my daughter has a gift card on the account.  How can I download my audiobook without using the money from her gift card?

    go directly to your ibook app. and you're going to find it. it's only with ibooks app.
    best
    Olivier
    <Edited by Host>

  • How can I track my iPod without using an app ?

    Hey I lost my iPod touch in school and I think one of my classmates took it how do I track it down without using an app ?

    The only way to track it at all is to first have enabled an iCloud account on it before it was lost, with the find my iPod setting in that account's setting panel set to "ON".
    If that was done, you can log in to your iCloud account in a web browser and you can try to track it.  It must be on, and it must have an active wifi data connection to be trackable.
    Without an iCloud account already on it though, there is no way to track it.

  • How to add an image over another using af:image

    How to add an image over another using af:image
    Thanks,
    Veera

    i have a image which is black strip. i have added that to af:image
    <af:image source="image1" id="image" />
    on the black strip, i need to add company logo.
    how to achieve it.
    Thanks,
    Veera.

  • I have an apple emac powerpc G4 which is running 10.3.9 software. I downloaded the 10.5 leopard software. Does anyone know how to install the 10.5 without using the dvd installer? In dummy terms please?

    If any one could help me with this. i'd be enternally grateful as i'm getting nowhere on my own!
    I have an apple emac powerpc G4 which is running 10.3.9 software. I downloaded the 10.5 leopard software. Does anyone know how to install the 10.5 without using the dvd installer? In dummy terms please

    The only way to get 10.5 is to purchase it on CD. Such as http://www.amazon.com/Mac-OS-Leopard-10-5-10-51/dp/B0012RAVRC where is being sold for $179.99.
    If your optical drive is broken, you will either need to replace it or get an external. There is no other way.
    Why do wish to upgrade? As you can see it is going to be expensive, probably more the Mac is worth.
    Allan

  • How to create an apple id without using credit card

    how to create an apple id without using credit card.. i have recently purchased apple iphone 3gs bt unable to get apps because of giving credit card info which i dnt hav.. so plz tel me some way to process..

    To get the none option, sign out of anything apple you're signed into. Go to the app store and try to download a free app, any free app. Instead of signing in, take the option to to make a new apple ID. Then go through the steps to make the ID and you'll see the 'none' option.

  • How can I start windows 8 without useing my password

    how can I start windows 8 without useing my password

    Hi,
    Review the information posted in this thread.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • How do I restart a process without using a loop?

    Hi,
    How can I restart a process without using the While action from the palette?
    The Wait action from the palette doesn't seem to do that.
    I simply want to restart a process after testing a condition in the Switch action.
    Thanks,
    Alexandru

    Hi,
    You can use the replay feature. Look at the BPEL references under the samples directory.
    hth,
    ~ronen

  • How to Start process in ProcessChain Without using Repeat option?

    How to Start process in ProcessChain Without using Repeat option?

    Se16 -- table:RSPCPROCESSLOG - click on display entries.
    Entet the variant, instance start date (this info you can get from the "display message" of PC.
    Now execute to display the table entries of RSPCPROCESSLOG.
    Next goto SE37 transaction --enter RSPC_PROCESS_FINISH
    Take the entries from the above table to set the input parameters of the FM.
    I_logid = log_id(from above table)
    I_type = type(from above table)
    i_variant = varaint (from above table)
    i_instance = (from above table)
    Click on F8(EXECUTE)
    now the actual process is set to gree and the process chain will be triggered (rest of the PC with out repeating the step from where is was red).

  • How to add target to jmsSystemResource MBean using JMX

    Does anybody know how to add target to jmsSystemResource MBean using JMX in WebLogic 9.0?(I am not using WSLT) I always get "NoSuchMethodException":
              [jmsServer] Caused by: java.lang.NoSuchMethodException: addTarget(weblogic.management.configuration.
              TargetMBean,) for com.bea:Name=admin01DefaultJMSServer,Type=JMSSystemResource

    go to the object which u want to compare
    go to->version management->select the TR request no->and select remote comparision there->and give the system where u need to compare this object
    and next press compare
    hope it will work
    cheer
    s.janagar

  • HT5654 how to add videos to the ipad using the latest version of itunes

    how to add videos to the ipad using the latest version of itunes ?

    Hello zaraa90,
    After reviewing your post, I have located an article that can help with syncing content. It contains a number of troubleshooting steps and helpful advice for the issue you are experiencing:
    Sync your iPhone, iPad and iPod with iTunes using USB
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • How do I register with iTunes without using a credit card it's not giving me a none option???

    How can I register with iTunes without using a credit card it's not giving me a none option!!

    Did you follow these instructions? You have to. Also, you have to use an email addresss that you have not used with Apple before, it has to be a new acciount.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • How to display row to columns without using pivot keyword

    hi,
    could someone help me how to dispaly rows into columns without using pivot keyword and actuall my scenario is,iam having two tables with names and sample data is shown below
    ID PROJECT MID MINAME TASKID TASKNAME
    1     PROJ1     1     AA     100     PR1_TASK1
    1     PROJ1     3     CC     102     PR1_TASK3
    1     PROJ1     4     DD     103     PR1_TASK4
    1     PROJ1     5     EE     104     PR1_TASK5
    1     PROJ1     6     FF     105     PR1_TASK6
    2     PROJ2     5     EE     114     PR2_TASK1
    2     PROJ2     6     FF     115     PR2_TASK2
    2     PROJ2     7     GG     116     PR2_TASK3
    2     PROJ2     8     HH     117     PR2_TASK4
    2     PROJ2     9     JJ     118     PR2_TASK5
    2     PROJ2     10     KK     119     PR2_TASK6
    2     PROJ2     1     AA     120     PR2_TASK7
    The output should display project and count of tasks in particular milestone as shown below
    project AA BB CC DD EE FF GG HH JJ KK
    1 2 0 1 5 3 2 0 2 1 0
    2 1 2 0 2 1 0 2 4 3 1
    Thanks in advance ,
    vvr

    WITH t1 AS
    (SELECT 1 ID,
             'PROJ1' PROJECT,
             1 MID,
             'AA' MINAME,
             100 TASKID,
             'PR1_TASK1' TASKNAME
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 3, 'CC', 102, 'PR1_TASK3'
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 4, 'DD', 103, 'PR1_TASK4'
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 5, 'EE', 104, 'PR1_TASK5'
        FROM DUAL
      UNION
      SELECT 1, 'PROJ1', 6, 'FF', 105, 'PR1_TASK6'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 5, 'EE', 114, 'PR2_TASK1'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 6, 'FF', 115, 'PR2_TASK2'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 7, 'GG', 116, 'PR2_TASK3'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 8, 'HH', 117, 'PR2_TASK4'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 9, 'JJ', 118, 'PR1_TASK5'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 10, 'KK', 119, 'PR1_TASK6'
        FROM DUAL
      UNION
      SELECT 2, 'PROJ2', 1, 'AA', 120, 'PR1_TASK7' FROM DUAL)
    SELECT id project,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'AA'
                  AND id = t_out.id),
               0) AA,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'BB'
                  AND id = t_out.id),
               0) BB,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'CC'
                  AND id = t_out.id),
               0) CC,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'DD'
                  AND id = t_out.id),
               0) DD,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'EE'
                  AND id = t_out.id),
               0) EE,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'FF'
                  AND id = t_out.id),
               0) FF,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'GG'
                  AND id = t_out.id),
               0) GG,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'HH'
                  AND id = t_out.id),
               0) HH,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'JJ'
                  AND id = t_out.id),
               0) JJ,
           NVL((SELECT mid
                 FROM t1
                WHERE miname = 'KK'
                  AND id = t_out.id),
               0) KK
      FROM (SELECT DISTINCT id FROM t1) t_out
    PROJECT     AA     BB     CC     DD     EE     FF     GG     HH     JJ     KK
    1     1     0     3     4     5     6     0     0     0     0
    2     1     0     0     0     5     6     7     8     9     10As I understand, you want MID of MINAMEs displayed ? But output is not like yours.. What is exactly your requirements?

  • How to Set Distinct SQL Clause on View Object without using Expert Mode.

    Hi to all Actually i have a View Object usign 3 entities
    if i use expert mode in my VO, it generate
    QRSLT WHERE
    instruction and force to include all columns on my dynamic where clause on select statement i can't include columns because get me duplicate rows
    How i can include disctinct clause without usign expert mode or any other solution?
    Note that in normal mode without expert mode QRSLT WHERE is not generate and all work fine
    For example
    select * ( select id , name from table) QRSLT WHERE loc = ..
    if i use expert mode it generate QRSLT WHERE and if loc is not predicated colums get me and error :
    ( ORA-00904: invalid identifier )
    in simple mode of View Object all work fine..
    Any suggestion on It will be appreciate.....
    Tnx

    My problem is that when use expert mode
    it's change simple select statement for a select that use
    select * from (select column....)
    qrslt WHERE (column=somevalue)
    this kind of select force me to include all where conditions of qrslt on my select columns and this get duplicate rows
    thats beacuse i need include distinct without use expert mode
    Anny Help on this?

Maybe you are looking for

  • How to add mms and apn in ios 6.1.3

    I can not figure out how to use the iphone configuration utility. Where and how do i enter the mms proxy, mms, apn and so on so i can fully use straighttalk. I know nothing about this stuff at all, it was so much easier on ios 4.3.5.

  • Anyone having trouble with guide snapping in Illustrator CS5?

    I was trying to adjust some type and I was pulling guides to adjust widths etc but when I moved a guide to meet the black of the type it would snap a pixel to the left or right of where I was trying to put it.  I tried turning off Smart Guides and sn

  • Filter for Attestation list IDM v7

    All, I am trying to create a filter on the Access Approval List form to allow the attestor to filter which scan(s) etc. they see at any one time. So I have the following: <Field name='entitlementFilter'> <Display class='Text'> <Property name='title'

  • How to sync my mac iCal to iPhone 4s?

    Is there any instruction on how to sync ical to iphone 4S?

  • Problem in launching Web cleint

    hi there i am  new in CRM and i am facing following  problem when i  go for CRM IC web cleint  please help me in details The runtime repository could not be interpreted An exception has occurredException Class CX_BSP_WD_HTTP_COMM_ERROR Text: Error oc