Page 1 of 1

Setting up a URL as a variable in a map

Posted: Fri Mar 07, 2025 3:09 pm
by matt_k
Hi there

We have a series of maps that reuse a large amount of shared content.

One of the topics contains conrefs to some shared content, one of which has a paragraph with an xref to our website. What we would like to do is is set up a variable in each map with a unique xref to a different page in each map.

For example map A should have an xref to www.xyz.com/first_page and map B would have an xref to www.xyz.com/second_page, and so on.

I know that it is not possible to add an xref to a keydef, but I wondered if there is another way to do this.

The paragraph in question reads: "This is available on each product webpage, accessible from the products webpage." - products webpage contains the xref.

If you have any questions, please let me know.

Many thanks

Kind regards

Matt

Re: Setting up a URL as a variable in a map

Posted: Fri Mar 07, 2025 4:07 pm
by Radu
Hi Matt,

I would probably prefer to do this with an <xref keyref> as you mentioned.
You could also do this with profiling conditions like:

Code: Select all

<p> check this link out <xref href="a.html" scope="external" product="map1"/><xref href="b.html" scope="external" product="map2"/></p>
and apply various profiling attributes depending on the published DITA Map.
Or with conref and again profiling filters..

Regards,
Radu

Re: Setting up a URL as a variable in a map

Posted: Wed Mar 12, 2025 8:15 pm
by matt_k
Thanks Radu, I used profiling attributes for each link.