Topic: List all Category

Hello,
how can i list all categories to make a navigation?

Thank you for helping.

2 (edited by 2014-08-04 05:36:55)

Re: List all Category

Hello,
how can i list all categories to make a navigation?

Thank you for helping.

Dear Perry,

You can call the cn_get_categories(); function after including the show_news.php file, if you want to get the list of categories after news output. The function will return an array with categories. 
Or you can execute the following code:

include("core/init.php");
$categoryes = cn_get_categories();

In $categoryes there will be an array with all categories.

Best regards,
CN Support team

3 (edited by 2014-08-02 16:22:53)

Re: List all Category

Dear Perry,

You can call the cn_get_categories(); function after including the show_news.php file, if you want to get the list of categories after news output. The function will return an array with categories. 
Or you can execute the following code:
$categoryes = cn_get_categories();

In $categoryes there will be an array with all categories.

Thanks Support Team for your answer,

good to now: cn_get_categories()



but i found another way to make a navigation:

create template for the navigation:

 * [url=https://cutephp.com/forum/index.php?page={page_alias}]{title}[/url]

in the include show_news.php code:

$page_alias = $_GET['page'];
$category = "1";
include("cutenews/show_news.php");

set  'paga_alias'


simple solution without coding.