Members: 15,141
Threads: 38,828
Posts: 159,362
Online: 38

Newest Member: batterygogo



Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
Thread Tools Display Modes
Old 24.11.2004, 00:08   #1
pocketyum
Baby Mamber
 
Join Date: Nov 2004
Posts: 3
pocketyum is on a distinguished road
Question Long front page with stories in boxes?

I posted this on the Template Discussion board, but upon review this may be more than that.

I've always admired sites like www.palminfocenter.com, www.zodiacgamer.com and even to some extend www.pdabuzz.com that have lots of news items on ther front page, each in it's own neat little box. These sites extend far below one screen, and the user must scroll to see the older news items, new ones being added at the top.

How do I get this look / functionality with Mambo? Can I? I'm assuming it's just a template issue, and I'm open to any suggestions of templates to use. If Mambo is not the right tool for a site like that, I'd be bummed but willing to switch.

Any insights welcome!
pocketyum is offline   Reply With Quote
Sponsored Links
Old 24.11.2004, 00:24   #2
Shinka
Junior Mamber
 
Shinka's Avatar
 
Join Date: Aug 2004
Location: Argentina
Posts: 40
Shinka is on a distinguished road
Default Re: Long front page with stories in boxes?

I've always wondered how to do this too, so if anybody know how, please tell us! Is there a way to do this without complications?
Shinka is offline   Reply With Quote
Old 24.11.2004, 05:40   #3
gaby
Senior Mamber
 
gaby's Avatar
 
Join Date: Jun 2004
Location: Ballarat, Australia
Posts: 217
gaby is on a distinguished road
Default Re: Long front page with stories in boxes?

That is exactly what Mambo can do. When you publish a new or othere item there is a box to tick to show on front page. It really is that simple.

This bit has nothing to do with the theme .. www.utes.com.au, www.uteshows.com.au, www.jcisenate.com.au, www.mowerracing.com.au all are different themes but what appears on the front page is because we tick the box.
gaby is offline   Reply With Quote
Old 24.11.2004, 11:16   #4
jmiba
Baby Mamber
 
Join Date: Nov 2004
Posts: 23
jmiba is on a distinguished road
Default Re: Long front page with stories in boxes?

This is a limitation in Mambo:
You MUST check EACH item you want to show in frontpage.

AND check AGAIN when you no longer want that it appears more!

I have written a module that displays the last N items from news, automatically. With the date and intro text.

Now you can put that module below the main content [a few articles you want show at top]

In a few days I publish that module.
jmiba is offline   Reply With Quote
Old 24.11.2004, 13:53   #5
gaby
Senior Mamber
 
gaby's Avatar
 
Join Date: Jun 2004
Location: Ballarat, Australia
Posts: 217
gaby is on a distinguished road
Default Re: Long front page with stories in boxes?

jimba I recon you got it all wrong there.

You set how many items you want to show on teh front page and how many subsequent links and that it. As you ad more items the older ones become redundant.

All items added to the utes site were originally on the front page but they don't all show. Every now and again I go to the front page Admin Section and do a clean out and rearrange but it's no big deal.

Yeah you module may be a tidier solution but it's another module to load. sorry
gaby is offline   Reply With Quote
Old 24.11.2004, 17:32   #6
Shinka
Junior Mamber
 
Shinka's Avatar
 
Join Date: Aug 2004
Location: Argentina
Posts: 40
Shinka is on a distinguished road
Default Re: Long front page with stories in boxes?

I guess that it's not what he's asking, lol
Of course that you have to tild the new to show in the frontpage and that is not a limitation, is an advantage if you have many section with news and newsflash.

What he wants to know (and I want to) is how can you put each one of the news you add in separate boxes, each new in a closed box, and no all together and contiguous like a big sabana.

Anyone knows?
Shinka is offline   Reply With Quote
Old 25.11.2004, 05:26   #7
tarmithius
Baby Mamber
 
Join Date: Oct 2004
Posts: 11
tarmithius is on a distinguished road
Default Re: Long front page with stories in boxes?

I would like to know how to add the stories in their own separate boxes too. I have tried to play with the template but to no avail. Does anyone out there know what I need to add as far as code goes.
tarmithius is offline   Reply With Quote
Old 25.11.2004, 08:38   #8
jmiba
Baby Mamber
 
Join Date: Nov 2004
Posts: 23
jmiba is on a distinguished road
Default Re: Long front page with stories in boxes?

Quote:
Originally Posted by Shinka
What he wants to know (and I want to) is how can you put each one of the news you add in separate boxes, each new in a closed box, and no all together and contiguous like a big sabana.
Well, if this is the problem, you do'nt have solution.

the CSS structure of main body is (for each content item):

-table.contentpaneopen
--->contenttitle
-table.contentpaneopen
--->create date & user
--->intro text

then, if you put a box surrounding "contentpaneopen", you get two boxes: one for the title, another one for the date/user & intro text.

It is possible that it is a bug in mambo?

All you can make is to put a single line before the title, playing with CSS and the class "contentheading". Or put it in a colored box (setting the backgroundcolor) to clearly separate items.
jmiba is offline   Reply With Quote
Old 25.11.2004, 10:02   #9
conum
Mamber
 
Join Date: Oct 2004
Location: Ahrensburg
Posts: 68
conum is on a distinguished road
Default Re: Long front page with stories in boxes?

I'm using Web-Developer-Tools in Firefox.
Activating the outline-tool you can see that all content items on the frontpage are gathered in one table, each content item in an own cell. Inside this cell there is another table for the itemtext with three cells for Header, Date&Author, Intro.
So you have to find the css for this cell in the maintable ...
Regards
Konrad

PS I will have a look at the code
conum is offline   Reply With Quote
Old 25.11.2004, 11:13   #10
conum
Mamber
 
Join Date: Oct 2004
Location: Ahrensburg
Posts: 68
conum is on a distinguished road
Default Re: Long front page with stories in boxes?

If you follow the steps beneath, be sure to have a clean copy of your template_css.css and of your /components/com_content/content.php
That's only experimental!
What I did is:
1. Define new classes in the template_css.css like
Quote:
td.lead_fp {
height: 1%;
border-width: 2px;
border-style: solid;
border-color: #00DD00;
margin-top: 4px;
padding-bottom: 4px;
}
td.item_fp {
height: 1%;
border-width: 2px;
border-style: solid;
border-color: #DD0000;
margin-top: 4px;
padding-bottom: 4px;
}
2. Have a look at /components/com_content/content.php and find the function "BlogOutput (...)" and there: "// Leading story output"
Beneath you'll find the output for the leading story, the items and so on.
There a some "<td> definitions. Put your 'class="lead_fp"' or 'class="item_fp"' inside:
Code:
<td class="item_fp">
and you'll find boxes around your items on the frontpage.
But that's only experimental!
Good luck
Regards
Konrad
conum is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Long front page with stories in boxes? pocketyum Template Discussions 0 23.11.2004 19:59
removing cellpadding in contentpaneopen tables for front page pdontthink Mambo 4.5.1 'How Do I' Questions 0 11.11.2004 00:33
Front Page settings ElgertS Mambo 4.5.1 Bugs 7 18.10.2004 14:58
Front page: display news on individual wrapping boxes julyrod Mambo 4.5 'How Do I' Questions 0 26.09.2004 23:01
How do i change the front page text? threefortyduster Mambo 4.5.1 'How Do I' Questions 1 22.09.2004 12:21


All times are GMT +2. The time now is 12:27.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.