Configuring News Section

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Abby
Posts: 2
Joined: Thu Dec 09, 2010 6:12 pm

Configuring News Section

Post by Abby »

Hi all,

Is there a way to configure the news section so that the date/author is displayed under the title?

Additionally, is there a way to have the news feed from the home page only display a excerpt of the article? Then when you click the title it will display the full news post? Sort of like a typical blog setting where you can "read more" after the cut.

Thanks,

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

Re: Configuring News Section

Post by Thorsten »

Hi,
Is there a way to configure the news section so that the date/author is displayed under the title?
You can edit template/default/news.tpl.
Additionally, is there a way to have the news feed from the home page only display a excerpt of the article? Then when you click the title it will display the full news post? Sort of like a typical blog setting where you can "read more" after the cut.
For this you have to hack the file feed/news/rss.php at line 90.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Abby
Posts: 2
Joined: Thu Dec 09, 2010 6:12 pm

Re: Configuring News Section

Post by Abby »

Yes, I've edited my news.tpl file, but I meant moving the date below the title on the main page as well.

To clarify, I do not want to edit my RSS feed, only the "feed" that's displayed on the front page. So on the front page is says "My FAQ News" with the RSS icon followed by a few headlines that link to the full news article. What I want is the content below the title links (on the main page only) to be excerpts. I've edited news.php but that edits them on the individual news pages and not the front page.

Which file can I add my substring function to? I'm assuming the same file is where I'd move the date as well.

Great software by the way. Just what I was looking for!

Thanks again,

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

Re: Configuring News Section

Post by Thorsten »

Hi,

ah, okay... that's all in main.php

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