CFMODULE is basically just another way to call a custom tag, with the
main differentiator being that the template name can be dynamic.  I'd
recommend packaging your widget as a custom tag, and using it via the
CFIMPORT syntax.  It's not really any different in terms of the code
you'll write, but the usage of it will be cleaner (IMHO).

cheers,
barneyb

On 8/9/07, Jonathon Stierman <[EMAIL PROTECTED]> wrote:
> Hi all -
>
> I'm building this one template that I'd like to re-use in multiple sections
> of my application.  In this case, it happens to be a display list.  But I'd
> like to be able to toggle certain options of this display list:
>
> So for example, assuming this is all the data my template displays:
> ID      Guru            Actions
> 1       Ben             edit delete
> 2       Ray             edit delete
> 3       Brian           edit delete
>
> I'd like to be able to tell the template whether to include certain things:
> includeID (boolean -- whether or not to display the ID column)
> highlightIDlist (integer list -- which user(s) to highlight)
> includeActions (boolean -- whether or not to display the action links)
>
> I've seen cfmodule used in a couple of the sites I've worked on, and it
> seems to have the functionality I'm looking for -- but I was wondering if
> there were alternate methods (better hopefully :)) I could be exploring?
>
> Thanks!
>
> Jonathon
>

-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285834
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to