Advanced search  

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

Pages: [1]   Go Down

Author Topic: Lacking note in CPG Documentation: function $template_sys_menu needs custom_link  (Read 7493 times)

0 Members and 1 Guest are viewing this topic.

Roi Danton

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 33
    • Tahun

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
« Last Edit: November 24, 2005, 09:36:58 pm by donnoman »
Logged
Style Tahun for cpg --> review

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray

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

Roi Danton

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 33
    • Tahun

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.
Logged
Style Tahun for cpg --> review
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.