Page 1 of 1

How to alter length of titles?

Posted: Thu Jul 23, 2009 10:22 pm
by R0CKY
In the startpage.tpl the questions for the most recent are referenced as {latestEntriesTitle}

These titles are cut short by phpMyFAQ and the periods added like this ...

My question is, where can I define how long I want the text to be before it is cut short?

Thanks!

Re: How to alter length of titles?

Posted: Thu Jul 30, 2009 7:14 am
by Thorsten
Hi,

which version do you use?

bye
Thorsten

Re: How to alter length of titles?

Posted: Thu Jul 30, 2009 8:23 am
by R0CKY
Sorry, v2.5.0

Re: How to alter length of titles?

Posted: Thu Jul 30, 2009 8:38 am
by Thorsten
Hi,

it's defined in inc/Faq.php line 1592:

Code: Select all

$shortTitle = PMF_Utils::makeShorterText($row['thema'], 8);
8 is the number of words. So if you want more words than eight, change the number.

bye
Thorsten

Re: How to alter length of titles?

Posted: Thu Jul 30, 2009 12:03 pm
by R0CKY
Very clever, thank you.

Re: How to alter length of titles?

Posted: Thu Sep 30, 2010 5:34 pm
by jdcasas
Hello,
Where can this be edited in V. 2.6.9

Re: How to alter length of titles?

Posted: Thu Sep 30, 2010 8:33 pm
by Thorsten
Hi,

it's line 1624:

Code: Select all

$output['title'][] = PMF_Utils::makeShorterText($row['thema'], 8);
bye
Thorsten