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?
<%PARENTTOPICTITLE%>
Moderators: Alexander Halser, Tim Green
- Alexander Halser
- EC-Software Support
- Posts: 4105
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
Re: <%PARENTTOPICTITLE%>
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
<%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
Senior Software Architect, EC Software GmbH
-
- Posts: 53
- Joined: Thu Jan 12, 2012 2:21 pm
- Contact:
Re: <%PARENTTOPICTITLE%>
Also, if there is no parent topic, how it would look like?
"(empty) - Current topic title"
"(empty) - Current topic title"
- Alexander Halser
- EC-Software Support
- Posts: 4105
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
Re: <%PARENTTOPICTITLE%>
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%> ></IF_TOPIC_BREADCRUMBS>
</p>
Alexander Halser
Senior Software Architect, EC Software GmbH
Senior Software Architect, EC Software GmbH