ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Rotating Testimonials: Best Way

January 23, 2010 1:51am

Subscribe [3]
  • #1 / Jan 23, 2010 1:51am

    nomi

    18 posts

    I’m working on our site redesign and what I’d like to do is have rotating testimonials throughout the content directly in the entries. I’ve set up my testimonials channel and starting working on getting the Allow EE plugin working, but I got stuck there.

    So, what would be the most practical way to do this? Should I create a template for my testimonials and then use embed to put the entries rotating in the other page entries? Or, is there a better way to do that?

    I’m on EE 2.0.

    Thanks!

  • #2 / Jan 23, 2010 9:15am

    iamnick

    17 posts

    Hi Nomi,

    I just finished a site (using 1.6.8) that pulls random testimonials on each of the pages. I would think the logic could be similar. I ended up creating a weblog (or, a channel as their called in 2.0) for the client to add their testimonials as entries. Then on the main page template, I used an embed. The embedded template is just a simple channel pull, that is limited to 1 and set to pick a random entry. Works great for my site.

    I’ve read that embedded templates could possibly cause a performance hit. I made certain to disable everything feasible with the “disable” tag. With or without the embed, I have noticed no performance difference.

    I might also suggest the Query module with a direct SQL statement to pull this channel information into your template as well; though I have yet to try it, in theory, I think it should work.

    If you were looking to tie these testimonials to other entries, you could establish relationships by creating a new fieldtype that populates with your testimonials.

  • #3 / Jan 23, 2010 2:47pm

    nomi

    18 posts

    Awesome, I’ll try that and see how it goes. Thanks so much iamnick. That’s really helpful for me. 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases