I am creating a master/detail page set and instead of having two master pages, I am placing some conditional logic around two different blocks of code. It doesn't seem like this is the "best practice" because there is a lot of programming on my template page, which defeats the purpose of separating HTML from CF.
What I have is a collection of articles in a database and I am providing links to them by category and by author. If they select author, a list of all articles by that author are displayed as links on the master page (they are also grouped by category). If they select category, a list of articles by that author are displayed on the master page (they are grouped by author. TWO APPROACHES: 1.) create two methods, each with it's own query. Then, on the master template, make a call to both methods and then wrap the output in conditional programming. 2). Create one method with two queries, wrapping those queries in conditional programming. Then, on the master template, make one call to the one method and output the results. Are both of these approaches viable? Is one "better" than the other? Do they both fail miserably and a new approach suggested? Thanks in advance for you thoughts and suggestions! -Aaron Innocent Innovations Not an Advanced Certified CF Developer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239437 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

