<%PARENTTOPICTITLE%>

Nothing is perfect! This is where you can post your ideas and wishes for functions you'd like to see in Help & Manual. Current version only please (H&M7).

Moderators: Alexander Halser, Tim Green

Post Reply
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

<%PARENTTOPICTITLE%>

Unread post by Ga Bowen »

The <%TOPICTITLE%> variable is really useful for me when naming files and for quickly re-using topics/snippets for different areas of documentation.

I'd like to add reference in some sections to the parent topic, so like this: <%PARENTTOPICTITLE%> - <%TOPICTITLE%>.

Does a <%PARENTTOPICTITLE%> variable seem like something worthwhile?
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: <%PARENTTOPICTITLE%>

Unread post by Alexander Halser »

There are already 2 variables for that.

<%TOPIC_TITLE_PATH%> delivers the topic title including their parent(s) - this is plain text
<%TOPIC_BREADCRUMBS%> - this is the same HTML-encoded, including links to the parent topics
Alexander Halser
Senior Software Architect, EC Software GmbH
michal_novomesky
Posts: 51
Joined: Thu Jan 12, 2012 2:21 pm
Contact:

Re: <%PARENTTOPICTITLE%>

Unread post by michal_novomesky »

Also, if there is no parent topic, how it would look like?

"(empty) - Current topic title"
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: <%PARENTTOPICTITLE%>

Unread post by Alexander Halser »

Check with the <IF_TOPIC_BREADCRUMBS> condition:

Code: Select all

<p>
<IFNOT_TOPIC_BREADCRUMBS>No topics above this level</IFNOT_TOPIC_BREADCRUMBS>
<IF_TOPIC_BREADCRUMBS><%TOPIC_BREADCRUMBS%>&nbsp;&gt;</IF_TOPIC_BREADCRUMBS>
</p>
Alexander Halser
Senior Software Architect, EC Software GmbH
Post Reply