Repeating divs

Permalink
I'm trying to crete a repeating div in C5 where there is an image div floating on the left and text div floating on the right that align.

Its kind of like the repeating region you can do in Dreamweaver with templates I guess.

Its kind of important that the client doesn't need to add any HTML, they just select a new area and add the image and text required, is there a simple solution I'm missing?

 
Remo replied on at Permalink Reply
Remo
you can either create your own block or use the page list with two custom attributes. But this probably needs a few more clicks...

I've posted an example herehttp://www.concrete5.org/community/forums/block_requests/data_manag... It shows you how to create a block that prints a table. The layout is different but since it also includes a file (which you could replace with an image) it's almost what you want..
liminal replied on at Permalink Reply
I'll take a look - I have to say that C5 is an awesome system - I'm really looking forward to seeing it develop.
liminal replied on at Permalink Reply 1 Attachment
I have attached an image of what I am trying to get, a block where the image on the left and text on the right, but how easily is that customized to this?

Unfortunately I'm just starting out with PHP so am not best placed to start messing around with the file.
Remo replied on at Permalink Reply
Remo
if you aren't an experience php programmer, you should probably try to create a page_list template...

building a block requires a bit more php know how
liminal replied on at Permalink Reply
Thinking about it - surely I could just duplicate the current content block and add the code:

<table width="">
<tr>
<td width="300" align="left" valign="top">&nbsp;</td>
<td width="200" align="left" valign="top">&nbsp;</td>
</tr>
</table>

Then it will automatically add that when you use this block and the user can just add more lines to it when they want to?

I am guessing a bit here - and assume i'd need to echo the above out.

I have really appreciated your help on this matter!
liminal replied on at Permalink Reply
How can I duplicate the content block? I change its name and put it in the main blocks folder and just get an error?
Remo replied on at Permalink Reply
Remo
open controller.php and change the name of the class..

if it doens't help, why no post the error message you get?
liminal replied on at Permalink Reply
I tried earlier with the name change, but was clearly missing it. Managed to get it right now though.

Thanks again for your help, now to try and get ti to add that code!