# |
Aug 6th 2008, 20:02 |
batcoder-7 |
polerin: yea |
# |
Aug 6th 2008, 20:01 |
polerin |
and you can just specify multiples of those and only use one style :) |
# |
Aug 6th 2008, 20:00 |
batcoder-7 |
ah |
# |
Aug 6th 2008, 19:57 |
polerin |
body.items.detail #menu .itemsdetails { background: #bbb; } |
# |
Aug 6th 2008, 19:56 |
batcoder-7 |
i dont get how the body class would be abel to mess with a style of the current tab/ link |
# |
Aug 6th 2008, 19:54 |
polerin |
then in your css just have a rule for how ever detaild you need it to be |
# |
Aug 6th 2008, 19:53 |
polerin |
you could say <body class="items details"> |
# |
Aug 6th 2008, 19:53 |
polerin |
if you were in Items details |
# |
Aug 6th 2008, 19:53 |
polerin |
set the class on your body tag |
# |
Aug 6th 2008, 19:53 |
polerin |
that's actually really easy |
# |
Aug 6th 2008, 19:52 |
batcoder-7 |
polerin: i need to highlight each link that the page is on as well, like change the class to current |
# |
Aug 6th 2008, 19:51 |
polerin |
or whatever is neccisary given your division of main menu items |
# |
Aug 6th 2008, 19:51 |
polerin |
then check $this->controller or $this->action |
# |
Aug 6th 2008, 19:51 |
polerin |
array('mainPage1'=>array('submenu item 1' => '/foo/bar/1', 'submenu item 2' => '/foo/bar/whatever')); |
# |
Aug 6th 2008, 19:50 |
Hedz |
wrong person probably |
# |
Aug 6th 2008, 19:50 |
Hedz |
? |
# |
Aug 6th 2008, 19:50 |
polerin |
batcoder-7: if that's all, then build an array of submenu's |
# |
Aug 6th 2008, 19:49 |
polerin |
Hedz: you still need to figure out what page he's on, and that's done from inside cake more easily |
# |
Aug 6th 2008, 19:49 |
polerin |
ACTION blinks |
# |
Aug 6th 2008, 19:49 |
Hedz |
batcoder-7 js |
# |
Aug 6th 2008, 19:48 |
batcoder-7 |
polerin: if you had to do it for a simple 5 main top level links and each one of those had about 5 2nd level links, no special things or anything, what way would you go about doing it ? |
# |
Aug 6th 2008, 19:43 |
Ins|de |
so, sessions sound me better |
# |
Aug 6th 2008, 19:42 |
Ins|de |
i previously had problems with referrer |
# |
Aug 6th 2008, 19:42 |
polerin |
Ins|de: you can check the referrer, but that's not a 100% answer |
# |
Aug 6th 2008, 19:42 |
Ins|de |
Hedz, that's another option |
# |
Aug 6th 2008, 19:41 |
Ins|de |
polerin, no, just for an action on a list of items, because i would like to implement calls for i outside the list, and i would like it returns to the same location, i thought it maybe has and implementation elsewhere inside the cake :) |
# |
Aug 6th 2008, 19:41 |
polerin |
etc |
# |
Aug 6th 2008, 19:41 |
polerin |
is it going to change often |
# |
Aug 6th 2008, 19:41 |
polerin |
is it determined on a per user basis |
# |
Aug 6th 2008, 19:41 |
polerin |
batcoder-7: yes, basicly you need to figure out how to hand your view the correct array of submenu items, what the best way depends on a whole bunch of factors |
# |
Aug 6th 2008, 19:40 |
batcoder-7 |
polerin: i think so, and if not hopefylly ie8 hehe |
# |
Aug 6th 2008, 19:40 |
batcoder-7 |
polerin: you got any ideas on the *best* way to go about doing this having 2 tier menu etc, there will need ot be some kind of php interaction with it to determine what page etc i am on |
# |
Aug 6th 2008, 19:40 |
polerin |
batcoder-7: I'm not sure IE 7 fixed that :/ |
# |
Aug 6th 2008, 19:39 |
Hedz |
Ins|de look for referer |
# |
Aug 6th 2008, 19:39 |
batcoder-7 |
polerin: no one likes ie6 anyways hehehe |
# |
Aug 6th 2008, 19:39 |
polerin |
Ins|de: is this a login action? |
# |
Aug 6th 2008, 19:39 |
polerin |
Ins|de: you'd have to save the action in the session |
# |
Aug 6th 2008, 19:39 |
Ins|de |
is it possible to get the last action requested? not $this->action, the previous called action |
# |
Aug 6th 2008, 19:38 |
polerin |
Hedz: if nothing else you can use $_SESSION, but it still sounds like a bad idea to me **shrugs** |
# |
Aug 6th 2008, 19:38 |
batcoder-7 |
ah |
# |
Aug 6th 2008, 19:38 |
polerin |
) |