I would like to put the name of the manual in the breadcrumb prefix so that it would read, for example:
You are here in the Firewall manual:
or
You are here in the Audit manual:
Elsewhere, I use a variable, ProductName, for this, but don't see how to include it within the breadcrumb prefix. Can it be done, either via the built-in Stylesheet editor, or by getting directly at the CSS in an external editor?
Putting Variable in Breadcrumb Prefix
-
- Propeller Head
- Posts: 35
- Joined: Sun Mar 10, 2019 3:36 am
-
- Sr. Propeller Head
- Posts: 133
- Joined: Sun Feb 03, 2013 6:01 pm
Re: Putting Variable in Breadcrumb Prefix
I don't know if you can insert a variable into the value within the MadCap Stylesheet Editor, but you can certainly add a prefix before the breadcrumb proxy with anything you want by entering it on the master page or topic or wherever you put the proxy.
-
- Propeller Head
- Posts: 13
- Joined: Fri Sep 11, 2015 12:44 pm
Re: Putting Variable in Breadcrumb Prefix
Came across this as I was working on a similar issue, and wanted to share the solution for using a variable in the breadcrumb prefix.
First, create a new variable for your prefix. (Ex. MyVariables.Breadcrumb_Prefix ) The definition can be blank, or you can have a definition here that would be the default if not explicitly set in the target.
In your template page (previously called a "master page"), you can add/edit the variable by using the text editor. The variable should be in the same format used in TOC entries:
Then in each of your targets, under the "Variables" tab you can override the default definition value for that variable to be whatever you need (Ex. Firewall, Audit, etc.)
Hope that helps!
Beth
First, create a new variable for your prefix. (Ex. MyVariables.Breadcrumb_Prefix ) The definition can be blank, or you can have a definition here that would be the default if not explicitly set in the target.
In your template page (previously called a "master page"), you can add/edit the variable by using the text editor. The variable should be in the same format used in TOC entries:
Code: Select all
<body>
<MadCap:breadcrumbsProxy style="mc-breadcrumbs-prefix: '[%=MyVariables.Breadcrumb_Prefix%]: '; font-weight: bold;" />
Hope that helps!
Beth