Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Category list to display flexbox type layout  (Read 4115 times)

0 Members and 1 Guest are viewing this topic.

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
Category list to display flexbox type layout
« on: April 05, 2023, 04:50:24 am »

Hi guys. I'm trying to swap the category list from list to flexbox = multiple columns

This is my current code:

Code: [Select]
/******************************************************************************
** Section <<<$template_cat_list>>> - START
******************************************************************************/
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
            <td>
                <div class="tableh1_browse">
                    <span>Browse by category:</span>
                </div>
            </td>
        </tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
        <tr>
            <td class="catrow_noalb">
<table border="0" style="vertical-align: top;">
<tr>
<td style="vertical-align: top;">{CAT_THUMB}</td>
<td align="left">
                        <div class="catlink-big">{CAT_TITLE}</div>
                        {CAT_DESC}
                    </td>
</tr>
                </table>
                </td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="catrow">
                    <table border="0" style="vertical-align: top;">
                    <tr>
                        <td style="vertical-align: top;">{CAT_THUMB}</td>
                        <td><div class="catlink-big">{CAT_TITLE}</div>{CAT_DESC}</td>
                    </tr>
                </table>
                </td>
        </tr>
        <tr>
            <td colspan="3"><div class="tableb tableb_alternate">{CAT_ALBUMS}</div></td>
        </tr>
<!-- END catrow -->
<!-- BEGIN footer -->
        <tr>
                <td><div class="catbottom"><span>{STATISTICS}</span></div></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
       
<!-- END spacer -->

EOT;



/******************************************************************************
** Section <<<$template_cat_list>>> - END
******************************************************************************/
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Category list to display flexbox type layout
« Reply #1 on: April 05, 2023, 02:29:21 pm »

HINT: I suggest that you wait for CPG 1.7
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
Re: Category list to display flexbox type layout
« Reply #2 on: April 05, 2023, 02:47:05 pm »

HINT: I suggest that you wait for CPG 1.7

Exciting!!!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.