As I wanted to use my own $template_sys_menu I got the error:
Template error
Failed to find block 'custom_link'(#(<!-- BEGIN custom_link -->)(.*?)(<!-- END custom_link -->)#s)
As I included the following lines into the function, it worked.
<!-- BEGIN custom_link -->
<!-- END custom_link -->
You should add this lines to your example of step 9 at: http://coppermine-gallery.net/demo/cpg14x/docs/theme/edit_theme.html
Greetings,
Roi
Thanks for catching that ommission.
Just to be clear, the custom link should be in $template_sub_menu not $template_sys_menu, can you confirm your error?
I've committed the latest example from hardwired for the example in the documentation.
<!-- BEGIN custom_link -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/hardwired/images/buttonleft1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/hardwired/images/buttoncenter.gif);">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/hardwired/images/buttonright1.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END custom_link -->
Quote from: donnoman on November 24, 2005, 09:36:42 PM
Just to be clear, the custom link should be in $template_sub_menu not $template_sys_menu, can you confirm your error?
Aah yes, I didn't tested it that way. Indeed it is enough to have the custom_link in $template_sub_menu when you use both functions.