Hi all,
Just wondering if there is a way to change the default target frame that is selected when creating a Cross-Reference or a Hyperlink? If I want these to always use Popup Window it looks like it's a manual process right now to set that property. I was hoping that there is a way to default it to a specific value?
Thanks,
Carrie
Change Default for Target Frame
-
CarrieAcosta
- Propeller Head
- Posts: 10
- Joined: Fri Dec 12, 2014 7:23 am
-
Mike Kelley
- Propeller Head
- Posts: 68
- Joined: Fri Aug 22, 2014 12:24 pm
Re: Change Default for Target Frame
In your masterpage you can put this inside the head:
This makes all links behave as if they had a target="_blank" attribute and value. You can use any of the other values for target (_self, _parent, _top). This changes the behavior for ALL links. If you want any link to have a different behavior, you'll have to specify that link's target attribute manually (which overrides the global setting specified in the head of the masterpage).
Code: Select all
<head>
<base target="_blank">
</head>Re: Change Default for Target Frame
Using base might open links in a new window - but the question was how to open links in a popup window.
However, I'm not sure if that's possible to set by default in Flare. I know you can set the default link behaviour for glossary terms, but not regular hyperlinks and cross-references.
I tried out that base tip though, and it didn't seem to work for HTML5 help, only if the topic is opened by itself outside the skin frame; perhaps the topic's iframe or MadCap's scripts interferes with it? Also the tag would need to be closed as it's XHTML; e.g. <base target="_blank" />
However, I'm not sure if that's possible to set by default in Flare. I know you can set the default link behaviour for glossary terms, but not regular hyperlinks and cross-references.
I tried out that base tip though, and it didn't seem to work for HTML5 help, only if the topic is opened by itself outside the skin frame; perhaps the topic's iframe or MadCap's scripts interferes with it? Also the tag would need to be closed as it's XHTML; e.g. <base target="_blank" />
-
Mike Kelley
- Propeller Head
- Posts: 68
- Joined: Fri Aug 22, 2014 12:24 pm
Re: Change Default for Target Frame
Thanks for checking that Dave. I didn't actually try it myself, it was just something I used from my SHTML days prior to using Flare and just expected it to work (it's basic HTML, after all). And you're 100% correct about needing to close the tag to conform to XHTML strictness.
I'll do a better job of thoroughly reading help requests and fully testing any recommendation I might give.
I'll do a better job of thoroughly reading help requests and fully testing any recommendation I might give.
Re: Change Default for Target Frame
Yeah, I just tried it as I'd never heard of the base tag before - was curious if it'd work.