Thread tagged as: Question, Problem

How to get the "real" title of a category

Is there any way to get the "real" title of a category in a page? Currently i am using


to get the category. In my case for example i get "gunstige-modelle/". What i actually want is the name of the category i created in the backend which would be "Günstige Modelle". Is there any way to achieve this?

Thanks in advance!

My Diagnostic Report:

Perch: 2.8.34, PHP:, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO
Server OS: Linux, apache2handler
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_PATH: /var/www/public/perch
PERCH_CORE: /var/www/public/perch/core
PERCH_RESFILEPATH: /var/www/public/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
DOCUMENT_ROOT: /var/www/public
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Bastian Silbereis

Bastian Silbereis 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you can use the perch_category() function.

Didn't check the DOC for perch_category(). After trying a bit i used a single template to store only the category name in a variable.

$catName = perch_category('testset/'.$cat, array(

Thanks for the help Drew (: