Top ten + last 5 publications

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
icyfred
Posts: 10
Joined: Fri Jul 13, 2007 1:10 pm

Top ten + last 5 publications

Post by icyfred »

Hello,

Is there a way to change the TOP 10 into only a top 5?
If yes, how to do so.

And i'd like to have the last 5 publications above the top 10(5).
Which template do i have to edit?

Thanks for your answer.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you can change the number in the file inc/constants.php. You can change the layout in template/index.tpl.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Joesch
Posts: 41
Joined: Fri Jun 22, 2007 6:20 am

Post by Joesch »

In welcher Datei kann ich den Text "Die 5 neuesten Artikel" abändern? In der index.tpl konnte ich die Stelle nicht lokalisieren.

Vielen Dank schon mal!

Gruß Jörg
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

das ist die startpage.tpl.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
icyfred
Posts: 10
Joined: Fri Jul 13, 2007 1:10 pm

Post by icyfred »

hi,


I modified the file /path/inc/constants.php
/**
* Number of records for the Top 10
*
* @var const 10
*/
define('PMF_NUMBER_RECORDS_TOPTEN', 5);

and the file /path/template/startpage.tpl and all is ok.

Thanks again.
Joesch
Posts: 41
Joined: Fri Jun 22, 2007 6:20 am

Post by Joesch »

Ebenfalls besten Dank!

Den Hinweis auf die startpage.tpl habe ich genutzt, um die Textanpassung letztlich in der Sprachdatei vorzunehmen.

Wäre es auf Grund der Definitionsmöglichkeit in der constants.php nicht besser, "einfach" die Variable für die jeweilige Spaltenüberschrift mit zu nutzen? In der Sprachdatei wird dann "Die Top", "Die neuesten" oder so ähnlich definiert, bei der Ausgabe dann der Wert der Variablen mit angehängt. So wären definierte Variable und Spaltenüberschrift immer conform.

Gruß Jörg
x_maras
Posts: 3
Joined: Fri Jun 05, 2009 1:58 pm

Re: Top ten + last 5 publications

Post by x_maras »

Hi,
I also want to make it top 5,
I changed the constant but where I can find
The text of the header to changed it also to top 5 from top 10.

And is it possible to use the top 5 part, in my websites first page?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Top ten + last 5 publications

Post by Thorsten »

Hi,
The text of the header to changed it also to top 5 from top 10.
just change the text in your language file located in the folder language/. In phpMyFAQ 2.5 we changed the name "Top 10" to "Most populars FAQs". ;-)
And is it possible to use the top 5 part, in my websites first page?
Sure, just use the RSS feed for that.

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