Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hello.

I have created a document library showing a document image and title.

Code: Select all
<cms:pages masterpage='library_template.php' 
   paginate='1'
    limit='3' >

<table cellpadding="0" cellspacing="0" border="0" width="900">
    <tr>
        <td valign="top" width="60">
            <img src="<cms:show prop_image />" border="0" alt="<cms:show k_page_title />" title="<cms:show k_page_title />" width="50" />
        </td>
        <td  valign="top">
        <p class="title" style="margin:5px;">
            <strong><a class="lib_doc_title" style="color:#E9AE2B;" href="<cms:show my_document />" ><cms:show k_page_title /></a></strong><br />
            <div class="lib_doc_description">
                <cms:if document_desc >
                   <cms:show document_desc />
                </cms:if>
            </div>
        </p>
        </td>
    </tr>
    </table>


I have tried to use zebra to output image and document in two columns like this:
Code: Select all
<table>
<tr>
    <td> IMAGE of DOC 1 </td>
    <td> description of doc 1 </td>

    <td> IMAGE of DOC 2 </td>
    <td> description of doc 2 </td>
</tr>
</table>
<table>
<tr>
    <td> IMAGE of DOC 3 </td>
    <td> description of doc 3 </td>

    <td> IMAGE of DOC 4 </td>
    <td> description of doc 4 </td>
<tr>
</table>
...


I can`t figure out the corrent syntax for this.

I have also tried with div`s
Code: Select all
<div style="float:left;">
     <div style="float:left">IMAGE</div>
     <div> Description </div>
</div>

but I always get the same output.

Thanks for your help.

;)
Hi,

Outputting a TABLE can be challenging so I posted a generic way of doing it here -
viewtopic.php?f=8&t=7262

Please let us know if that helps.
thank you, the solution works as expected !! :D
3 posts Page 1 of 1