Welcome, Guest
Please Login or Register.    Lost Password?

How to apply CSS to checklist?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to apply CSS to checklist?
#825
How to apply CSS to checklist? 3 Years, 8 Months 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!
mnal
mnal
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#831
Re:How to apply CSS to checklist? 3 Years, 8 Months ago Karma: 9
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.
moensch
moensch
Administrator
Posts: 678
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#835
Re:How to apply CSS to checklist? 3 Years, 8 Months 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.

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!
mnal
mnal
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2024
cyklinowanie 3 Months, 2 Weeks ago Karma: 0
Leneneamype
Leneneamype
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: moensch