1
Superion
News Module top page: zero stories?
  • 2010/6/15 14:09

  • Superion

  • Just popping in

  • Posts: 2

  • Since: 2010/4/22


Hello everyone!

I've been struggling with the NEWS module (I think it's 1.65) for a little while now. I don't like how it presents the most recent stories in full, unabridged format, so I want to specify that the top NEWS page displays zero stories...but unfortunately, the settings drop-down box for that option doesn't have that option (it starts at five). I'm thinking there has to be someway of overriding this...has anyone else solved this problem?

Thanks!

2
culex
Re: News Module top page: zero stories?
  • 2010/6/15 17:48

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


THen you'll have to go and make some serious changing in the code. You can't use another startmodule ?
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
iHackCode
Re: News Module top page: zero stories?

modify the xoops_version.php (modules/news folder)

original
$modversion['config'][1]['name'] = 'storyhome';
$modversion['config'][1]['title'] = '_MI_STORYHOME';
$modversion['config'][1]['description'] = '_MI_STORYHOMEDSC';
$modversion['config'][1]['formtype'] = 'select';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = 5;
$modversion['config'][1]['options'] = array('5' => 5'10' => 10'15' => 15'20' => 20'25' => 25'30' => 30);


so it looks like
$modversion['config'][1]['name'] = 'storyhome';
$modversion['config'][1]['title'] = '_MI_STORYHOME';
$modversion['config'][1]['description'] = '_MI_STORYHOMEDSC';
$modversion['config'][1]['formtype'] = 'select';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = 5;
$modversion['config'][1]['options'] = array('0'=>0,'5' => 5'10' => 10'15' => 15'20' => 20'25' => 25'30' => 30);


Then refresh/update the module. That will add the zero to the drop down list. I'm not sure on how the main page will look like though. Good Luck
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

4
underdog
Re: News Module top page: zero stories?
  • 2010/6/15 19:41

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


Quote:
I don't like how it presents the most recent stories in full, unabridged format

What do you mean with "unabridged format"
There are some other ways to display the stories.
What point does it have to show zero stories on the News main page?

5
ghia
Re: News Module top page: zero stories?
  • 2010/6/15 19:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Normally, it does not show the full text unless you did not use the extended text edit box.

6
Mazarin
Re: News Module top page: zero stories?
  • 2010/6/15 21:55

  • Mazarin

  • Just can't stay away

  • Posts: 533

  • Since: 2008/12/10


Why not use a module for static content as front page?

7
Superion
Re: News Module top page: zero stories?
  • 2010/6/16 20:54

  • Superion

  • Just popping in

  • Posts: 2

  • Since: 2010/4/22


Hello everyone...thanks for the help and responses!

Quote:
What do you mean with "unabridged format" There are some other ways to display the stories. What point does it have to show zero stories on the News main page?


By default, you can add blocks to the news module's top page (including some sort of "Recent News" summary block that's more like what I'm wanting)...but after that, the previous five (or more) stories are always presented as FULL ARTICLES...there is no way given to prevent this in the options.

What I'd like to do is create a news module top page that has two custom blocks that I can make with stories I wish to highlight, followed by that "Recent News" block (which DOES give you the option to present articles as title-only, or with a brief abstract).

Quote:
Why not use a module for static content as front page?


I've been looking for a so-called "blank" module that can be replicated/cloned, and I think that I may have found one called "ghost". What I'd REALLY like is a blank module that allows you to rename its clones to something more meaningful to the site (modules/site_section_1, modules/site_section_2, etc) since I'm not able to perform mod_rewrites or similar tactics to make the links appear more sensible.

8
ghia
Re: News Module top page: zero stories?
  • 2010/6/16 21:17

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Select classic view as is used here on frXOOPS.org, where you see the summaries of the articles. The Lire la suite... link (read the continuation ...) shows the complete article with the extended text part.
This is the 'normal' way of using the News module.
In the News section here, all articles are in full in the summary and don't expand on the read more, because they are complete.

You can put ghost in any module directory.


Login

Who's Online

138 user(s) are online (27 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits