Jason Herbolsheimer wrote: > I have ran across an issue using cfdocument.
According to the documentation: "You can use the cfdocument scope variable, cfdocument.currentpagenumber, to display the current page number in a header or footer." So it sounds to me like it's only valid in a header and footer. I find it exceptionally annoying that you can't use those variables for logic, either... like if you wanted odd and even pages to have different footers. Rick > > I am trying to place the currentpagenumber and totalpagecount within the > main section of the page. The problem is that the values are not being > returned. > However, if I place the currentpagenumber and the totalpagecount within the > cfdocumentitem (header/footer) the values are returned. Do these two items > need to be within the header/footer or can I embed them within the main > display section. I couldn't find any documentation that let me know either > way. > If someone has encounter this issue and has found a way around it, please > let me know what I am doing incorrectly. > > > An example is below: > > > <cfdocumentsection> > <cfdocumentitem type="header"> > <table> > <tr> > <td>Header Text</td> > </tr> > </table> > </cfdocumentitem> > > <cfoutput> > <table> > <tr> > <td>Page: #cfdocument.currentpagenumber# of > #cfdocument.totalpagecount#</td> > </tr> > </table> > </cfoutput> > <cfdocumentitem type="footer"> > <table> > <tr> > <td>Footer Text</td> > </tr> > </table> > </cfdocumentitem> > </cfdocumentsection> > > Thanks in advance > > > Jason Herbolsheimer > http://www.cfwebtools.com > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219724 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54