Show only Title, pre installed variables

Asked by Ponto

Hello, I want to if its possible to shown only the Title of the news (not the complete article).

I tried with this configuration of pre-installed variables:

   $phpns['always_show_extended_article'] = '0';
   $phpns['disable_extended_article'] = '1';

   include('../phpns/shownews.php');

Do I'm doing something wrog? Does it have some issue with the template configuration?
Thanks for your help

Your are doing a greate job

Question information

Language:
English Edit question
Status:
Solved
For:
phpns Edit question
Assignee:
No assignee Edit question
Solved by:
alecwh
Solved:
Last query:
Last reply:
Revision history for this message
Best alecwh (alecwh) said :
#1

Yes.

First of all, both of those pre-include variables mutually exclude each
other. You can't have both of them at the same time, they do opposite
things. Now, even though one is simply '0', it is placed inside a
string, which makes it a value, not a null integer. Both of them are
"True".

But it doesn't matter anyway, you are doing the wrong thing. You should
create a new template with only the {title} showing, and simply use
that.

$phpns['template'] = TEMPLATE_ID;

Revision history for this message
Ponto (danyelous) said :
#2

Well thanks very much. I tried with the template and it's even better than I thought, hehe.... Because I can personalized it even more...
Thanks again for your quickly help

Revision history for this message
Ponto (danyelous) said :
#3

Thanks alecwh, that solved my question.