Creating a ul list block with concrete5

Permalink
Hi,

I'm trying to add an editable ul list to homepage.http://yenisite.kartalsanattiyatrosu.com/... at the bottom of this page you can see that there is a ul > li list. But it's not editable and also every section will redirect to page in that site. As much as i know i can't do it with Designer Content. So do you have any idea to solve this issue? Here is the html of this list:

<ul>
                       <li>
                           <div class="workshop-box">
                            <img src="<?= $this->getThemePath() ?>/img/sanat.jpg" >
                             <h3 class="workshop-title">Oyunculuk Atölyesi</h3>
                         </div>
                        </li>
                        <li>
                           <div class="workshop-box">
                               <img src="<?= $this->getThemePath() ?>/img/sanat.jpg">
                                <h3 class="workshop-title">Gençlerle Oyunculuk</h3>
                            </div>
                        </li>
</ul>


Thanks

 
jordif replied on at Permalink Best Answer Reply
jordif
Hi!

You could try the following:

<ul>
   <?php
   $a = new Area('Workshop Box');
   $a->setBlockWrapperStart('<li>');
   $a->setBlockWrapperEnd('</li>');
   $a->display($c);
   ?>
</ul>


This will create a new area called "Workshop Box". Every new block you add to this area will be wrapped in <li> tags.

Then you can use the excellent (and never too praised) Desinger Content add-on to create a block with an image selector and a text field.

Hope it helps!

jordi