I’m breaking my head over something of which I’m not even sure if it’s possible? I’m working on a site with lots of pages. The content for all different pages is stored in the database. What I try is to have 1 custom tag(cfmodule) for all pages and use an attribute to identify which content should be displayed on a particular page. But I tried everything and the funny thing is I don’t get an error, it simply displays the first record of the database on each page.
So my question is how should my query and cfmodule be used to accomplish this?
your query would retrieve the content from the database based on what page it is being called from, i.e. using #GetFileFromPath(GetCurrentTemplatePath())#
<cfmodule> is the same as <cf_customTag>, but since I don’t have access to the Administrator on the server to set mappings I use <cfmodule> instead. What I have is the following: