1
BrianEdwards
News 1.63 centre blocks

How do I make a centre block bottom to show the last 5 to 10 news items with thier scoop.

I also like this sites http://website.llanmonforum.org.uk/ centre left block "latest news" how is this done also.


2
Anonymous
Re: News 1.63 centre blocks
  • 2009/2/3 19:05

  • Anonymous

  • Posts: 0

  • Since:


Quote:
BrianEdwards wrote:

How do I make a centre block bottom to show the last 5 to 10 news items with thier scoop.


I'm not sure - I'll have to take a look, but hopefully someone else will chip in

Quote:
BrianEdwards wrote:

I also like this sites http://website.llanmonforum.org.uk/ centre left block "latest news" how is this done also.


I can tell you exactly

It is the News modules "Recent News" block with the title changed by editing it in blocks admin.

At the time of writing it is set to "Order by published date" and to display the last 8 articles (I change this for display purposes sometimes).

"Length of the title is set to 42 characters and the "Enable Spotlight Feature" is set to "Yes".

"What do you want to publish in the spotlight?" is set to "Recent news (don't use the list below)".

"Select an article:" is set to "First item"

"Display" is set to "Classical"

"Select topic(s) to use" has all the categories selected.

The colour of the articles title is hard-coded into the template (IIRC it is coded to FF6600). The template is in news/templates/blocks and it is the news_block_top.html file. Line 914 is what you want.

Lines 906 to 914 in my template are:
<{if $block.spotlight}>
    <
tr>
        <
td><table>
        <
tr>
            <
td colspan='2'>
                <
table border='0'>
                <
tr><td><img src='<{$block.spotlight.topic_image}>' border='0' alt=''>td><td align='left'><font color="#FFFFFF"><b><{$block.spotlight.topic_description}>b>font>td>tr>
                table>
                <
font color="#FF9900"><b><{$block.spotlight.title}>b>font> <{$block.spotlight.author}>


Hope this helps

3
BrianEdwards
Re: News 1.63 centre blocks

Thank you very much John LHS centre block works a treat. Now just to figure out the bottom centre and we are done.

cheers
Brian

Login

Who's Online

460 user(s) are online (333 user(s) are browsing Support Forums)


Members: 0


Guests: 460


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