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 5.0 > Mambo 5.0 Wishlist

 
 
LinkBack Thread Tools Display Modes
Old 08.04.2004, 00:20   #1 (permalink)
Mamber
 
bulldog's Avatar
 
Join Date: Apr 2004
Location: SoCal
Posts: 85
bulldog is on a distinguished road
Lightbulb Hide more content item info on category pages

For content items, on category pages, you can currently hide (via global config):
(1) author names
(2) created date & time
(3) modified date & time

It'd be great to also be able to hide:
(4) hits
(5) the header bar
(6) display #___ (& make default customizable on backend)
(6) all navigational aids (start, next, 1, 2, 3, previous, end, etc.)
(7) the result count (results 1 - 6 of 6)

Essentially, such settings would allow total customization over how much extraneous info is shown with the content items, to the point of enabling content items to appear in a simple list format on the category page.
__________________
Bulldog
bulldog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 29.04.2004, 22:17   #2 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 2
Youngnj is on a distinguished road
Default Re: Hide more content item info on category pages

I would like to know how to do this also. I want to just show the item title, with no header information at all. Like you said, just the list of items with no extra details.

I know this will be a hack, but if someone could list the pages that need to be edited, and the lines to edit, that'd be great. Thanks in advance!
Youngnj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 29.04.2004, 23:10   #3 (permalink)
Mamber
 
bulldog's Avatar
 
Join Date: Apr 2004
Location: SoCal
Posts: 85
bulldog is on a distinguished road
Default Re: Hide more content item info on category pages

Here's how to do it (the ugly, not pretty, down-and-dirty, revise-after-every-update way)...
Please bear with the poor formatting...I copied & pasted out of a word document...

To remove Item Headers, go to components/com_content/content.html.php



Line 75 ~ Item Display Box

Old

PHP Code:
<td colspan="4" align="right"><?php echo _PN_DISPLAY_NR."&nbsp;"$pageNav->writeLimitBox ("index.php?option=content&amp;task=category&amp;sectionid=$sectionid&amp;id=$catid&amp;Itemid=$Itemid"); ?></td>
New

PHP Code:
<td colspan="4" align="right"><!--?php echo _PN_DISPLAY_NR."&nbsp;"$pageNav->writeLimitBox ("index.php?option=content&amp;task=category&amp;sectionid=$sectionid&amp;id=$catid&amp;Itemid=$Itemid"); ?--></td
Line 77-86 ~ Section Header Info

Old

PHP Code:
 <tr> 
 
<td class="sectiontableheader">&nbsp;<?php echo _DATE?></td>
 
<td class="sectiontableheader"><?php echo _HEADER_TITLE?></td>
 
<?php if (!$mosConfig_hideAuthor) { ?>
 
<td align="center" class="sectiontableheader"><?php echo _HEADER_AUTHOR?></td>
 
<?php } else { ?>
 
<td align="center" class="sectiontableheader">&nbsp;</td>
 
<?php ?>
 
<td align="center" class="sectiontableheader"><?php echo _HEADER_HITS?></td>
 
</tr>
New

PHP Code:
 <tr> 
 
<td>&nbsp;<!--?php echo _DATE; ?--></td>
 
<td><!--?php echo _HEADER_TITLE; ?--></td>
 
<?php if (!$mosConfig_hideAuthor) { ?>
 
<td align="center" class="sectiontableheader"><?php echo _HEADER_AUTHOR?></td>
 
<?php } else { ?>
 
<td align="center">&nbsp;</td>
 
<?php ?>
 
<td align="center"><!--?php echo _HEADER_HITS; ?--></td>
 
</tr>
Line 98 ~ Date

Old

PHP Code:
<td align="left"><?php echo $row->created?></td>
New

PHP Code:
 <td></td
Line 120 ~ Item Hits

Old

PHP Code:
<td align="center"><!--?php echo $row->hits $row->hits '-'; ?--></td
New

PHP Code:
<!--?php echo $row->hits $row->hits '-'; ?--> 
Line 124 ~ Page Navigation

Old

PHP Code:
<td align="center" colspan="4" class="sectiontableheader"><?php echo $pageNav->writePagesLinks("index.php?option=content&amp;task=category&amp;sectionid=$sectionid&amp;id=$catid&amp;Itemid=$Itemid"); ?></td>
New

PHP Code:
<td align="center" colspan="4"><!--?php echo $pageNav->writePagesLinks("index.php?option=content&amp;task=category&amp;sectionid=$sectionid&amp;id=$catid&amp;Itemid=$Itemid"); ?--> &nbsp;<br><br><br></td
Line 126 ~ Item Counter

Old

PHP Code:
<td colspan="4" align="right"><?php echo $pageNav->writePagesCounter(); ?></td>
New

PHP Code:
<td colspan="4" align="right"><!--?php echo $pageNav->writePagesCounter(); ?--></td
I should probably add to SAVE A BACKUP before you do this!
__________________
Bulldog

Last edited by bulldog; 30.04.2004 at 00:51.
bulldog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.04.2004, 00:42   #4 (permalink)
Senior Mamber
 
SvenErik's Avatar
 
Join Date: Apr 2004
Location: Mo i Rana, Norway (66°19'N 14°09'E)
Posts: 214
SvenErik is on a distinguished road
Default Re: Hide more content item info on category pages

And also maybe learn to use the code and phpcode buttons so that instead of:

<td colspan="4" align="right"><?php echo _PN_DISPLAY_NR."&nbsp;"; $pageNav->writeLimitBox ("index.php?option=content&amp;task=category&amp;s ectionid=$sectionid&amp;id=$catid&amp;Itemid=$Item id"); ?></td>

you get (PHP code):

PHP Code:
<td colspan="4" align="right"><?php echo _PN_DISPLAY_NR."&nbsp;"$pageNav->writeLimitBox ("index.php?option=content&amp;task=category&amp;sectionid=$sectionid&amp;id=$catid&amp;Itemid=$Itemid"); ?></td>
or with CODE:

Code:
<td colspan="4" align="right"><?php echo _PN_DISPLAY_NR."&nbsp;"; $pageNav->writeLimitBox ("index.php?option=content&amp;task=category&amp;sectionid=$sectionid&amp;id=$catid&amp;Itemid=$Itemid"); ?></td>
It makes it much easier to read the code...
__________________
"Every demand is a prison, and wisdom is only free when it asks nothing."
Sir Bertrand Russell
SvenErik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 30.04.2004, 00:53   #5 (permalink)
Mamber
 
bulldog's Avatar
 
Join Date: Apr 2004
Location: SoCal
Posts: 85
bulldog is on a distinguished road
Default Re: Hide more content item info on category pages

All right...All right...
I thought quick & dirty was better than nothing at all, but I guess if you're going to do it, do it right the first time.
I reformatted the above post to make it pretty...I mean "easier to read."
__________________
Bulldog
bulldog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05.05.2004, 16:20   #6 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 18
dbrugby is an unknown quantity at this point
Default Re: Hide more content item info on category pages

Is there any easy way just to hide the hits

Thanks
dbrugby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05.05.2004, 17:34   #7 (permalink)
Mamber
 
bulldog's Avatar
 
Join Date: Apr 2004
Location: SoCal
Posts: 85
bulldog is on a distinguished road
Default Re: Hide more content item info on category pages

If you look in the third post on this thread...it would only require you changing two sections to just hide the hits.
  1. you want to change the bottom line of "Section Header Info" (roughly line 84, the one that says HEADER_HITS) from the old version to the new version.
    .
  2. you want to change Line 120 as posted.
This is the only way I know to hide them. If someone has a more clever way (and I'm sure they do), please feel free to post it!
__________________
Bulldog
bulldog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05.05.2004, 17:55   #8 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 18
dbrugby is an unknown quantity at this point
Talking Re: Hide more content item info on category pages

thanks Bulldog

dbrugby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12.08.2004, 22:45   #9 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 11
lauren40883 is on a distinguished road
Question Re: Hide more content item info on category pages

Thanks for the help bulldog. However, i do have an additional question:

Is there a way to hack this document so that you can not display certain content items even though they are published? The reason I ask is because I have 2 content items that I do not want to display in this list on the category pages because I am displaying them (through the use of the Display News module) on another page. They need to remain published so that the module can display them, but I just want to remove them from this list. Is there some type of conditional "If-Then" statement I could use? I do not know much PHP.

If anyone can help me I would GREATLY appreciate it. Thanks in advance!
lauren40883 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 13.08.2004, 00:14   #10 (permalink)
Expert Mamber
 
kachete's Avatar
 
Join Date: Apr 2004
Location: Venezuela
Posts: 345
kachete is on a distinguished road
Send a message via ICQ to kachete Send a message via MSN to kachete Send a message via Yahoo to kachete
Default Re: Hide more content item info on category pages

Can it be posible to put these hide/show module in the backend administration so when we are typing or creatingb the content we can also check/uncheck the items and it show or not

it will be a great support to the users to that we can hide/unhide these items while typing content.

Best regards
__________________
No hay preguntas tontas, Solo Tontos que no preguntan
www.kachetewebsites.com / www.misitiove.com
kachete 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 02:18.

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.