Bug 97707

Summary: [1] Predefined variables in conditional text
Product: LibreOffice Reporter: jcm <jc.michel>
Component: DocumentationAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: cno, ilmari.lauhakangas
Priority: medium    
Version: 4.4.5.2 release   
Hardware: All   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: testcase: page variable in conditional text

Description jcm 2016-02-10 11:29:23 UTC
Some predefined variables can be used in Writer conditional text or hidden paragraph feature. They are mentioned in the help page, but only "page" (containing the page number) is shown as an example. Impossible to find the list of the predefined variables to be used in these conditional expressions : next_page, nextpage or page_count, pagecount don't seem to work for instance.
Comment 1 Buovjaga 2016-02-12 09:34:03 UTC
Here is page count: https://help.libreoffice.org/Writer/Conditional_Text_for_Page_Counts
Does this help somewhat: https://help.libreoffice.org/Writer/Formula#Variables_for_document_properties

But here: https://help.libreoffice.org/Writer/Defining_Conditions
it says:
You cannot use internal variables, such as page and chapter numbers, in condition expression.
Comment 2 jcm 2016-03-06 13:33:20 UTC
Created attachment 123346 [details]
testcase: page variable in conditional text

Here is a file showing that "page" variable exists and contains the total count of pages in the document when used in the context of the conditional text.
The help page shows the same usage.
My question is : are there any other predefined field that can be used the same way, and if so, where is the doc?
Comment 3 Cor Nouws 2016-05-03 14:55:18 UTC
(In reply to jcm from comment #2)

> The help page shows the same usage.
> My question is : are there any other predefined field that can be used the
> same way, and if so, where is the doc?

Hi jcm,
Meybe it is better to ask at one of the community support channels for this?
See http://www.libreoffice.org/get-help/community-support/

If there is a clear need for improved documentation of the Help, please report that.

Thanks,

Cor