Category description" {CAT_DESC} in intermediate image display Category description" {CAT_DESC} in intermediate image display
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Category description" {CAT_DESC} in intermediate image display

Started by ivonovak, November 20, 2007, 11:16:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ivonovak

How can display the "Category description" {CAT_DESC} in intermediate image display?

include/themes.inc.php
// HTML template for intermediate image display
if (!isset($template_display_media)) { //{THEMES}
$template_display_media = <<<EOT
{IMAGE}
{ADMIN_MENU}
{TITLE}
{CAPTION}
// ---> here i wish insert {CAT_DESC}

I am not PHP experienced... :-(

Thank you for any idea.

Joachim Müller

Quote from: ivonovak on November 20, 2007, 11:16:44 AM
include/themes.inc.php
Don't edit that file at all, under no circumstances. Edit themes/yourtheme/theme.php instead. Did you read the docs?

ivonovak

Sorry, in theme.php & template.html token {CAT_DESC} not working.  >:(

Joachim Müller

You can not use the placeholder tokens in any place you see fit - this is much more complicated. As suggested, {CAT_DESC} is just a placeholder that needs to be defined inside the function that you're using it in.