Snippet title variable

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Snippet title variable

Unread postby John Johann » Tue Dec 04, 2018 2:09 pm

Hi,
I have some projects with a TOC for online help output and another for pdf output.

Some topics are inserted on a single page in the online TOC, but output as subchapters in the TOC pdf (which is what I want).

The topics which are inserted as snippets only display the topic contents in the online version. Is it possible to display the title of the snippet as well as the contents e.g. via variable similar to <%TARGETTITLE%> but without the link? I currently copy/paste them so that I can format them but would prefer an automated solution.
John Johann
 
Posts: 89
Joined: Mon Aug 21, 2017 7:35 pm

Re: Snippet title variable

Unread postby Tim Green » Tue Dec 04, 2018 4:49 pm

Hi John,

Sorry, it is not currently possible to get the title of a snippet from the snippet. The reason for this is that snippets don't have topic status, so they don't have titles, even if the file they are inserted from is a topic file with a title. They are always inserted *in* another topic, and they simply become part of the content of that topic. The only title available is the one that belongs to that topic. The same applies to any per-topic variables -- they belong to the topic containing the snippet (and it can also contain multiple snippets) not to the snippet. :?
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.
User avatar
Tim Green
Site Admin
 
Posts: 20355
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Snippet title variable

Unread postby John Johann » Tue Dec 04, 2018 6:00 pm

Thanks Tim,
No biggie, would just save some typing :-)
John Johann
 
Posts: 89
Joined: Mon Aug 21, 2017 7:35 pm


Return to Help & Manual 7 Forum

Who is online

Users browsing this forum: No registered users and 7 guests

cron