Fixed
Details
Assignee
Michael OffnerMichael OffnerReporter
Andri SenjayaAndri SenjayaPriority
MajorLabels
Fix versions
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
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Andri Senjaya
Andri SenjayaPriority
Labels
Fix versions
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
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