Get a community link / url from a communityID

I am building a custom navigation and I am trying to create a link to a community. If I have the community id is there anyway to get the corresponding link to the community from an api call or query the community to get the full URL?

Yes. However, there are at least four different ways of doing it. It all depends on what suits your needs.
The simplest way would be to emit it using pt:openerLink tag with ClassID=512 and Mode=2 (see PT Enterprise Web Development Guide for more info).
Another way would be to use the OpenerAS:
usingcom.plumtree.server; //plumtreeserver.dllusingcom.plumtree.portaluiinfrastructure.classtypedescriptors.classframework; //portaluiinfrastructure.dllusingcom.plumtree.uiinfrastructure.statichelpers; //uiinfrastructure.dllusingcom.plumtree.xpshared.htmlelements; //uiinfrastrucutre.dll
IPTSessionptSessionptSession=(IPTSession) parentActivitySpace.GetUserSession();stringbaseUrl=ConfigHelper.GetApplicationBaseURL(this.parentActivitySpace);stringhref=OpenerAS.GetOpenObjectFullURLAsString( PT_CLASSIDS.PT_COMMUNITY_ID, communityId, IPTOpenerConstants.OPENER_MODE_VIEW, baseUrl, ptSession.GetSessionInfo().GetCurrentUserID());HTMLAnchorlink=newHTMLAnchor(baseUrl+href); //concat because href comes as partial url
You could also use ASCompoundList, add a single entry and then use it to get the URL:
ASCompoundListcpList=newASCompoundList();cpList.AddCommPageURL(pageName, communityId, pageID, "", -1);CListURLMediatormediator=newCListURLMediator(parentActivitySpace, cpList);HTMLAnchormyLink=((HTMLAnchor) mediator.GetEntryAtIndex(0));
Or you could use the ASURL to do the same.
Ruslan.

Similar Messages

  • Hide webpage link URL from browser status bar?

    Anyone know how to hide webpage link URL from the browser
    status bar with Dreamweaver CS4? So that when the mouse cursor
    hovers over a link on a webpage, the URL won't be shown in the
    browser status bar. This comes in useful for when I put my email as
    a link on a webpage but I don't want to let my email address be
    known prematurely. I prefer to do this through the Dreamweaver CS4
    interface without coding, if possible. What is the easiest way to
    hide link URL like this? Thanks.

    More than the anal users. Many people use this information to
    decide
    whether they will click on the link. By hiding it, you remove
    that
    extremely valuable security information - for example, a link
    tells you on
    the screen that it is taking you to www.wachovia.com, but the
    status bar
    link tells you it's taking you to
    www.iamahackersiteandwilldrinkyourmilkshake.cn
    I don't think you want to remove that from your site, unless,
    of course, you
    are the webmaster for
    'iamahackersiteandwilldrinkyourmilkshake.cn....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "joeq" <[email protected]> wrote in message
    news:gib1tf$kn7$[email protected]..
    > it can be done - Behaviors > Set Text > Set Text
    of Status Bar.
    >
    > do what you want, but know that it's somewhat unreliable
    (see the caveat
    > in
    > the DW Behavior box) and that some anal users will
    object to the masking
    > of
    > your links.
    >
    >
    >
    quote:
    Originally posted by:
    ghost zero
    > Anyone know how to hide webpage link URL from the
    browser status bar with
    > Dreamweaver CS4? So that when the mouse cursor hovers
    over a link on a
    > webpage, the URL won't be shown in the browser status
    bar. This comes in
    > useful for when I put my email as a link on a webpage
    but I don't want to
    > let
    > my email address be known prematurely. I prefer to do
    this through the
    > Dreamweaver CS4 interface without coding, if possible.
    What is the
    > easiest way
    > to hide link URL like this? Thanks.
    >
    >
    >

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

  • Help... link URL from XML to Flash Action Script 2

    I am trying to link a different URL to each of my files in XML and use this XML in Flash were I created a carousel. In the carousel, when you click on a picture I would like to insert a specific URL. Each picture will have a different URL (http://------------).
    Here are my codes:
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" />
    <icon image="icon2.png" tooltip="Investments" />
    <icon image="icon3.png" tooltip="Education" />
    <icon image="icon4.png" tooltip="Insurances" />
    <icon image="icon5.png" tooltip="Mortgages" />
    <icon image="icon6.png" tooltip="Retirement" />
    <icon image="icon7.png" tooltip="Business Owner" />
    <icon image="icon8.png" tooltip="Banking" />
    </icons>
    Flash Action Script 2:
    import mx.utils.Delegate;
    var numOfItems:Number;
    var radiusX:Number = 250;
    var radiusY:Number = 75;
    var centerX:Number = Stage.width/2;
    var centerY:Number = Stage.height/2;
    var speed:Number = 0.01;
    var perspective:Number = 60;
    var home:MovieClip = this;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes = this.firstChild.childNodes;
    numOfItems = nodes.length;
    for(var i=0;i<numOfItems;i++)
      var t = home.attachMovie("item","item"+i,i+1);
      t.angle = i * ((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      t.icon.inner.loadMovie(nodes[i].attributes.image);
      t.ref.inner.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
    function over()
    home.tooltip.tipText.text = this._parent.toolText;
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
    home.tooltip._alpha = 100;
    function out()
    delete home.tooltip.onEnterFrame;
    home.tooltip._alpha = 0;
    function released()
    function moveTip()
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover ()
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s = (this._y - perspective) / (centerY+radiusY-perspective);
    this._xscale = this._yscale = s * 100
    this.angle += this._parent.speed;
    this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
    speed = (this._xmouse-centerX)/10000;
    Thanks so much for the help.

    You should be able to add that data into your xml tags and then extract it in the AS2 onLoad function...
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" linkURL="http://www.someURL.com/somePage.html" />
    AS2:
    xml.onLoad = function()
    etc....
    t.onEnterFrame = mover;
    t.toolText = nodes[i].attributes.tooltip;
    t.urlLink = nodes[i].attributes.linkURL;
    etc...

  • Automator's Link URLs from Webpages not finding links

    There are clearly <a href='s in the page I'm looking at but Automator's action simply will not return them.
    Is this a common problem?

    Yes you are correct, it's the space character—not the apostrophe. The trouble is that the source of your web page does not contain an escaped %20, it has merely printed literal space characters in the link tag. While Safari managed to interpret this correctly and convert the spaces to %20, Automator did not. As a test I made an html file containing:
    <a href="red blue">green</a>
    and Automator returned:
    {"file:///Volumes/hd2/test/red"}
    There may be a very long way around this bug. I'll think about it.

  • Problem with open link URL from iphone then can not close url.

    i using cp8 , my app-iphone work property.
    problem, i can not close URL thai i open.
    remark.
    i use test with many (1. interaction-->web oject , 2. object-->web, action--->3. Open URL or File) .
    it can open URL but can not close URL.
    sorry if you not understand.

    Hi Rajesh,
    This could be Security Zones problem as you are accessing your IView directly through URL.
    Check this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/25/85de55a94c4b5fa7a2d74e8ed201b0/frameset.htm
    Greetings,
    Praveen Gudapati
    p.s. Points are always welcome for helpful answers

  • How to get urls from urls.

    to be exact, how do i get automator to search urls from current webpage, and then search urls again from those urls i got from my current webpage.
    Thanks in advance!

    Try this;
    * http://techdows.com/2011/09/show-http-in-firefox-7-address-bar.html

  • Hide URL from Status Bar

    Hi,
    Is it possible to hide the URL from the browser status bar when the mouse moves over a link AND once the link is clicked to hide the URL from the address bar as well ??
    Thanks for any input,
    Regards,
    Brandon

    More than the anal users. Many people use this information to
    decide
    whether they will click on the link. By hiding it, you remove
    that
    extremely valuable security information - for example, a link
    tells you on
    the screen that it is taking you to www.wachovia.com, but the
    status bar
    link tells you it's taking you to
    www.iamahackersiteandwilldrinkyourmilkshake.cn
    I don't think you want to remove that from your site, unless,
    of course, you
    are the webmaster for
    'iamahackersiteandwilldrinkyourmilkshake.cn....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "joeq" <[email protected]> wrote in message
    news:gib1tf$kn7$[email protected]..
    > it can be done - Behaviors > Set Text > Set Text
    of Status Bar.
    >
    > do what you want, but know that it's somewhat unreliable
    (see the caveat
    > in
    > the DW Behavior box) and that some anal users will
    object to the masking
    > of
    > your links.
    >
    >
    >
    quote:
    Originally posted by:
    ghost zero
    > Anyone know how to hide webpage link URL from the
    browser status bar with
    > Dreamweaver CS4? So that when the mouse cursor hovers
    over a link on a
    > webpage, the URL won't be shown in the browser status
    bar. This comes in
    > useful for when I put my email as a link on a webpage
    but I don't want to
    > let
    > my email address be known prematurely. I prefer to do
    this through the
    > Dreamweaver CS4 interface without coding, if possible.
    What is the
    > easiest way
    > to hide link URL like this? Thanks.
    >
    >
    >

  • JWS Download Dialog's URL(From:) different from browser's URL

    Hi everyone,
    My problem:
    I have deployed application A.jar at: {color:#0000ff}192.168.0.10{color}
    B.jar at:{color:#ff0000} 192.168.0.20{color}
    they were alaway launched successfully.
    but sometimes when I input {color:#0000ff}192.168.0.10{color} in the browser address, B.jar from {color:#ff0000}192.168.0.20{color} has be launched(*A.jar* has not),
    when I clear the JAVA cache , the problem will not happen &#12290; but After a few days , the problem happened again...
    i don't know how to slove it.
    anyone can help me ? thanks
    my english is poor ,i hope you will get my point.
    , :)

    Hi!
    You might have seen this post in the Automator part
    of the forum... but I might have posted it in the
    wrong place (got no interest:( )
    I've managed to get automator to retrieve (and save
    to hdd) an .m3u playlist from a radio's website that
    broadcasts a program I like in mp3.
    inside this m3u playlist is the link to an actual mp3
    file... both the m3u and the mp3 change every week.
    If I drag the m3u to TextEdit it opens up and I can
    see the 3 lines of "source code" of which the last
    line is the full url of the mp3 file (http://www
    .thatradiosurl.com/audio/show-shownumber.mp3)
    You already got the playlist into a text file, you have two options:
    1. use Automator's 'Get Link URLs from Webpages' action to extract the URL. 'Get Link URLs from Webpages' is under Safari lib.
    2. run Automator Python script from 'Get Link URLs from Webpages' in AppleScript. The script below with get your mp3 URLs:
    set playlist_file to "/path/to/playlist/file.txt" -- change to your actual playlist file path
    set _URLs to do shell script "/System/Library/Automator/Get\\ Link\\ URLs\\ from\\ Webpages.action/Contents/Resources/links file://" & quoted form of playlist_file
    set mp3_URLs to ""
    repeat with _URL in paragraphs of _URLs
    if _URL contains ".mp3" then set mp3_URLs to mp3_URLs & _URL & (ASCII character 10)
    end repeat
    mp3_URLs is the list you want you extract.

  • How to extract an mp3's url from m3u playlist (and download the file)?

    hello!
    I've managed to get automator to retrieve (and save to hdd) an .m3u playlist from a radio's website that broadcasts a program I like in mp3.
    inside this m3u playlist is the link an actual mp3... both the m3u and the mp3 change every week.
    If I drag the m3u to TextEdit it opens up and I can see the 3 lines of "source code" of which the last line is the full url of the mp3 file (http://www.thatradiosurl.com/audio/shownumber.mp3)
    My question is as follows: how do I get automator to 'extract' that url and save that file to my hard drive (so I can automatically add it to a playlist in itunes (and retrieve the show on my ipod at sync))??
    I'll save the final workflow as an iCal event that will hopefully grab this show every week.
    before you ask... no, that show is not available as a podcast! I wish it were... I think they're a bit slow on catching up with the tech.
    thanks to all!
    have a great day
    d
    pbg415"1.67   Mac OS X (10.4.6)  

    Hi!
    You might have seen this post in the Automator part
    of the forum... but I might have posted it in the
    wrong place (got no interest:( )
    I've managed to get automator to retrieve (and save
    to hdd) an .m3u playlist from a radio's website that
    broadcasts a program I like in mp3.
    inside this m3u playlist is the link to an actual mp3
    file... both the m3u and the mp3 change every week.
    If I drag the m3u to TextEdit it opens up and I can
    see the 3 lines of "source code" of which the last
    line is the full url of the mp3 file (http://www
    .thatradiosurl.com/audio/show-shownumber.mp3)
    You already got the playlist into a text file, you have two options:
    1. use Automator's 'Get Link URLs from Webpages' action to extract the URL. 'Get Link URLs from Webpages' is under Safari lib.
    2. run Automator Python script from 'Get Link URLs from Webpages' in AppleScript. The script below with get your mp3 URLs:
    set playlist_file to "/path/to/playlist/file.txt" -- change to your actual playlist file path
    set _URLs to do shell script "/System/Library/Automator/Get\\ Link\\ URLs\\ from\\ Webpages.action/Contents/Resources/links file://" & quoted form of playlist_file
    set mp3_URLs to ""
    repeat with _URL in paragraphs of _URLs
    if _URL contains ".mp3" then set mp3_URLs to mp3_URLs & _URL & (ASCII character 10)
    end repeat
    mp3_URLs is the list you want you extract.

  • Link to URL from column in report

    I still trying to find a way to display a static file on a report page. I have been unsuccessful with using an HTML region using #APP_IMAGES#filename.sh or using the value found in the coulmn: #APP_IMAGES#&P28_SCRIPT.
    Now, I've added a link on the column of the report. The column itself contains the URL that I want to go to. For ex. http://sharepoint.bankofamerica.com/sites/GIM2000upgrade/Shared%20Documents/Supporting%20Documents/Scripts/ds_broker_gim.sh
    The URL for the Link in the Column Attributes is set to : &SCRIPT_SHAREPOINT_HTML..
    When I click on the column, it brings me to the APEX Logon???
    I've used this URL in a List Template in a Region on a page as the Target URL and it works fine??
    I'm thoroughly confused at this point.
    Can anyone offer any assistance with this? It's driving me crazy and holding up any further development I need to get done????
    Thank-You

    Scott,
    Thanks so much and it would be better just to go to the hosted site that i am prototyping. Sorry for the confusion.
    What I want to do is to drill-down to the unix script file. I have upload the file: ds_broker_gim.sh to Static files. I want to be able to display the contents of this file after the drill-down from the ASE_AUTOSYS table.
    If you logon to my workspace: WIM
    UserName: [email protected]
    Password: ireland
    1. From View Application - select the Application name : CGM
    2. Click on the ASE tab bringing you to p.2
    3. Click on AUTOSYS tab ( Go to p.30)
    4. From the AutoSys Search Select Pulldown - 5. Select 'GIM2_D_DS_CREATEBOKER_UX ' (PS is there a way to do a'smart select to scroll the list as you type?)
    6. Click on the column link in Autosys_Script (it should say' /vol01/apps/gim/scripts/ds_broker_gim.sh'
    7. Click on the AUTOSYUS_SCRIPT column
    8. Brings you to p.28 where I'm various things to get the shared file to display.
    Note: I added the field: SCRIPT_FILE to the table AUTOSYS_SCRIPTS as a CLOB. I thought, well If I can't get it via an URL or as a static document- let me try storing the code in a clob field. As you can see, I'm having no success in displaying the ontents of the static file or contents of the column field.
    Also note that on P.2, I have include the URL in a List Tmplate : 'Document's. When i click on this, it does go to the URL. You won't be able to use this as it is located in our firewall but at least it work but not what I want.
    If you could help me with this, I would be very gratefult to you. I'm ploying away doing this on own and certainly I've got a lot to learn but at the same time I've managed to get quite a bit done.
    Thankks so much for your help. I hope I've explained this better.

  • Open a Dynamic URL from a Table column link

    Hi,
    Jdev Version (11.1.1.6.0)
    I have requirement to open a dynamic URL from table column. Any time I click on link, it should generate dynamic URL based on column attribute and open in popup or browser. Can someone pls suggest how to achieve this.
    Thanks
    Ank

    1)If you have any parameters that needs to be passed to build that dynamicURL, just set a propertyListener on the column attribute and get the value.
    2)Then on the af:commandLink action, build your dynamicURL with the required parameters.
    3) If you URL is all together a different application which doesn't share your transaction, you can open it as below
    In the below code, urlWithParams will be your dynamicURL.
    ExtendedRenderKitService erks =
    Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    StringBuilder sbURL = new StringBuilder();
    sbURL.append("window.open(\"" + urlWithParams + "\");");
    erks.addScript(facesContext, sbURL.toString());
    You can also try the above response by user 948181.
    Hope it helps.

  • How to get anonymous guest link "View Only" and "Edit" URL using JSOM or Search API ?

    Hi,
    I need to get list item anonymous guest link View Only and
    Edit URLs (as shown in image below) using JSOM or SharePoint 2013
    Search API.
    the URL will be like this - https://<site URL>/_layouts/15/guestaccess.aspx?guestaccesstoken=yRaYGmE9n
    Any one has any idea how to do achieve this?
    Thanks
    Shakir

    Hi Shakir,
    To get the anonymous guest link “View Only”, we can use SP.ObjectSharingInformation.anonymousViewLink property in sp.js.
    https://msdn.microsoft.com/en-us/library/office/jj246826.aspx
    To get the anonymous guest link “Edit”, we can use SP.ObjectSharingInformation.anonymousEditLink property in sp.js.
    https://msdn.microsoft.com/en-us/library/office/jj246468.aspx
    We can also use REST API to get the guests links:
    _api/web/Lists/getbytitle('library name')/items(item id)/GetObjectSharingInformation?$expand=SharedWithUsersCollection&retrieveAnonymousLinks=true
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Since upgrading Firefox, it no longer accepts URLs in the URL bar - it works if I have a bookmark, a link or from History, but not if I enter or paste a URL.

    Firefox 33.0.2 on Windows 8.1 64 bit. Since upgrading Firefox, it no longer accepts URLs in the URL bar - it works if I have a bookmark, a link or from History, but not if I enter or paste a URL and hit <enter>, in which case nothing happens at all.
    I have found that issue reported for Ubuntu (https://support.mozilla.org/en-US/questions/1011935?esab=a&as=aaq) but not for Windows. The solution there to change the keyboard is not feasible since it's a laptop with a built-in keyboard.
    I did not have this issue with FF 28 (I finally upgraded because I was getting BSODs) and I don't have this issue with any other Browser on same platform.
    Any help appreciated.
    Thanks.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • When I click or type in a valid link, I get the message "The URL is not valid and cannot be loaded." I have to reload/refresh the page one or more times until the same page loads.

    This happens with small sites as well as major ones such as amazon.com. It happens frequently with many different websites both when typing in a URL or clicking on one from search results or other pages. If I am opening it in a new tab, the page is blank and the correct URL shows in the address bar even though it didn't load. When I get the message "The URL is not valid and cannot be loaded" I have to click okay and then click on the link again or click refresh. Sometimes it loads on the 2nd try; other times I have to refresh multiple times to get it to load.
    Anyone know what is causing this or what will help?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    See also http://kb.mozillazine.org/Error_loading_websites (Error_loading_some_websites)

Maybe you are looking for