Hi Bruce,
many thanks for the help! Much appreciated. What would be the best way
to include the '_testimony.html' template snippet within say
'base_product.html' ? I want to do something like:

{% if TestimonyGroup key %}
{% include "testimonials/_testimony.html %}
{% endif  %}

Which would allow me to display testimonials if the TestimonyGroup
exists.


best regards,
John



On Nov 13, 6:12 pm, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote:
> You're right, I mistyped.
>
>
>
> On Thu, Nov 13, 2008 at 10:11 AM, john <[EMAIL PROTECTED]> wrote:
>
> > Hi Bruce,
> > that makes sense. Does the django tag library include 'as' ? I have
> > changed that to:
>
> > {% for testimony in ads.random_testimonies %}
> > {{ testimony }}
> > {% endfor %}
>
> > which now works.
>
> > many thanks,
> > John
>
> > On Nov 13, 4:37 pm, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote:
> > > On Thu, Nov 13, 2008 at 6:57 AM, john <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Guys,
> > > > I have set up django testimonials in my satchmo project store but cant
> > > > seem to get it to work. The only hint at how to use it in the
> > > > testimonials template tag code (apart of course from the code itself)
> > > > would be:
>
> > > > Sample usage:
>
> > > > {% TestimonialGroup key as ads %}
> > > > {% for tg.random_testimonies as testimony %}
> > > > {{ testimony }}
> > > > {% endfor %}
>
> > > What is your testimony group key?  That's what you are supposed to use
> > > there.
> > > For example, if you had a group of testimonies called "services", this
> > would
> > > work:
>
> > > {% TestimonyGroup services as ads %}
> > > {% for ads.random_testimonies as testimony %}
> > > {{ testimony }}
> > > {% endfor %}
>
> > > --
> > > Bruce Kroezehttp://gosatchmo.com
>
> --
> Bruce Kroezehttp://solidsitesolutions.com
> Dynamic Designs, Optimized
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to