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:

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

Michael Offner 
5 December 2019 at 14:12

regression fixed, we update the fixed version of the ticket.

 

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.

Michael Offner 
2 December 2019 at 20:43

Michael Offner 
2 December 2019 at 20:36

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 14 May 2025 at 11:54
Resolved 5 December 2019 at 14:08