adding dynamic data
Permalink
Hi Guys
I'm fairly new to concrete 5 so be gentle with me. I want to insert a random quote into a block on each page. The data is in a table which I've added to the main database. How/where should I install the php script to access the data?
thanks
I'm fairly new to concrete 5 so be gentle with me. I want to insert a random quote into a block on each page. The data is in a table which I've added to the main database. How/where should I install the php script to access the data?
thanks
Wow! So many options. It is likely that I'll want to be able to insert other bits of PHP as well, so I'll look into the custom block thing as well.
Thanks for your help
Thanks for your help
there's a testimonials block that does this pretty well.
If you prefer not to spend the bucks, and you have a snippet of php code that can do that, there's a free add-on that lets you insert a script into your pages here: http://www.concrete5.org/marketplace/addons/simple-php-block/...
Or you can make your own custom block to do it. (http://www.concrete5.org/documentation/developers/blocks/overview) That requires a little more programming skill.