Home Forum |
Re:How to apply CSS to checklist? (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Re:How to apply CSS to checklist?
|
mnal (User)
Fresh Boarder
Posts: 15
|
|
How to apply CSS to checklist? 4 Months, 3 Weeks ago
|
Karma: 0
|
By default the menu appears like this, with no style.
| Code: |
$i = 1;
$links = array(
"sign_up" => array(
"text" => $l->m("sign_up"),
"url" => $mosConfig_live_site."/index.php?option=com_registration&task=register"),
"enrol_for_event" => array(
"text" => $l->m("enrol_for_event"),
"url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=enrol&eventid=".$event->id),
"pay" => array(
"text" => $l->m("pay"),
"url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=details&eventid=".$event->id."#financial"),
"get_seat" => array(
"text" => $l->m("get_seat"),
"url" => $mosConfig_live_site."/index.php?option=com_mls_seatmap&eventid=".$event->id),
"create_teams" => array(
"text" => $l->m("create_teams"),
"url" => $mosConfig_live_site."/index.php?option=com_mls_teams"),
"enrol_for_tournaments" => array(
"text" => $l->m("enrol_for_tournaments"),
"url" => $mosConfig_live_site."/index.php?option=com_mls_tournaments&eventid=".$event->id)
);
?>
|
When I try to add style to the links, nothing works.
| Code: |
$i = 1;
$links = array(
"sign_up" => array(
"text" => $l->m("sign_up"),
"class" => "mainlevel",
"url" => $mosConfig_live_site."/index.php?option=com_registration&task=register"),
"enrol_for_event" => array(
"text" => $l->m("enrol_for_event"),
"class" => "mainlevel",
"url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=enrol&eventid=".$event->id),
"pay" => array(
"text" => $l->m("pay"),
"class" => "mainlevel",
"url" => $mosConfig_live_site."/index.php?option=com_mls_events&task=details&eventid=".$event->id."#financial"),
"get_seat" => array(
"text" => $l->m("get_seat"),
"class" => "mainlevel",
"url" => $mosConfig_live_site."/index.php?option=com_mls_seatmap&eventid=".$event->id),
"create_teams" => array(
"text" => $l->m("create_teams"),
"class" => "mainlevel",
"url" => $mosConfig_live_site."/index.php?option=com_mls_teams"),
"enrol_for_tournaments" => array(
"text" => $l->m("enrol_for_tournaments"),
"class" => "mainlevel",
"url" => $mosConfig_live_site."/index.php?option=com_mls_tournaments&eventid=".$event->id)
);
?>
|
Am I doing this the wrong way? Please help!
Thanks!
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:How to apply CSS to checklist? 4 Months, 3 Weeks ago
|
Karma: 13
|
|
You are doing it in the wrong place. You just add a value to the PHP Data arrays, but are not displaying it anywhere in the HTML code. Look further down where the <table> begins and add your class straight there.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
mnal (User)
Fresh Boarder
Posts: 15
|
|
Re:How to apply CSS to checklist? 4 Months, 2 Weeks ago
|
Karma: 0
|
I was inputing that code everywhere I could to see its effect. That was the last location that I tried. The correct line is here.
| Code: |
<tr align="left" class="mainlevel"><td><?=$i.". "; ?><?=$linkpre;?><?=$text;?><?=$linkpost;?></td></tr>
|
But the thing is that no matter what I do, I will not be able to do what I want. The second and third replies to this post demonstrate my problems.
http://forum.mamboserver.com/showthread.php?t=10676
Off hand would you happen to know of a work around? There solutions don't see to work... links are dead.
Thanks for the speedy reply!
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|