When editing templates, you use the {cat_name} tag to show the category name... so I'm guessing you have to go deeper into other files to turn it into a link (when clicked on goes to news in that category)
no clue where to even start to look

<?php
$fn_category = array (1);
include 'News/news.php';
?>[code]<?php
$fn_category = array (2);
include 'News/news.php';
?>[/code]$cat_name = $category['name'];$cat_name = '<a href="'. $category['name'] .'.php">'. $category['name'] .'</a>';

<?php
$fn_category = isset ($_GET['category']) ? (int)$_GET['category'] : 0;
include 'news/news.php';
?>$cat_name = $category['name'];$cat_name = '<a href="show_category.php?category='. $category['category_id'] .'">'. $category['name'] .'</a>';


joshua.s.belanger wrote:(moved into Help & Support)
---
The easiest way to do this is to make a page per category and name the page the same name as your category and put them in your website root NOT the FN folder. Example:
Categories:
1. General
2. News
Page:
1. youurl.com/general.php
2. yoururl.com/news.php
On each page just include on the category you want to include... For my examples I would have:
General.php:
- Code: Select all
<?php
$fn_category = array (1);
include 'News/news.php';
?>
News.php:
- Code: Select all
[code]<?php
$fn_category = array (2);
include 'News/news.php';
?>[/code]
To make the cat_name linked open functions.php
Inside find:
- Code: Select all
$cat_name = $category['name'];
and replace with:
- Code: Select all
$cat_name = '<a href="'. $category['name'] .'.php">'. $category['name'] .'</a>';
Now your cat name will link to each page...
Let me know if that works for you.
Users browsing this forum: Google [Bot] and 0 guests