Alternative
Goal
Any link within a TACC plugin to an external website should open in an external window/tab.
Note: This is available manually via Bootstrap4LinkPlugin and LinkPlugin, but a TACC plugin should extend either of these, not force user to add them.
Requirements
- Any TACC plugin link to external website should open in a new window when clicked*.
- This feature should not require configuration by CMS user.
* When clicked without modification key from user. (Cmd+ click on Mac browsers opens link in new window.)
Direction
Done via #280 (see external_link).
Archived Idea
Use a Django filter "templatetag":
- (Python) Parse any known URL before rendering a link.
- (Python) Conditionally render
target="_blank" attribute in link.
- (Template) Apply the filter to CMS menu markup.
- (Template) Apply the filter to article listing template/s (or a shared partial)
Alternative
Goal
Any link within a TACC plugin to an external website should open in an external window/tab.
Note: This is available manually via
Bootstrap4LinkPluginandLinkPlugin, but a TACC plugin should extend either of these, not force user to add them.Requirements
Direction
Done via #280 (see
external_link).Archived Idea
Use a Django
filter"templatetag":target="_blank"attribute in link.