1
Anonymous
Simple News Block
  • 2004/12/13 15:09

  • Anonymous

  • Posts: 0

  • Since:


Hello,
How i can make block have 3 items only as following :

( date ) story.text ... read more

it's same recent news block but i don't wanna title, just date then first 2-3 line of story then read more link for extended story.

2
coopersita
Re: Simple News Block

Perhaps using the module Spotlight (let's you have main story in home page) and modifying the template that comes with it.

3
Anonymous
Re: Simple News Block
  • 2004/12/14 7:51

  • Anonymous

  • Posts: 0

  • Since:


Hello,
I use recent news block as test block and make some changes, but <{$story.text}> not working :

<ul>
  <{foreach 
item=news from=$block.stories}>
    <
li>(<{$news.date}>)<{$story.text}><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>">  More...a>li>
  <{/foreach}>
ul>

4
jdseymour
Re: Simple News Block

I use extra news blocks that are provided by studioC.

See this thread: Extra News Blocks

It does require some customization, CSS, but it works well.

5
Anonymous
Re: Simple News Block
  • 2004/12/15 7:39

  • Anonymous

  • Posts: 0

  • Since:


Thank you jdseymour,
It's nice blocks even block_all , but how i can insert date of each new ?

6
jdseymour
Re: Simple News Block

Just add (<{$news.date}>)in the H1 field.

7
Anonymous
Re: Simple News Block
  • 2004/12/15 10:17

  • Anonymous

  • Posts: 0

  • Since:


Hi jdseymour,
Thanx .. everything ok .. now i wanna make another block named "Alerts", it's same News block but i wanna add small icon after date, there r 3 icons ( Red, Green and Yellow ) accourding to alert type.
I think this need to make hack or modifiy to News editor to make selectable checkbox or dropdown menu with 3 icons.

8
jdseymour
Re: Simple News Block

Yes, I believe that you can rename the module and install another instance. Play around with the template until you get it the way you want.

Post back when you finish, I would like to see what you came up with. Good luck and happy Xoopsing.

Login

Who's Online

210 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

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

Latest GitHub Commits