I wanted to place the category and forum list in phpBB's default dropdown. But for some reason it doesn't work. I tried different methods but I couldn't find the exact problem.
This was done on a test board with 1 forum and 2 categories in the main directory. A forum without a category appears, but <li> content does not appear in the categories. Normally, forums in that category should be listed.
Code: Select all
<div class="cat2list12024">
<div class="ctapps">
<!-- BEGIN forumrow -->
<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW or forumrow.S_NO_CAT -->
<div class="dropdown-container cat-{forumrow.FORUM_ID}">
<a href="#" class="cappclink dropdown-trigger"><!-- IF forumrow.S_IS_CAT --><span class="cappsimg">{% if forumrow.FORUM_IMAGE %}{forumrow.FORUM_IMAGE}{% else %}<img src="./images/123.svg" alt="{forumrow.FORUM_NAME}">{% endif %}</span><span class="cappforumname">{forumrow.FORUM_NAME}</span><!-- ELSE --><span class="cappsimg"><img src="./images/123.svg" alt="{L_FORUM}"></span><span class="cappforumname">{L_FORUM}</span><!-- ENDIF --></a>
<div class="dropdown">
<ul class="dropdown-contents">
<!-- IF not forumrow.S_IS_CAT -->
<li class="r0w<!-- IF forumrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --> frm-{forumrow.FORUM_ID}">
<a href="{forumrow.U_VIEWFORUM}" class="capps-item{% if forumrow.S_UNREAD_FORUM %} unread{% else %} read{% endif %}" title="{% if forumrow.S_IS_LINK %}{{ lang('FORUM_LINK') }}{% else %}{{ forumrow.FORUM_FOLDER_IMG_ALT }}{% endif %}">
<span class="caappforumicon"> </span>
<span class="cappsfrmnm2">{forumrow.FORUM_NAME}</span>
</a>
</li>
<!-- ENDIF -->
</ul>
</div>
</div>
<!-- ENDIF -->
<!-- BEGINELSE -->
{L_NO_FORUMS}
<!-- END forumrow -->
</div>
</div>