Topic: List all Category
Hello,
how can i list all categories to make a navigation?
Thank you for helping.
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → List all Category
Hello,
how can i list all categories to make a navigation?
Thank you for helping.
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.
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.
CutePHP Forums → Problem Solving / Help & Support → List all Category
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.