Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 24

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

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

 
 
LinkBack Thread Tools Display Modes
Old 06.04.2004, 22:16   #1 (permalink)
Mamber
 
lazarus_bitmap's Avatar
 
Join Date: Apr 2004
Location: Dallas, TX
Posts: 71
lazarus_bitmap is on a distinguished road
Send a message via MSN to lazarus_bitmap
Default Frontpage -> Showing items grouped by section/category

Tried this on the other forum, but thought I might have better luck here since it isn't so busy.

Anyone been able to figure out a way to group home page news/articles by section or category. For example, say I've got Events and News as categories. I'd like the front page to show:

Upcoming Events
Item 1
Item 2

News
Item 1
Item 2

I can probably hack this into the core if I'm forced to, but was curious whetehr anyone had taken it on...

Cheers,
__________________
Jerry Stevenson
----------------
Stevenson Consulting
lazarus_bitmap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 06.04.2004, 22:30   #2 (permalink)
Expert Mamber
 
keliix06's Avatar
 
Join Date: Mar 2004
Posts: 202
keliix06 is on a distinguished road
Send a message via MSN to keliix06
Default Re: Grouping front page news items

You would have to do this as a core hack. Your query would look something like:
Code:
SELECT * FROM #__content WHERE catid=ID
Can't tell you if anyone else has something working though.
keliix06 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06.04.2004, 22:44   #3 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Grouping front page news items

Yeah a core hack is one way to go about it


However, there is another, that requires no hacking of the core but a module and some work on the database.


You could use my Display New modules and create multiple copies of them using this database manipulation detailed by Alwarren:
http://forum.mamboserver.com/viewtop...183&highlight=

in the thread, their is a link to antiespecista website, which shows this in action:
http://www.referenciacero.com/index.php


Next question would be how to assign modules to the mainbody
You could either create a typed content page with nothing in the content and assign the modules to that page.
Or you could use the mambot mosphp to include the module position directly into the typed content page (through the editors html mode), then make this the frontpage.

Hope that opens up some possibilities for you.
__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06.04.2004, 23:09   #4 (permalink)
Mamber
 
lazarus_bitmap's Avatar
 
Join Date: Apr 2004
Location: Dallas, TX
Posts: 71
lazarus_bitmap is on a distinguished road
Send a message via MSN to lazarus_bitmap
Default Re: Grouping front page news items

Very interesting idea, stingrey... I'm actually using a multi-template approach where I could just replace the mainbody content call on the home page with a module instead (leaving all sub-pages to use the standard approach). I think that might do exacty what I want without having to mess with core (much preferred, given all the recent security updates).

I'll follow up and let everyone know how it turns out...
__________________
Jerry Stevenson
----------------
Stevenson Consulting
lazarus_bitmap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.04.2004, 07:23   #5 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Grouping front page news items

Quote:
Originally Posted by lazarus_bitmap
I'll follow up and let everyone know how it turns out...
Yes please do.

If you get a 'live' implementation going I would love to se how it works out as I need to do the same sort of thing
__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 17.04.2004, 19:59   #6 (permalink)
Baby Mamber
 
mambaby's Avatar
 
Join Date: Apr 2004
Posts: 8
mambaby is on a distinguished road
Default Re: Grouping front page news items

Has anyone worked this out completely, yet? I'd like to have only one article at the top of the front page, with modules of the various sections with latest entries under the main article. Does that make sense? And I'd like to arrange them so they're maybe three across in a couple of rows. Is there a component that would do that?
mambaby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 17.04.2004, 21:27   #7 (permalink)
Mamber
 
lazarus_bitmap's Avatar
 
Join Date: Apr 2004
Location: Dallas, TX
Posts: 71
lazarus_bitmap is on a distinguished road
Send a message via MSN to lazarus_bitmap
Default Re: Grouping front page news items

Stingrey posted an excellent explanation of how to do it here:

http://forum.mamboserver.com/viewtop...381&highlight=

In your situation, you'd probably want to put the complete story inside the introtext area on your first item to make it appear in full, using the standard <?php include ("mainbody.php"); ?>, and only selecting that one item for the home page. Then use modules for the other sections, as in Stingrey's directions.

Cheers,
__________________
Jerry Stevenson
----------------
Stevenson Consulting
lazarus_bitmap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 01:39.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.