Can links in one project function for multiple target projects?

Please post all questions relating to using Help+Manual version 10 here.

Moderators: Alexander Halser, Tim Green

Post Reply
Swede
Posts: 66
Joined: Mon Apr 19, 2010 11:01 am

Can links in one project function for multiple target projects?

Unread post by Swede »

We usually include a common "sub-project" when we publish projects in different languages, i.e. both A and B include project C at publication. Projects A and B have identical XML topic files, except for the body texts which are in different languages. The topic links in Project C go to Project A. Is there a way to make topic links in Project C work to both Project A and Project B?
User avatar
Tim Green
Site Admin
Posts: 7818
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Can links in one project function for multiple target projects?

Unread post by Tim Green »

The links are routed through the project names at design and compile time, so the simplest way to manage this is with conditional text build options -- this is exactly the kind of situation they are designed for.

What you do is define a single build option in Configuration > Common > Custom Builds. Let's call it PROJA. Then wherever you have a link, you use the conditional text tool to make one link for Project A and one for Project B, usin an IF/THEN/ELSE structure like this.

[IF_PROJA>LinkToA[ELSE>LinkToB<END]

Then when you publish, you activate the PROJA build option in the Publish screen when you are including Project A, and disable it when you are publishing with Project B.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Swede
Posts: 66
Joined: Mon Apr 19, 2010 11:01 am

Re: Can links in one project function for multiple target projects?

Unread post by Swede »

Thanks, I'll try that.
Post Reply