Content open up in the current window

When I add content in the content area but when I click the link it opens up in the current window
s oppose to if it had been URL Link there is an option to open up in current window.
As I was searching in metalink I found somebody from Oracle had posted this :
### What were you trying to accomplish when the problem occurred? ###
Author : Jerry Silver Type : N/A
Date : Jun 6, 2001 11:22 PT
Here's a solution for Portal 3.0.8 or later that allows you to open a file in
a new browser window. It requires that you create a custom item type, and use a
procedure to display a link to the file.
1. Create the following procedure. You can create it in any schema, but the
schema has to have select privilege on the view 'WWSBR_ALL_ITEMS' in the portal
schema. In this example, the portal schema is PORTAL30. If you're running
version 3.0.8, you'll also need to apply the patch to bug 1724250.
Create or Replace PROCEDURE OPEN_FILE (p_itemid IN NUMBER) as
fileURL varchar2(1024);
baseURL varchar2(256) := '/pls/portal30/docs/';
begin
select baseURL | | filename into fileURL
from portal30.wwsbr_all_items
where id = p_ItemId;
htp.p ('Open File');
EXCEPTION
when NO_DATA_FOUND then
htp.p('Document not found or access denied');
when others then
htp.p(sqlerrm);
end;
The procedure generates a link to the item filename with a target of "_blank",
which opens the file in a new browser window. Replace the baseURL attribute
value with the correct Database Access Descriptor (DAD) and Document Access
Path ("/docs") for your site.
2. Grant execute on the procedure to the portal public schema. The name of this
schema is <portal schema>_PUBLIC. So if your portal schema is PORTAL30, grant
execute on the procedure to PORTAL30_PUBLIC.
3. Create a custom item type, using the base item type of "File". I recommend
that you create the type in the Shared Objects content area, so it can be used
in other content areas (from the Navigator, go to the Content Areas tab, select
Contents for Shared Objects, Custom Types, and Item Types - Create). Edit the
Text continued in next action...
new type and go to the Procedures tab.
4. In the Procedure Call Properties, enter:
Type: PL/SQL
Procedure Call: <your procedure schema>.OPEN_FILE
Link Text: Open File (it doesn't matter what you put here - it only displays if
"Display Procedure Results With Item" is unchecked.)
Check "Display Procedure Results With Item"
5. Under "Pass Attributes as Parameters", enter:
Attribute: Item Id
Pass As: p_itemid
(Notice how you can pass most of an item's attributes to a procedure. You can
take advantage of this feature to write procedures that give you precise
control over the rendering of your items).
6. In the properties for the content areas in which the new type is to be used,
go to the Items tab. Specify that you want the new type to be visible. You may
want to hide the base File item type, so users won't be confused by two
different item types for files.
7. Edit the folder style for the content area. Go to Folder Layout. Edit the
region properties for each region in which you will be using the new item type.
For each region, replace "Display Name or Image" with "Display Name". "Display
Name or Image" will render the Display Name as a link to your file that opens
the file in the same browser window. "Display Name" simply renders the display
name as text, with no link.
8. Now you can create items of the new item type. Each item's Display Name will
appear next to a link that says "Open File". Clicking the link will cause the
file to open in a new browser window.
Hope you find this useful.
But after doing this the issue with this still I am able to see this as link on the page but when I
click on it opens up in current window. But when I click on the header bar that
displays Content Area name then it takes to the content are manager. Here there is
a link that shows OPEN_FILE link and then it opens up in a new window.
But I don't want user to go inside the content manager to see the content to open up in a new window.
I want this same functionality to be there on the page rather then in the content area navigator
Thanks

fuscia wrote:
stonecrest wrote:sh -c "cd %f && urxvt"
can't help being ignorant: what is that?
A shell script for entering the working directory and launching urxvt.
Try it and see if it actually works.
I think I tried something like that but wasn't successful...
Last edited by moljac024 (2008-09-26 12:28:43)

Similar Messages

  • On websites which open pop-under windows, Firefox 4 seems to be opening these over the current window instead of under. Is this a bug or an intentional feature?

    I have noticed a problem on FF4 when browsing sites that open pop-under windows on a user action. With all other browsers (including FF3) these open underneath the main window, but on Firefox 4 they open over the top - acting as pop-ups and not pop-unders.
    While pop-unders are annoying, it is even more annoying to have them keep appearing as pop-ups instead.
    I have run some tests and the following code successfully opens a pop-under on all browsers except Firefox 4.
    It appears that window.focus() is not correctly bringing the current window to the top.
    Example code:
    var w = window.open('http://www.mydomain.com/', 'mywin', 'width=400,height=300,toolbar=1,menubar=1,resizable=1,scrollbars=1');
    if(w){
    w.blur();
    window.focus();
    }

    This is normal. Firefox 4 has disabled the default "window flip".
    - go to adress about:config
    - accept and search dom.disable_window_flip set to false;
    And popunder, blur/focus javascript function will be back ;)

  • How can I access the Tabs page in the current window, without opening a new tab?

    I like the new Tabs page. I'd like to open it in the current window, without the need of opening a new tab or window.
    Is this possible?

    You can make a bookmark and set the location to about:newtab to open that page in the current tab.

  • Firefox won't open mailto links in a new window like it used to...it just opens gmail in the current tab.

    I recently upgraded firefox and now whenever I click a mailto link it opens gmail in the current tab rather than in a new window. How can I get it to open email links in a new window.

    My MAILTO problem was finally fixed on the June 29, 2012 Firefox version 14 beta 10 release.

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • Open in new tab on right click fails to open in the current window when used in a dependent window called with window.open command from original window this worked fine until ver 4.0

    i have been using this page in all versions of firefox until ver 4.0 and it has worked fine
    https://npwas.com/dummy/charts/charts.html
    when this page is loaded enter a stock symbol in the text field "AAPL"
    then click one of the lower links --"Yahoo Headlines"-- and another window is opened with this code
    - function yahoolink(sqlstring, winnum) {
    - var myurl = "http://finance.yahoo.com/";
    - var mysymbol = document.SymbolForm.symbol.value;
    - var mysrc = myurl + sqlstring + mysymbol;
    - var mywindow = "mywindow" + winnum;
    - //alert("mywindow- " + mywindow);
    - if (sqlstring == "mb/")
    - mysrc = "http://messages.finance.yahoo.com/" + -sqlstring + mysymbol;
    window.open(mysrc,mywindow,'resizable=yes,titlebar1=1,toolbar=1,scrollbars=1');
    all this works but when i right click on a message or news item and select "OPEN IN NEW TAB" - it fails to open the tab in this current window it opens it in the parent window --
    the way i have always used this is to able to select news and right click all news items to read as new tabs and have all news items or messages to be grouped in the child window
    this is now broken or do i need to recode something??
    https:\\npwas.com come is my secure server and you may load the page and see the code
    so far i really love ver 4.0 especially the sppppppeeeeeeeeed!!!!
    keep up the great work
    thanx in advance
    tojo

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • Why does Firefox keep opening new Windows rather than a new Tab in the current window?

    I have " Open a new Tab in the current Window" select in Preferences.
    Why then does this version (Version 4) keep opening new Windows, rather than new Tabs in the current Window.
    This feature worked fine in 3.6.1.3, but in Version 4, it is a frigging pain in the rigging!
    C'mon, Mozilla - time for an URGENT update ...

    That issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How can I get any of the search requests to open in a new tab and not the current window. I have just downloaded the new FF8

    In my previous version of FF, whenever I did a search with any search engine the results opened in a new tab. Now with FF8 the results open in the current window which really is inconvenient. How do I get the search results to open in a new tab instead?
    I have Windows xp FF8

    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
    Use the Filter at the top of the page to locate this pref: <b>browser.search.openintab</b>
    If the value of the browser.search.openintab pref is false then toggle the value to true with a double click on that line.
    See also http://kb.mozillazine.org/about:config

  • When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs

    When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs
    == This happened ==
    Every time Firefox opened
    == Noticed yesterday, June27, 2010

    i just went into preferences, deleted what was in the home page, and entered a new home page address which solved the problem, 

  • Firefox opens new windows under the current window

    Whenever I right-click on a link and tell it to open in a new window, the window opens behind the current window. I have selected "When I open a link in a new tab, switch to it immediately". That used to solve this problem but seems to have stopped working.
    I have read all the threads on this problem, including the one saying it's caused by Flash.
    However, I have checked in safe mode and I still get the same problem.
    This started happening around Christmas on three computers. Since then, because of problems getting a driver to install for a new peripheral, I have done a fresh install of Windows 7 64 bit, reinstalled FF newest version and restored my profile, but get the same problem. At this point I have started in the FF safe mode which should disable all the add-ons, but the same thing still happens. I have also reset FF using the reset option in the help menu. It doesn't always happen, but it can happen when flash is already running in another window.
    Are there a series of steps I can take which will verify that the fault is caused by Flash? I had thought the safe mode would do that.
    Honestly, this is enough of a problem to make me switch browsers, and I don't even like any of the other browsers. If you can offer any other suggestions I would really appreciate it.

    Safe Mode actually doesn't disable Flash. It's a little confusing: it disables extensions, but not plugins, so "Restart with Add-ons Disabled" is really not a very good description.
    If you want to test with Flash disabled, you can set it to "Never Activate" temporarily. Open the Add-ons page using either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column that lists the categories, click Plugins. You're looking for "Shockwave Flash." Change it to "Never Activate."
    You can keep this tab open during your testing. If you close and re-open the Add-ons page, Shockwave Flash will fall to the bottom with the other disabled plugins.

  • Why does "open in new tab" function, open in both new tab, and the current window ?

    Right click on something, select "open in a new tab" As well as opening in a new tab, quite frequently the current window is overlayed with the same thing.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    There are other things that need your attention.
    Your System Details List shows multiple Flash plugins.
    # Shockwave Flash 14.0 r0
    # Shockwave Flash 11.7 r700
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • FF4 wont move a tab to a new window. The new window opens fine but the existing tab stays on the current window. What's wrong?

    I just upgraded to firefox 4. I'm using session manager extension.
    I have multiple tabs open in my firefox window and I want to move some tabs to a new window. I followed the support guide which tells how to do this, however, when I drag the tab off the current window, the new window gets opened as it should, but the tab I was trying to move stays in the current window and does not get moved to the new one. Any ideas what the problem is?
    Thanks
    Mick

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When I open a link in a new window it opens BEHIND the current window.

    links that open a new window open the window behind the current window instead of in front of it. This just started happening in the last week or so.

    Hi MudBug
    see : [https://bugzilla.mozilla.org/show_bug.cgi?id=790013 Bug 790013] , see the comment 10 if this helps
    thank you

  • Can I set up a new window to open without all the tabs from the current window opwning?

    I have a new computer at work with what must be a new version of firefox. I use multiple windows to do my job. When I open a new window, all the tabs from the current window open in the new one. I am wondering how to configure a new window to open with either a blank page or just my homepage?

    I restarted Firefox and changed the homepage settings a to a different choice and back to the desired page then restarted Firefox again. This eliminated all the initial tabs from opening from opening in the new window. I am not sure how all the pages were cached or what I should have done but I no longer have this issue.

  • How to open links in the same window, without changing preferences?

    What I want to know is if there's a way to force a click on a link to open in the current window just one time, if the page was using target=_blank or other methods to open a new tab/window.
    The context menu doesn't have an option for that, was hoping for a modifier key option or something, or perhaps a plugin that would add such an option.
    I know there's an advanced pref to change the behaviour of clicking on links to control new tabs, windows, etc. I don't want to change the default, I just for certain links want to prevent the new tab on a one-up basis.
    (currently on Firefox 30 for Mac)

    Firefox actually doesn't have any built-in preference for overriding the target attribute. If you are on a site where you know the link is coded to open in a new tab, currently, the best workarounds are:
    * drag and drop the link on the address bar
    * right-click > Copy Link Location and then paste in the address bar
    Neither is convenient...
    You might be able to find an add-on for this. For example, Tab Mix Plus, Tab Utilities, and other multi-functional tab-related extensions might have an option to force links into the same tab. In a brief search, I saw one called TargetKiller that is more focused on this but recent reviews mention conflicts with other extensions. If this is a frequent pain point, you could search further on the add-ons site.
    * https://addons.mozilla.org/firefox/addon/tab-mix-plus/
    * https://addons.mozilla.org/firefox/addon/tab-utilities/
    * https://addons.mozilla.org/firefox/addon/targetkiller/
    Let us know the progress of your search.
    Another possibility is to solicit someone to write a userscript. A userscript is a JavaScript add-on that can modify web pages, but not the user interface (for example, it cannot add a right-click context menu item). You need the Greasemonkey extension to run userscripts, and you need to evaluate them carefully because they are not formally reviewed by anyone.
    You can contact userscript authors through these sites, and if someone is interested, they'll usually write the script for free and post it for everyone's benefit:
    * https://greasyfork.org/forum/categories/script-requests
    * https://openuserjs.org/corner

Maybe you are looking for

  • How to add a download link in a report directed by a navigation link?

    I have searched the net but could not find the solution. I added a link in a dashboard page. The link is connected to a request. When the link is clicked, the page goes to a report, which is not placed in a section region. Now, how to configure the r

  • How to set up a homepage in safari, Lion OS

    For days I've been trying to set up my safari to always open with a specific page, however everytime I clear the history it also wipes my home page. I've tried the preference tab, homepage, etc. but no luck. Am I suppose to check other boxes? Any ass

  • In-Place Hold Query Based on Assigned Policy

    Is it possible to create an "in-place hold" query that places a hold on all items matching an "assigned policy/personal tag?' If so, how do you do it?  We have three possible assigned polices. If staff do not select a policy, their email is purged in

  • E(fx)clipse to web

    Good day I use EclipseEE Luna, Java8_45 and use plug-in e(fx)clipse. I would like use JavaFX to web. But I don´t know how. On the official webpage I can´t fing any tutorial. If I use NetBeans8.0.1 it´s work correctly. When I build in NetBeans it´s cr

  • Automatic intro, change ratio of my video

    Did someone know why iDVD 6, change the ratio of my 16:9 video to a 4:3 video with the black bar on each side. My DVD project is set to 16:9, when I export the video from iMovie 6 in a DV file, it is 16:9, but when I put it in the automatic startup (