Clarity

Expand all | Collapse all

External link on object list view with icon?

Jump to Best Answer
  • 1.  External link on object list view with icon?

    Posted 07-29-2015 12:21 PM

    This is essentially a follow up to my previous question, External URL with inline attributes where I was trying to create an Action on the Project/Idea objects to link to our external SharePoint project sites based on PR number. Got that all working fine. Now I have a request to add that link on project list portlets (My Projects specifically, but I'm sure others too). When I go to Linking on the Project object page and try to create a new one, the Action I created earlier is not available as an option. We basically want to replace the default Documents icon and link which uses the Clarity document manager that we dont use, and have one that points to the SP site instead. Has anyone gotten anything similar to work?



  • 2.  Re: External link on object list view with icon?
    Best Answer

    Posted 07-29-2015 12:26 PM

    You could build a local version of "My Projects" that implemented such a dynamic link (utilising the Re: URL Redirect to a Clarity Page technique)



  • 3.  Re: External link on object list view with icon?

    Posted 07-29-2015 02:47 PM

    I was able to use the linked method to create a new portlet/page with some tweaks to the javascript to work with our URL (the attribute on the project is relative, had to add in the SP site URL base), create a new link on the project object, and change the link the document image was pointing to. Didn't even have to make a whole new portlet.

    It does show the Clarity page for a second before redirecting most of the time, but its better than nothing.



  • 4.  Re: External link on object list view with icon?

    Posted 04-04-2017 04:55 PM

    Hi Lino.

       My apologies - it's late in the day & I'm a little cross eyed. Reading this thread it's sounds like you may have already engineered a solution to my business problem to solve. Short Story: I have a SharePoint Site URL attribute and I want to create an image that links to it so this has a little better 'fit & finish' thank simply putting the URL attribute in an object portlet like below.

       Can you confirm this is what you have up and working?

     

    Idea wise - it's possible Masking of Hyperlink URLs is the best available Idea I've found to productize this concept.



  • 5.  Re: External link on object list view with icon?

    Posted 04-10-2017 02:26 PM

    Sorry for the delay, but yes I think the solution here is what you're getting at. I used the XOG files attached in the post linked to up above. From what I recall (it's been awhile!) that XOG created a portlet, a page containing that portlet, and a new link type. I took the Document virtual attribute on the project page (believe its OOTB, might be an addin) and changed it to link to the new "URL REdirection" link action, which gives you one parameter option, which I set to our sharepoint URL. The portlet contains a bunch of javascript, I had to tailor this to go to the SP site (the attribute is relative like "/ClarityProjects/PR######" so I have the JS add the full SP domain in front of it). It does show clarity briefly before it redirects, but we found that acceptable, and noone has ever complained about it thus far.

     

    if (go2url.indexOf("/ClarityProjects") > -1) {
        go2url = "http://fulldomain"+go2url;
    }
    window.location = go2url;


  • 6.  Re: External link on object list view with icon?

    Posted 04-10-2017 09:47 PM

    Thanks!



  • 7.  Re: External link on object list view with icon?

    Posted 04-11-2017 02:26 PM

    Since the My Projects portlet is really just a view on the Project object, you can add your URL attribute from the project object to the OOTB portlet.

     



  • 8.  Re: External link on object list view with icon?

    Posted 04-11-2017 03:19 PM