That is something you have to live with as long as the system is changed every now and then without backward compatibility and posters just putting links without the name of the topic, but never mind the original post, use the How to instead
Examples of URL redirection in Links
Martti K.
P.S. The thread is below and the zip is attached.
Threads [ Previous | Next ]
Display Ideas
Post New Thread Post New Thread
Subscribe Subscribe
Re: URL Redirect to a Clarity Page
Christophe_D
Christophe_D Rank: New Member Posts: 2
Join Date: 5/2/10
Recent Posts Recent Posts
URL Redirect to a Clarity Page
10/13/09 7:16 AM
*
* Reply Reply
* Reply with Quote Reply with Quote
Hi,
On the C.A. Sandbox, within a NSQL query definition, we can create linking with the action "URL Redirect to a Clarity Page".
Anybody knows if this value in the "Action" is an Out of The Box value or if it comes with the BRM content pack (or other)?
Thanks,
Christophe.
* ±0
*
* (0 Votes)
Report Abuse Report Abuse
* Top Top
maxad
maxad Rank: Jedi Master Posts: 367
Join Date: 5/2/10
Recent Posts Recent Posts
Re: URL Redirect to a Clarity Page
Answer Answer (Unmark)
10/13/09 7:17 PM as a reply to Christophe_D.
*
* Reply Reply
* Reply with Quote Reply with Quote
This is not OOTB (and not to my knowledge in any content pack)
To enable this facility is quite simple, you need a dedicated page (based on pop-up template) and on that page a html portlet that uses javascript to 'scrape' the URL and perform the redirect.
ALL users should be given security access to both page and portlet (they will only see it fleetingly, but if they don't have access to them the redirct will fail with a 'you are not authorized' error)
I'm attaching both the page and portlet in xog form (zipped) The xog contains reference to Clarity 8.1.0.4247 but it should work in any 8x or 12x
The portlet's javascript is designed to be "graceful" if an error is detected (see image below) and it has been used extensivley in IE6 & 7 and FF2 & 3 (Chrome also)
Once this page/portlet exists it should register a link type called "URL Redirection" and you use that by passing a single string parameter which will be the URL you want to reach.
Remember that when doing intra-Clarity jumps this way you should use "relative" URLs starting with "\niku\app?action=...." - strongly advise you avoid "absolute URLs" for Clarity pages! (If you don't follow this advice you will have problems moving queries/portlets from dev to test to prod. for instance)
I suggest you use the xog 'as is' (i.e. use the page and portlet id's of 'url_redirection' - this makes it very clear what that page and portlet do).
BTW:
1. This page/portlet was published for the Australian User Group some time back - a good reason to join or create a user group :-)
2. The same page/portlet is used in at least 2 Clarity add-ons available from CA: "Data Integrity" and "Fiscal Focus"
Attachment
Attachments:
url_redirection_pg_portlet.zip (1.7k), url_redirect_portlet_preview.png (4.2k)
* +1
*
* (1 Vote)
Report Abuse Report Abuse
* Top Top
Christophe_D
Christophe_D Rank: New Member Posts: 2
Join Date: 5/2/10
Recent Posts Recent Posts
Re: URL Redirect to a Clarity Page
10/14/09 4:09 PM as a reply to maxad.
*
* Reply Reply
* Reply with Quote Reply with Quote
Thanks a lot for your answer, it works fine :)
* ±0
*
* (0 Votes)
Report Abuse Report Abuse
* Top Top
TomConnery
TomConnery Rank: Jedi Knight Posts: 131
Join Date: 5/2/10
Recent Posts Recent Posts
Re: URL Redirect to a Clarity Page
10/16/09 3:18 PM as a reply to Christophe_D.
*
* Reply Reply
* Reply with Quote Reply with Quote
I'm interested in using this type of functionality but... I don't get it..
I downloaded the xog, wrote it in and assigned rights to portlet and page but how do I test this?
Can you provide an example of usage?.. What code or variable needs to be modified?
Sorry...
Message Edited by TConnery on 10-16-2009 03:18 PM
* ±0
*
* (0 Votes)
Report Abuse Report Abuse
* Top Top
maxad
maxad Rank: Jedi Master Posts: 367
Join Date: 5/2/10
Recent Posts Recent Posts
Re: URL Redirect to a Clarity Page
10/17/09 5:13 AM as a reply to TomConnery.
*
* Reply Reply
* Reply with Quote Reply with Quote
this redirection expects you to provide the wanted URL - as a string
in (very brief) form
query contains concatenation of basic URL with object instance id =