Hi,
How about injecting the shopping cart by javascript?
I think this is not the best way, but easy.
1. add action "cart" into your controller. it returns like this:
cart = function() {$('cart').innerHTML = '... shopping cart ...';}
Event.observe(window, 'load', cart, false);
2. edit your template to load /shop/cart as javascript code and add
<div id="cart"></div>
You can use cached page and uncached shopping cart by this way.
I think the cache mechanism of radiant should keep simple way.
----
Keita Yamaguchi
2007/4/25, kozy <[EMAIL PROTECTED]>:
> that clears things up quite a bit, thanks.
>
> It appears however you've missed my question about caching.
>
> is it prossible to inject a small piece of evaluated code in the template
> for the shopping cart? Or do I need to disable caching completly for this?
> I'd like to display the users shopping cart on every page. Is it possible
> to disable the cache for users who have something in the shoppping cart?
>
> If I want to continue using radiant for my site maybe I need to implement
> it myself? Can I overwrite specific functions of the response_cache model
> to process the returned cache, injecting an evaluated snippet or such.
> This might be very usefull for all kind of things.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant