1
bprado
Show only links in news module
  • 2009/6/11 14:36

  • bprado

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/9/9 1


Hi, in the news module, when you clic a categorie, it will show the news and the scoop (small intro), i just want to show the title of the news and nothing else, like a list of the articles!!

Anyone can help me?

2
culex
Re: Show only links in news module
  • 2009/6/11 16:39

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Top news block does that kind of.

If you dont want to show news in menu just go to modules and set value to '0' and make the block visible in the frontpage. The template can be set almost as you like I think
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
bprado
Re: Show only links in news module
  • 2009/6/11 17:26

  • bprado

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/9/9 1


That block the job, the problem is when the user clic a categories.

For example he want to see all the news in the categories News1, there will show the news title and the scoop(the intro).

There i can configure that show the news in 2 columns, but i cant remove the scoop (intro), and that is what i need, remove that and only show the title.

.../modules/news/index.php?storytopic=7


4
ghia
Re: Show only links in news module
  • 2009/6/11 23:04

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Make a copy of the news_item.html template and strip it down. Then use it in the news_index template.

5
bprado
Re: Show only links in news module
  • 2009/6/12 4:41

  • bprado

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/9/9 1


Is working ghia, i strip down the news_item.html, it display the way i want, but when i change the name and try to use it in the news_index.html i get nothing, all the text of the articles disapear.

this is the part of the code that im changing in news_index.html

Old one:
<td width="<{$columnwidth}>%"><{foreach item=story from=$columns[i]}><{include file="db:news_item.html" story=$story}><{/foreach}></td>

New One:
<td width="<{$columnwidth}>%"><{foreach item=story from=$columns[i]}><{include file="db:news_itemCat.html" story=$story}><{/foreach}></td>

When i put to use the new file news_itemCat.html display nothing

im missing something?

6
ghia
Re: Show only links in news module
  • 2009/6/12 6:41

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


No, I was.
You have two choices:
- Use the stripdown version of news_item (may affect other displays too)
- Add the new template in the list in xoops_version.php and update the News module.
$modversion['templates'][11]['file'] = 'news_itemCat.html';
$modversion['templates'][11]['description'] = "Modified item";



7
bprado
Re: Show only links in news module
  • 2009/6/12 11:39

  • bprado

  • Not too shy to talk

  • Posts: 103

  • Since: 2008/9/9 1


woooo, thks is solved with the second option!!!

Niceee!!!!

Login

Who's Online

163 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 163


more...

Donat-O-Meter

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

Latest GitHub Commits