Show categories on homepage

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
stryker
Posts: 5
Joined: Thu Mar 17, 2016 3:52 pm

Show categories on homepage

Post by stryker »

I would like to show the categories (showcat.html) on the homepage, instead of the tags.

Is there a way to change the homepage?

I already edited the .htacess file and changed

Code: Select all

RewriteRule ^index.html$                 index.php [PT]
to

Code: Select all

RewriteRule ^index(.*)$                 index.php?action=show [L,QSA]
Redirect 301 /showcat.html http://help.mydomain.com
And deleted

Code: Select all

RewriteCond %{REQUEST_URI}          /showcat\.html$ [NC]
RewriteRule ^(.*)$                  index.php?action=show [L,QSA]
But this is just a workaround, as the link "All categories" in the header ofcause still goes to showcat.html
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Show categories on homepage

Post by Thorsten »

Hi,

the categories instead of the tag cloud above the news?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Sunshadow
Posts: 9
Joined: Wed Aug 24, 2016 10:24 am

Re: Show categories on homepage

Post by Sunshadow »

I think you can load the category section in main.tpl above showAllNews.
But I'm also looking for an easy way to make the "All categories" tab my default entry page. Makes more sense for me to see the categorys on the first page.
meulator
Posts: 7
Joined: Thu Mar 01, 2018 12:56 pm

Re: Show categories on homepage

Post by meulator »

Hi,

I'd like to do that too, preferably without messing with .htaccess :) Any easy fix?

thx!
meulator
Posts: 7
Joined: Thu Mar 01, 2018 12:56 pm

Re: Show categories on homepage

Post by meulator »

No one?

Thx
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Show categories on homepage

Post by Thorsten »

Hi,

in 2.9 it's quite a big hack, in the upcoming 3.0 release you can add the categories you want to the start page.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply