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 » Thu Aug 11, 2016 9:25 am

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: 14615
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Show categories on homepage

Post by Thorsten » Fri Aug 12, 2016 6:30 pm

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 » Wed Aug 24, 2016 2:02 pm

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 » Fri Mar 09, 2018 11:36 am

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 » Wed Jun 06, 2018 1:36 pm

No one?

Thx

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

Re: Show categories on homepage

Post by Thorsten » Thu Jun 07, 2018 1:10 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest