|
|
|
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 |   | |
|
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 ? "&Itemid=" . (int) $itemid : "";
$i = ($i==1) ? 2 : 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?
|
|
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 |   | |
|
Gosh I feel silly. To change sectiontable entry to another class, just change | Code: | class=\"sectiontableentry$i\
| to for example
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!
|
|
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 |   | |
|
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
|
|
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 |   | |
|
|
great post
|
|
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:
|
|
|
Karma: 3  
|
|
Junior Joomlapolitan  | Posts: 43 |   | |
|
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..????
|
|
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 |   | |
|
|
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.
|
|
The administrator has disabled public write access. |
|
|