Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
How Increase Vertical Spacing of Category Listing in Left Column?
Posted: 01 January 2006 04:50 AM   [ Ignore ]  
Summer Student
Total Posts:  10
Joined  2005-12-29

The listing of categories in the left column is too compressed vertically.  I would appreciate it if sometone could point me to the php or css file and element that needs to be edited re this.

Profile
 
 
Posted: 01 January 2006 06:11 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  503
Joined  2005-07-02

Describe the markup that’s being produced: is it linear or in an HTML list?  Are there any classes or id’s associated with the list items?

What you’ll need to do is add a little vertical margin or padding to the list items.  5 pixels would probably do the trick, but with no sample it’s hard to tell.  Perhaps you could provide a link?

 Signature 

– Joseph Bermann
Admin, Deep Thought
EE 1.6.4, Forum 2.0.0

Profile
 
 
Posted: 01 January 2006 06:41 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  10
Joined  2005-12-29

Thanks for responding, but I understand virtually nothing you have said.  I would greatly appreciate your checking the appearance of the category list in left column at http://oreg.org/pm/weblog.php?id=0

Problem is that I cannot find the .css or .php file that controls vertical spacing between these items.

Profile
 
 
Posted: 01 January 2006 06:52 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  503
Joined  2005-07-02

That’s because there are no CSS styles being assigned to them besides those for the regular anchor (a) tag.  You can put some more space around them if you wrap them in paragraph (p) tags.

You’d have to do something like this: {exp:weblog:categories «attributes go here»}<p>«everything that is already there»</p>{/exp:weblog:categories}

Let me know if that helps or not.

EDIT: Also, take out the <br /> tag.  You don’t need it since you’re using paragraph tags.

 Signature 

– Joseph Bermann
Admin, Deep Thought
EE 1.6.4, Forum 2.0.0

Profile
 
 
Posted: 01 January 2006 07:56 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12416
Joined  2002-04-29

You’d have to do something like this: {exp:weblog:categories «attributes go here»}<p>«everything that is already there»</p>{/exp:weblog:categories}

Arden, he’s using pMachine, not ExpressionEngine. smile

It uses a function called weblog_categories.

<?php weblog_categories($id,"weblog","text"); ?>

Here’s some of the code:

// TEXT VERSION OF THE CATEGORY LIST

?>
<a href="<?php echo "$categorylink"; ?>"><?php echo "$category"; ?></a><br />
<?php    
    }
    
if (substr($id, 0, 1) =="C")
    
{
        $link
=  "$pagespath$weblogpage";
        
            if (
$url_rewriting == 1) $link .= '/';
?>
<a href="<?php echo $link; ?>"><?php echo stripslashes($showallblurb); ?></a><br />
<?php
     }
    }
  }
}
// END

It’s found in /pm/lib/category.fns.php.  You could use another <br /> there, or put it inside <p></p> tags.

Seriously, you could use EECore instead, where you have many more options.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 65023 Total Logged-in Users: 0
Total Topics: 82110 Total Anonymous Users: 0
Total Replies: 441266 Total Guests: 11
Total Posts: 523376    
Members ( View Memberlist )
Active Members: