Custom Block
Permalink
Hello!
I'm trying to make a site a little bit more customized than I'm currently capable of. I'm currently just looking for suggestions. :) Anywho, I've got a page that has the same block of code over and over again which I want to make editable. Here's the block:
I wanted the user to be able to add as many of these blocks as they can. Right now, that part is hard coded. I just wanted to try to give them the option. How would someone suggest going about this? I was just curious. Thanks in advanced for any tips that anyone would like to share! :)
I'm trying to make a site a little bit more customized than I'm currently capable of. I'm currently just looking for suggestions. :) Anywho, I've got a page that has the same block of code over and over again which I want to make editable. Here's the block:
<div class="product"> <a href="javascript:void(0);" class="product_image"> <?php $pt = new Area('ProductImage'); $pt->setBlockLimit(1); $pt->display($c); ?> </a> <div class="product_name"> <?php $pn = new Area('ProductName'); $pn->setBlockLimit(1); $pn->display($c); ?> </div>
Viewing 15 lines of 23 lines. View entire code block.
I wanted the user to be able to add as many of these blocks as they can. Right now, that part is hard coded. I just wanted to try to give them the option. How would someone suggest going about this? I was just curious. Thanks in advanced for any tips that anyone would like to share! :)
Mike