- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 06:57 AM - edited 05-03-2023 06:59 AM
Hi All
Recently I got one requirement that when we open a catalog item in esc portal , it should redirects to another page in esc portal.
Initially we have created 2 catalog items as per the client requirement and placed both the items under one category in esc portal, recently we have splitted that 2 items into 6 items and those 6 items are added under the same category page where we have added the old 2 items.
So my question is , When end user opens old 2 items, it needs to be redirects to the category link (where we have placed all 6 items in esc portal) as they can find all the 6 newly created items at one place . (As an end users book marked the old links in their browser) .
Is that possible ?
Thanks in advance
Nagurbi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 07:54 AM - edited 05-03-2023 07:55 AM
You could add an onLoad Catalog Client Script that would redirect to either a new Content Item Catalog Item that includes a description that the item is no longer active and links to the Category individual items or redirect directly to the Category with the new items.
It could look like:
function onLoad() {
//Type appropriate comment here, and begin script below
top.window.location = "sp?id=sc_category&sys_id=109cdff8c6112276003b17991a09ad65";
}
You just need to make sure the "Isolate script" field is set to "false" and that it is set to run in the Portal. This kind of thing is frowned upon, but sometimes you just have to do what you have to do.
Just deactivating the old items is not very friendly. But, make sure you clear the Catalogs and Category field on the items so they would no longer be found within the Catalog.
The Content Item is probably more user-friendly as the user would see the message. You could even tell them to remove any bookmarks to the old items. It's basically a Catalog Item that cannot be ordered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 07:24 AM
Hi @Nagurbee1 ,
- If you are looking for specific page redirection based on a script for Record Producer, use this example script:
producer.portal_redirect = "?id=sc_home"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 07:44 AM
Hello Sandeep
Thanks for the quick response.
It's not for the record producer , we are trying to redirect the catalog item link to categories page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 07:54 AM - edited 05-03-2023 07:55 AM
You could add an onLoad Catalog Client Script that would redirect to either a new Content Item Catalog Item that includes a description that the item is no longer active and links to the Category individual items or redirect directly to the Category with the new items.
It could look like:
function onLoad() {
//Type appropriate comment here, and begin script below
top.window.location = "sp?id=sc_category&sys_id=109cdff8c6112276003b17991a09ad65";
}
You just need to make sure the "Isolate script" field is set to "false" and that it is set to run in the Portal. This kind of thing is frowned upon, but sometimes you just have to do what you have to do.
Just deactivating the old items is not very friendly. But, make sure you clear the Catalogs and Category field on the items so they would no longer be found within the Catalog.
The Content Item is probably more user-friendly as the user would see the message. You could even tell them to remove any bookmarks to the old items. It's basically a Catalog Item that cannot be ordered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 02:51 AM
Hello Jim
It worked for me, thanks a lot for your help.
