Lacking note in CPG Documentation: function $template_sys_menu needs custom_link Lacking note in CPG Documentation: function $template_sys_menu needs custom_link
 

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

Main Menu

Lacking note in CPG Documentation: function $template_sys_menu needs custom_link

Started by Roi Danton, November 24, 2005, 04:02:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Roi Danton

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
Style Tahun for cpg --> review

donnoman

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 -->


Roi Danton

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.
Style Tahun for cpg --> review