You need to wrap this "#pagination.getRenderedHTML()#" in this <cfoutput></cfoutput>
On Fri, Dec 17, 2010 at 3:54 PM, Adam Parker <[email protected]> wrote: > > Please excuse my ignorance as I've never used a CFC either. > > My cfm page is: > > <!---Get poems---> > <cfquery name="qGetPoems" datasource="myDSN"> > SELECT id, poemTitle, average FROM PoetryContest2010 order by id asc > </cfquery> > > <cfset pagination = createObject("component", "Pagination").init() /> > <cfset pagination.setQueryToPaginate(qGetPoems) /> > <cfset pagination.setItemsPerPage(25) /> > <cfset pagination.setUrlPageIndicator("page") /> > <cfset pagination.setShowNumericLinks(true) /> > > #pagination.getRenderedHTML()# > <cfoutput query="qGetPoems" startrow="#pagination.getStartRow()#" > maxrows="#pagination.getMaxRows()#"> > <li>#id# - #poemTitle#</li> > </cfoutput> > #pagination.getRenderedHTML()# > > > > The Pagination.cfc is located in a directory one level deep in the root > directory in a folder called "components." The above code is on a cfm page > two levels deep in the root directory. > > The ids and poem titles show, but #pagination.getRenderedHTML()# literally > shows and is not interpreted by CF. What am I doing wrong? > > Thank you. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340121 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

