Using predefined variables in pages (HTML)

Explorer ,
Feb 08, 2017 Feb 08, 2017

Copy link to clipboard

Copied

Are there predefined variables I can use in a page, like "this_page_name" or "this_chapter_name"?

Imagine I want to put comments into pages and make them conditional,

TODO: Hi, I am page "help.html"

Later, when I build the, say, printed documentation, with Build tag "TODO" switched ON, I will only get a list of pages which have a TODO section and its respective contents together with the name of the page.

Thanks,

Christoph

TOPICS
HTML help

Views

243

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 08, 2017 Feb 08, 2017

Copy link to clipboard

Copied

Hi there

Indeed there are variables as you are referring to. Unfortunately my crystal ball is on the fritz today and my psychic skills are as yet untapped so I'm unable to divine which version of RoboHelp you may be using.

I'm using version 2015 Release but I believe the same items are present in 2017 Release.

Click the Insert tab, then Field and a list of available fields should be presented.

tmp5.png

Cheers... Rick

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

It's RH9 I'm using. (I also have RH11 and 2015) but for compatibility reasons I'm bound to RH9 on this project.

And thanks, I found "Insert" and the "file"-Variable also in RH9.

As it seems, most of my pages are not bound to a condition. They contain some sections that are conditioned.

Is it possible to just output a portion of the page that is under a condition, say,if the contition is TODO, then just output:

<TODO> this file is "pagexy.html" please change image ...</TODO>

At the moment, even if I say

NOT this AND NOT that AND NOT PRINT and NOT old_stuff

I still get everything that is not under a conditional TAG.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

The use of AND / OR can cause confusion where more than one tag is in a topic or applied to a whole topic. Take a look at Build Expressions on my site to see if that helps you.

I think you are trying to write an expression that would have the effect of only including something with the tag applied. Often it is easier to apply a tag to the rest of content to exclude that. Thus if I wanted only this paragraph in my output and it was a print output, I would apply a tag called say PRINTEXCLUDE to the first and third paragraphs and create an expression NOT PRINTEXCLUDE.

Hope that helps. I'm not 100% sure if I have followed what you want.


See www.grainge.org for RoboHelp and Authoring information

@petergrainge

Please use the Blue reply button at the top to help me help you. The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 09, 2017 Feb 09, 2017

Copy link to clipboard

Copied

LATEST

Thanks, Peter. Will have a look at your page. Problem is: all my pages don't have a "global" conditional. They only have sections in them that are conditioned.

I can exclude single sections by a NOT condition but I cannot exclude the rest (untagged portions). Going through several hundred of pages to

put the rest of the untagged portions under a condition (like "ALWAYS") would be too tedious.

What I want is NOTHING BUT TODO

--

Christoph

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation