Bug 97707 - [1] Predefined variables in conditional text
Summary: [1] Predefined variables in conditional text
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
4.4.5.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 11:29 UTC by jcm
Modified: 2016-05-03 14:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
testcase: page variable in conditional text (16.32 KB, application/vnd.oasis.opendocument.text)
2016-03-06 13:33 UTC, jcm
Details

Note You need to log in before you can comment on or make changes to this bug.
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