Cfdocument.currentpagenumber in header casedev support

Description

I have post the problem at: https://dev.lucee.org/t/cfdocument-currentpagenumber-in-header-case/2762/4

in ACF, I can manupulate the header in cfdocument like this:

<cfdocument > <cfdocumentitem type="header" evalatprint="true"> The Header #cfdocument.currentpagenumber#-#cfdocument.totalpagecount# <cfif cfdocument.currentpagenumber eq "1"> page 1 <cfelseif cfdocument.currentpagenumber eq "2"> page 2 <cfelse> page elase </cfif> </cfdocumentitem> <cfdocumentitem type="footer" evalatprint="true"> The Footer(#cfdocument.currentpagenumber#-#cfdocument.totalpagecount#) </cfdocumentitem> This is the body </cfdocument>

but in the lucee the, when the page is 1, the header never goes to this condition <cfif cfdocument.currentpagenumber eq "1">

currently I use lucee version 5.2.3.35, anybody know how to do this in lucee.

Thanks

Andri

Environment

None

Activity

Show:

Michael Offner 5 December 2019 at 14:12

Torsten Höpfner 3 December 2019 at 16:34

During using this fix, Lucee response a blank Page, here are the Testscript:

<cfdocument format="PDF" localUrl="yes">

 

<cfdocumentitem name="header" type="header" evalAtPrint="true">

<cfoutput>Header</cfoutput>

</cfdocumentitem>

 

<cfoutput>Content</cfoutput>

 

<cfdocumentitem name="footer" type="footer" evalAtPrint="true">

<cfoutput>Footer</cfoutput>

</cfdocumentitem>

 

</cfdocument>

Michael Offner 2 December 2019 at 20:44

evalAtPrint was not supported at all.

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 13 October 2017 at 02:01
Updated 18 June 2023 at 16:47
Resolved 5 December 2019 at 14:08

Flag notifications