By "site-wide spamming of the toolbar"? Do you mean that you wish to display the toolbar on pages other than ec pages?
Yes.
And you plan to do that by placing <include src=".../toolbar>" in the master template?
Yes, by wrapping include with a conditional template "if" tag.
Sorry for the gibberish previously posted. Information overload has a tendency to affect me that way. I had half a mind to post with. Unfortunately that half didn't realize its limitations.
It makes more sense to use variables: is_not_in_ecommerce_p and show_toolbar_p.
in default-master.tcl:
set is_not_in_ecommerce_p [expr [ad_conn package_id] != [ec_id] ]
in default-master.adp:
<if @is_not_in_ecommerce_p@ true>
<include src=".../toolbar>
<!-- displays toolbar for pages outside ecommerce -->
</if>
<if @show_toolbar_p@ true>
<include src=".../toolbar>
<!-- displays toolbar for chosen pages within ecommerce -->
</if>
Thanks for the clarifications regarding ad_conn package_id and object_id, Randy!
ps. I think there will be some slight changes as I generalize the toolbar url etc. I'll post the final version here.
cheers,
Torben