This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Files subcategories on same page below categories


Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Files subcategories on same page below categories
avatar
Editor
0
From: -
You can't change the word separators to hyphen on existing websites. All SEO options are for fresh installs only.

I possibly add a rewrite option to rewrite existing SEO URLs in one of the next releases.
1 Re: Files subcategories on same page below categories
avatar
OP 232
From: -
Removed index.php from PHP part and it works now. How to separate subcats with coma or hyphen? Also i thing there is a bug when you enable:

Use hyphen instead of underscore as word separators for SEO URLs
1 Re: Files subcategories on same page below categories
avatar
OP 232
From: -
Clicking on subcat get me to site index.
1 Re: Files subcategories on same page below categories
avatar
Editor
0
From: -
You need to change the template files_categories_list

HTML part:
<!-- Template: files_categories_list -->

<div style="font-size: 18px;"><a href="https://www.contentteller.com/index.php{$insert['param_ct']}files{$insert['param_action']}categories{$insert['param_page']}{$insert['filecat_seo']}.html">{$insert['filecat_name']}</a></div>{$subcats}<br />
{$insert['filecat_description']}<br />
<br />


PHP part:
global $database;

$result = $database -> dbquery( "SELECT filecat_name, filecat_seo FROM " . DB_PREFIX . "esselbach_ct_filescats WHERE filecat_parentcat = '" . $insert['filecat_id'] . "' ORDER BY filecat_name" );
$subcats = "";

while( list( $sub_name, $sub_seo ) = $database -> dbrow( $result ) )
{
$subcats .= " <a href=\"index.php" . $insert['param_ct'] . "files" . $insert['param_action'] . "categories" . $insert['param_page'] . $sub_seo . ".html\">" . $sub_name . "</a>";
}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.