Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 43

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 Search this Thread Display Modes
Old 17.04.2004, 04:01   #1 (permalink)
Baby Mamber
 
jukemann's Avatar
 
Join Date: Apr 2004
Location: Charlotte, NC
Posts: 17
jukemann is on a distinguished road
Default Section -> How do I change the default (10) number of content items displayed

How do I change the number of content items are being displayed? Currently there shows only 10.

Also how do I change the sort order so that the newer content stories are posted at the top rather at the bottom? I understand and see this in the frontpage configuration component.

Thanks

James
__________________
James
SEO-Forums.com | Web Helpers | VT-Football.com

Last edited by jukemann; 18.04.2004 at 06:55.
jukemann is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 17.04.2004, 09:27   #2 (permalink)
Junior Mamber
 
tudorbob's Avatar
 
Join Date: Apr 2004
Posts: 32
tudorbob is on a distinguished road
Default Re: Content Sections.

In the frontpage setup in admin click on the tab called Parameters. Here you have a number of options
1. "The Count" this will tell mambo how many news items you want on the front page. eg 10
2. "Intro" this tells mambo how many of the items displayed on the front page will have an introduction visible - so if this is set to 3 only 3 out of the ten items displayed will have an introductory text - the other seven will be a list of simple links at the base of the page. So if you want all ten to have the intro text then you should set this to 10.


The ordering - if you want the newest first you will have to scroll down the drop down menu for Date desc or is it ascending ? one of the two - the default is set to allow the user to specify the order.

Next you must click save at the top of the page.

Hope this is what you where looking for.

Tudor
tudorbob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 17.04.2004, 10:42   #3 (permalink)
Expert Mamber
 
visualdensity's Avatar
 
Join Date: Apr 2004
Location: Melbourne
Posts: 385
visualdensity is on a distinguished road
Send a message via ICQ to visualdensity Send a message via MSN to visualdensity
Default Re: Content Sections.

What tudorbob suggested is only for the frontpage component.

If you want to have the content categories to display more than 10 items, you can easily hack it by going to /components/com_content/content.php

BACKUP THAT FILE FIRST!

Go to around line 129 and you'll see something like below:

PHP Code:
function showCategory$id$gid$access$sectionid  ) {
    global 
$database$mainframe$Itemid$mosConfig_offset;

    
$limit trimmosGetParam$_REQUEST'limit'10 ) );
    
$limitstart trimmosGetParam$_REQUEST'limitstart') );

    
$noauth = !$mainframe->getCfg'shownoauth' ); 
You can hack this particular line:

PHP Code:
       $limit trimmosGetParam$_REQUEST'limit'10 ) ); 
Change the value "10" to the number of items you want to display. I've changed mine to 30. For an example, click go to the following link:

http://www.visualdensity.com/content/category/1/1/35/

I've also got my items to display with the newest at the top. To do this, go to line 170 in the same page (/components/com_content/content.php) and you find the something of the following:

PHP Code:
    . ($noauth "\n    AND c.access<='$gid'" "" )
    . 
"\nGROUP BY c.id"
    
"\n    HAVING COUNT(b.id) > 0"
    
"\nORDER BY a.ordering ASC" //This is what you change
    
); 
Change the "a.ordering ASC" to "c.created DESC" and your code will now look something like the following:

PHP Code:
    . ($noauth "\n    AND c.access<='$gid'" "" )
    . 
"\nGROUP BY c.id"
    
"\n    HAVING COUNT(b.id) > 0"
    
"\nORDER BY c.created DESC" // This is now changed
    
); 

That will get your content category listed like my site. Do note: changing the codes above will only affect content_category listing type. If you need others, you will have to amend the same changes to all other SQL statements in the file.

HTH.
__________________
"If you cannot win, make the one ahead of you break the record."
| Visualdensity.com |
visualdensity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 18.04.2004, 00:06   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Location: Chi-town.
Posts: 17
digidydave1 is on a distinguished road
Default Re: Content Sections.

Very handy post. Thanks.

If any 5.0 developers are watching, I wouldn't mind seeing these setting as parameters when creating a content blog category/section page via the menus. Just a thought.

dg
digidydave1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 18.04.2004, 04:10   #5 (permalink)
Baby Mamber
 
jukemann's Avatar
 
Join Date: Apr 2004
Location: Charlotte, NC
Posts: 17
jukemann is on a distinguished road
Default Re: Content Sections.

That's what is was lookng for

Thanks!
__________________
James
SEO-Forums.com | Web Helpers | VT-Football.com

Last edited by jukemann; 18.04.2004 at 06:55.
jukemann is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 19.04.2004, 18:35   #6 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Content Sections.

Actually the easiest way to do this without hacking core files is simply to add this simply command to the end of a url:

&limit=30

This then tells the page to set its page display to 30 items instead of the default 10.


However, I do agree that this should paramter configurable in the admin backend, globally and on a per section/category basis.
__________________
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 28.04.2004, 12:33   #7 (permalink)
Professional Mamber
 
eyezberg's Avatar
 
Join Date: Apr 2004
Location: Gap / France
Posts: 860
eyezberg is an unknown quantity at this point
Default Re: Content Sections.

Visual, this is very good,
only the second hack is further down, line 200something !! (in the category items).
Just added that, cool!
__________________
joe / ex Mambo ex Doc Team
Eyezberg.com
eyezberg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.05.2004, 16:54   #8 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 18
jump is on a distinguished road
Default Re: Section -> How do I change the default (10) number of content items displayed

PHP Code:
    . ($noauth "\n    AND c.access<='$gid'" "" )
    . 
"\nGROUP BY c.id"
    
"\n    HAVING COUNT(b.id) > 0"
    
"\nORDER BY a.ordering ASC" //This is what you change
    
); 
I do not have this. The closet I have is...


PHP Code:
    . ($noauth "\n    AND c.access<='$gid'" "" )
    . 
"\nGROUP BY c.id"
    
"\n    HAVING COUNT(b.id) > 0"
    
"\nORDER BY c.ordering" 
And also..
PHP Code:
    . ($noauth "\n    AND c.access<='$gid'" "" )
    . 
"\nGROUP BY c.id"
    
"\n    HAVING COUNT(b.id) > 0"
    
"\nORDER BY c.ordering" 
jump is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.05.2004, 21:43   #9 (permalink)
Mamber
 
TheGreek's Avatar
 
Join Date: Apr 2004
Location: Leicester, UK & Allihies,Ireland
Posts: 97
TheGreek is on a distinguished road
Default Re: Section -> How do I change the default (10) number of content items displayed

Okay Hi. I'm looking to do something along these lines too but I want to order my FAQ items by the number of hits.

In a listing like this:

http://www.mambo-hosting.com/content...y/2/8/36/30/0/

and I also want to create related items links and cross referencing of my FAQ's in an automated way.

Is it possable for a glossary of key words be used to create automatic links?

Sorry if I'm missing something obvious but I'm a fairly new boy to Mambo.
TheGreek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 15.05.2004, 10:42   #10 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 18
jump is on a distinguished road
Default Re: Section -> How do I change the default (10) number of content items displayed

^^ Anyone??
__________________
Please Visit: www.just-cars.co.uk
jump is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful Links -> Embeding php scripts into mambo content afru Mambo 4.5 'How Do I' Questions 36 20.07.2006 21:44
Hide more content item info on category pages bulldog Mambo 5.0 Wishlist 13 07.05.2005 04:20
HELP! How do I get rid of "(x Items)" in content sections mkoenigs Mambo 4.5 'How Do I' Questions 2 10.01.2005 03:12
How to link content items to main menu afru Mambo 4.5 'How Do I' Questions 3 11.04.2004 15:16
all available conzent sections in use?????? artd2 Mambo 4.5 Allgemein 2 08.04.2004 09:16


All times are GMT +2. The time now is 14:30.

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.