Code
page = master.html
[blocktypes]
extmenu = menublock.htm
menutree = menublock.htm
[blockpositions]
left = block.html
right = block.html
center = centerblock.html
[blockinstances]
[blocktypes]
extmenu = menublock.htm
menutree = menublock.htm
[blockpositions]
left = block.html
right = block.html
center = centerblock.html
[blockinstances]
Unfortunately this just made the menu block disappear from my theme completely instead of applying the custom template. I created a home.ini, which is simply a duplicate of my master.ini at the moment, but I don't know the proper way to make Zikula recognise the file through pageconigurations.ini, so it's not helped the problem.
The code for the custom template is as follows:
Code
<!--[foreach from=$menuitems item=item ]-->
<!--[if $item.name != '' && $item.url != '' ]-->
<tr>
<td class="nav">
» <a class="nav" href="<!--[$item.url|pnvarprepfordisplay]-->" title="<!--[$item.title]-->"><!--[$item.name]--></a>
</td>
</tr>
<!--[else]-->
<!--[/if]-->
<!--[/foreach]-->
<!--[ if $access_edit ]-->
<tr>
<td class="block">
<a href="<!--[ pnmodurl modname=Blocks type=admin func=modify bid=$blockinfo.bid addurl=1 ]-->#editmenu" title="<!--[ pnml name='_EMENU_ADDCURRENTURL' ]-->"><!--[ pnml name='_EMENU_ADDCURRENTURLSHORT' ]--></a><br />
<br>
<a href="<!--[ pnmodurl modname=Blocks type=admin func=modify bid=$blockinfo.bid fromblock=1]-->" title="<!--[ pnml name='_EMENU_EDITTHISBLOCK' ]-->"><!--[ pnml name='_EMENU_EDITTHISBLOCK' ]--></a>
</td>
</tr>
<!--[ /if ]-->
<!--[if $item.name != '' && $item.url != '' ]-->
<tr>
<td class="nav">
» <a class="nav" href="<!--[$item.url|pnvarprepfordisplay]-->" title="<!--[$item.title]-->"><!--[$item.name]--></a>
</td>
</tr>
<!--[else]-->
<!--[/if]-->
<!--[/foreach]-->
<!--[ if $access_edit ]-->
<tr>
<td class="block">
<a href="<!--[ pnmodurl modname=Blocks type=admin func=modify bid=$blockinfo.bid addurl=1 ]-->#editmenu" title="<!--[ pnml name='_EMENU_ADDCURRENTURL' ]-->"><!--[ pnml name='_EMENU_ADDCURRENTURLSHORT' ]--></a><br />
<br>
<a href="<!--[ pnmodurl modname=Blocks type=admin func=modify bid=$blockinfo.bid fromblock=1]-->" title="<!--[ pnml name='_EMENU_EDITTHISBLOCK' ]-->"><!--[ pnml name='_EMENU_EDITTHISBLOCK' ]--></a>
</td>
</tr>
<!--[ /if ]-->
This is a preview of what I'd the theme to look like once it's done, so you can get some idea of what I'm trying to achieve with the custom block template.
This is my first theme for Zikula so I'm still learning the system, and therefore it's likely I've just made a newbie mistake. Any help or suggestions you can give me would be much appreciated.
Thank you. :)
