forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Roi Danton on November 24, 2005, 04:02:24 pm

Title: Lacking note in CPG Documentation: function $template_sys_menu needs custom_link
Post by: Roi Danton on November 24, 2005, 04:02:24 pm
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.
Code: [Select]
<!-- 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
Title: Re: Lacking note in CPG Documentation: function $template_sys_menu needs custom_link
Post by: donnoman on November 24, 2005, 09:36:42 pm
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.

Code: [Select]
<!-- 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 -->
Title: Re: Lacking note in CPG Documentation: function $template_sys_menu needs custom_
Post by: Roi Danton on November 24, 2005, 09:48:11 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.