Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Looking for suggestion to mark external links, so they can be opened on a different tab in cp — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Looking for suggestion to mark external links, so they can be opened on a different tab in cp

Accepted answer
11
Views
1
Comments

Summary:

We have a widget containing links to different stuff. Articles, channels, external sites.

What we like to achieve is to add a Boolean to our channel for usefull links, that we can mark when a site is external.

The idea is to add target="_blank" code in the view of our widget, based on the Boolean from the schema.

Content (required):

Our channel schema consists of a Title, a URL and a Boolean for an External Link.

Our widget (called Linklist) is based on the standard/searchsource/SearchResultList widget (which in terms calls the okcs/AnswerList widget). The content however consists just of the document-information of the channel for links, not the content-fields of this channel.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!