Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Re:Ho do i change "sectiontableentry" to a new class?
Date: 2006/12/06 18:33 By: Switch Status: User  
Karma: 11  
Expert Joomlapolitan

Posts: 151
graphgraph
What would I do in this case, if I didn't want to edit my main template, but instead wanted to add new css, such as .roweven and .rowodd for alternating rows. The following code tells the mablog which id to chose, but I want it use use my new css attributes.

Code:

                 if($mosConfig_hits) {                     $return .= "<th>".$this->_writeSortByLink($pagingParams,"entries_","hits",_UE_ARTICLEHITS)."</th>";                 }                 $return .= "</tr>";                 $i 2;                 foreach($items as $item) {                     if (is_callable( array( $mainframe"getItemid" ) ) ) {                         $itemid    $mainframe->getItemid$item->id );                     } elseif (is_callable"JApplicationHelper::getItemid" ) ) {                         $itemid    JApplicationHelper::getItemid$item->id );                     } else {                         $itemid null;                     }                     $itemidtxt    $itemid "&amp;Itemid=" . (int) $itemid "";                     $i = ($i==1) ? 1;                     $return .= "<tr class=\"sectiontableentry$i\"><td><a href=\"".$artURL.$item->id.$itemidtxt."\">".$item->title."</a></td>"                             "<td>".mosFormatDate($item->created)."</td>";                     if($mosConfig_hits$return.= "<td>".$item->hits."</td>\n";                     $return .= "</tr>\n";                 }



Does anyone knowhow to acheive this?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Ho do i change "sectiontableentry" to a new class?
Date: 2006/12/06 18:41 By: Switch Status: User  
Karma: 11  
Expert Joomlapolitan

Posts: 151
graphgraph
Gosh I feel silly. To change sectiontable entry to another class, just change
Code:

 class=\"sectiontableentry$i\

to for example
Code:

 class=\"row$i\



Now, i couldn't use .roweven and .row odd, I used .row1 and .row2

Simply create thse css attribute in your css, eg
Code:

 .row1{     background#E9EBF4;     color#000000;     border-bottom:1px solid #EEEEEE; } .row2{     background#FFFFFF;     color#000000;     border-bottom:1px solid #EEEEEE; }



Easy as pie!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Ho do i change "sectiontableentry" to a new class?
Date: 2006/12/15 17:00 By: goofy001 Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 4
graphgraph
I cheated, I just set both of them to the same background color. One day will actually change the class being used and stop being lazy
Click here to see the profile of this user The administrator has disabled public write access.

Re:Ho do i change "sectiontableentry" to a new cla
Date: 2007/01/22 11:51 By: bary Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
great post
Click here to see the profile of this user The administrator has disabled public write access.

Re:Ho do i change "sectiontableentry" to a new class?
Date: 2007/03/09 10:37 By: simon Status: CB Doc subscriber  
Karma: 3  
Junior Joomlapolitan

Posts: 43
graphgraph
Strange one here...

Has to do with the styling of the registration form..

Changed the styling of the td .delimiterCell bij adding this to my CSS

table#registrationTable .delimiterCell {
font-family:verdana;
font-weight:bold;
color:#999999;
font-size:1.0em;
padding-bottom:5px;
padding-top:10px;
}

Did the trick...
Did the same thing to the td . titleCell

table#registrationTable .titleCell {
font-family:verdana;
color:#999999;
font-size:1.0em;
padding-bottom:10px;
}

But is does not work..????
Click here to see the profile of this user The administrator has disabled public write access.

Re:Ho do i change "sectiontableentry" to a new cla
Date: 2007/03/22 22:00 By: PretenderMP Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
my question is rather similar.. I just want the userlist to have the standard sectiontableentry1 and 2 css, but in the profile plugin I want other colours. It seems impossible to change. For instance the table with the user details has the sectiontableentry css, but I want different colour for that. I tried everything, including the $row thing, but without success.
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login