links to pages in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 11:49 AM
Are there any good references for how to set up page links in Service Portal?
I am using an icon link to link to a knowledge base article. The link I am using works fine, but I'm having a hard time going back a page after the article opens.
This is the link I'm using - /kb_view.do?sys_kb_id=sysid This link setup worked fine in a CMS portal, but not so great in Service Portal.
Is there a better way of setting this up?
I also need to make a direct link from an icon link on my homepage to a record producer that creates an incident.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2017 08:33 PM
Hi Cynthia,
If you look at the HTML code of Icon Link, you see that the 'target' attribute of the a href is defined in data.target field.
line 3 of HTML code of Icon Link widget
<a ng-if="::(options.link_template == 'Circle Icon')" ng-href="{{::data.href}}" class="circle_icon {{::options.class_name}} text-{{::options.color}}" target="{{::data.target}}">
Please, check the widget if you've any option schema with label 'target' since the server populates this field from options.target, which you see on the server side.
Line 4 of Server Script of Icon Link widget,
data.target = options.target || "";
If you don't see an option for target. Clone the widget and add option schema target with four possible values,
_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked (this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window
Note: These are the standard HTML side which specifies where to open the linked document.
Once option schema is added, you can chose one among these values to achieve the behavior you intended.
I hope this helps.
Darshak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2018 04:38 PM
I figured out how to 'link' the knowledge base articles using the Icon Link widget.....
Set the widget instance options:
type = KB Article
KB article = the number of the KB article you want to link to
Page - kb_article
You can update the kb_article page to suite your needs. OOB, it comes with breadcrumbs and a search. I removed these so that you only see the article. It cleaned up the page nicely.