× Pleas keep in mind that SPAM will be deleted instantly

Default source code for Catalogue Template

  • P0rk
12 years 8 months ago #424 by P0rk
Hi,
Can someone please post the default source code for the catalogue template. As in Components > joodatabase > click on database name > catalogue template tab > view source.
Been playing around with the the look of rows and columns and I forgot to save the original source code before doing so and now need to start over again. (stupid mistake to make I know!)
Must say as well what a great extension this is, so simple and easy to use.
Any help would be much appreciated.
Thanks,
P0rk

Please Log in to join the conversation.

  • P0rk
12 years 8 months ago #425 by P0rk
Apologies for posting in wrong forum! I have re-installed the component and I am now back to where I was so issue is solved. Really not my day today. If anyone has similar issues in future default source code is:
<style scoped="scoped" media="screen" type="text/css"><!--
    table.cat td { padding: 5px; }
    table.cat th { background-color:#4B7DB0; color: #fff; padding: 5px; }
    table.cat tr.odd td { background-color:#f6f6f6; }
    table.cat tr.even td { background-color:#FFFFDF; }
    div.alphabox {  background-color:#f0f0f0; margin: 5px 0; padding: 5px;}
    div.alphabox a { padding: 3px; }
    a.readon { float: right; }
    .pagenav { padding:  0 3px; }
    --></style>
<table style="width: 100%;">
    <tbody>
        <tr>
            <!-- Search box -->
            <td align="center" valign="top">{joodb searchbox}</td>
        </tr>
        <tr>
        </tr>
        <tr>
            <td align="center" valign="top">{joodb pagecount}</td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%;" class="cat" cellspacing="3">
                    <tbody>
                        <tr>
                            <th style="width: 15%;">Value</th><th tyle="width:85%">Title</th>
                        </tr>
                        <tr>
                        </tr>
                    </tbody>
                </table>
                {joodb loop}
                <table style="width: 100%;" class="cat" cellspacing="3">
                    <tbody>
                        <tr class="{joodb loopclass}">
                            <td style="font-weight: bold; text-shadow: 1px 1px 3px #aaa; vertical-align: bottom; width: 15%;">{joodb ifis|value}{joodb value} ${joodb endif}</td>
                            <td style="width: 85%;"><img src="components/com_joodb/sample-images/{joodb picture}" alt="*" style="width: 46px; float: left; margin-right: 20px; padding: 10px; background-color: #c0c0c0; border: 1px solid #888;" /> <strong>{joodb title}</strong><br /><span class="small">{joodb date}</span>
                                <p>{joodb short_description}</p>
                                <div style="display: block;">{joodb readon}</div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                {joodb loop}
                <h3>{joodb nodata}</h3>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top">{joodb pagenav}<br />{joodb pagecount}{joodb limitbox}</td>
        </tr>
        <tr>
            <td align="center" valign="top">{joodb alphabox}</td>
        </tr>
    </tbody>
</table>
<p></p>

Sorry again!

Please Log in to join the conversation.

Moderators: Dirkjoest