Menu Content

Shopping Cart

£15.00


1 Product
£15.00



Currencies Accepted


Newsletter

Subscribe to our newsletter


Name:

Email:

Like it? Share it!

Find Us Elsewhere

Follow us on Twitter

Home Support Forum Other Joomla Extensions Reducing line-height in News Tab

 Spiral Scripts Support Forum :: Other Joomla Extensions
Welcome Guest   [Register]  [Login]
 Subject :Reducing line-height in News Tab.. 21-08-2010 17:39:15 
greg1790
Fresher
Joined: 29-05-2010 19:37:08
Posts: 2
Location
How do I reduce the space between the lines in the newstab module I would like the module to mimic more the Yahoo format (the date to the right of the title would be great also!)to save space as in the example below:



What I am able to do so far wastes a great deal of space as you can see from the image below:



or you can go directly to the website www.veniceindianvolleyball.com

Any help would be greatly appreciated...Greg
IP Logged
 Subject :Re:Reducing line-height in News Tab.. 22-08-2010 09:46:59 
boggler
Spiral Scripts Support
Joined: 18-08-2009 10:14:13
Posts: 211
Location
Hi, if you don't like the gap it is quite easy to remove, it just requires a slight modification to the module template, which is in the module file 'modules/mod_newstab/tmpl/default.php'

Just remove or comment out line 29 which is a line break:-

<br style="clear:both" />

That should reduce the gap.

You can also use template overriding if you prefer to leave the module template alone, and do this through your site template, see http://www.spiralscripts.co.uk/Joomla-Tips/using-template-overriding-with-joomla.html


That will make it easier to install future updates of the module without needing to re-edit the module template.
IP Logged
Last Edited On: 22-08-2010 09:48:11 By boggler for the Reason
susan subway boggler
 Subject :Re:Reducing line-height in News Tab.. 22-08-2010 09:58:52 
boggler
Spiral Scripts Support
Joined: 18-08-2009 10:14:13
Posts: 211
Location
I should add that you can move the date by editing the template too, it is slightly more tricky but very possible.

Before you do anything make sure you have a backup of the template.

The code for the date is in lines 20 to 22
Code:
<span class="dateAuthor"><?php echo $item->author; ?> <?php echo $item->created; ?> <?php echo $item->modified; ?></span>

You want to move it so that it is inside line 19, which is the heading. This is a bit more complicated mainly because the code is more complicated.

I suggest putting the date code towards the end, in between the closing </a> tag and the closing tag

ie in
Code:
</a></<?php echo $params->get('headertag','div'); ?>>
Code:
</a><!--put the date code here--></<?php echo $params->get('headertag','div'); ?>>
IP Logged
susan subway boggler
 Subject :Re:Reducing line-height in News Tab.. 22-08-2010 14:03:40 
greg1790
Fresher
Joined: 29-05-2010 19:37:08
Posts: 2
Location
Thank You very much - it worked great!!

I have 2 more question concerning the module

1)How do I add a space before "created:"

2) Use of the space inside the module - the text on the right hand seems either to have a margin or padding - Is this part of your module or is it part of the joomla template but the module below newstab - the twitter goes all the way to the end...


Thank You again...Greg
IP Logged
 Subject :Re:Reducing line-height in News Tab.. 22-08-2010 16:16:37 
boggler
Spiral Scripts Support
Joined: 18-08-2009 10:14:13
Posts: 211
Location
great - glad it worked.

To put a space before 'created' is very simple - just put a space before the date code in the template. Anything in the template is output directly as html (unless it is enclosed in php tags) so any text you add to it, including spaces, will be output directly.

The other question to do with the text being short I think is mainly due to the text extract being a bit too short, you could try increasing the number of characters for the extract using the module 'Char Count' parameter.

Also you could try changing the 'HTML tag for items' module parameter to 'div' rather than 'ul', as web browsers tend to put a bit of padding into list items. But there is nothing in the module css that would put any margin or padding there, so it is basically an issue with your template rather than the module I think.
IP Logged
susan subway boggler
Page # 


Powered by ccBoard


 
 

VirtueMart Featured Products Grid

Switch View

A featured items module that shows selected entries from the SOBI2 business index.

£12.00


*****Now compatible with Joomla 1.6******* A module extension for the the Joomla 1.5 and Joomla 1.6 CMS. It plays a random list of mp3s using the Flash media player.

£12.00
*****Now compatible with Joomla 1.6******* A module extension for the the Joomla 1.5 + 1.6 CMS. It displays a short excerpt from articles in a selected category or section, or from a specified list of articles, with link and optional thumbnail image.

£12.00


This module can be used as a replacement for the Virtuemart featured products, top products, random products or recent products modules. It displays product images as a 3 Dimensional Flash slideshow.

£15.00



 
 

fitness