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.
Snippet title variable
Moderators: Alexander Halser, Tim Green
- Tim Green
- Site Admin
- Posts: 23181
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Snippet title variable
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.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 305
- Joined: Mon Aug 21, 2017 7:35 pm
Re: Snippet title variable
Thanks Tim,
No biggie, would just save some typing
No biggie, would just save some typing