Composing a menu+canvas layout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Composing a menu+canvas layout

Boris Popov, DeepCove Labs (SNN)
Hey,

Being a seaside newb that I am, was wondering if you could provide some
hints as to how I would go about composing a layout that has a menu pane on
the left and working canvas on the right. Composing is in terms of seaside
components, not actual CSS layout, of course. Something along the lines of,

|------------------|
|     Header       |
|------------------|
| Home     | .0.0. |
| Register | ..0.. |
| Login    | .0.0. |
| FAQ      | ..0.. |
|----------|-------|

At the moment I have a 'main' component with 3 #children: header, menu,
canvas. Questions,

1. Placing a link inside a canvas component with 'self call: OtherComponent
new' works just fine, the canvas is replaced with OtherComponent, how do I
do that from the left pane though? It seems weird having to talk to the
parent and ask it to replace the canvas component from the menu, but maybe
it just me?

2. If I navigate to Login component from within the canvas, how would I get
my menu to display the 'Login' with an emphasis on it being 'selected'?

It seems that tight coupling in unavoidable here, but I'm fishing for hints
and people's experiences with how they went about doing this type of thing.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Composing a menu+canvas layout

Boris Popov, DeepCove Labs (SNN)
I just found the WASimpleNavigation, I guess I could go a similar route by
making my canvas a child of the menu instead.

|-------------------|
|     Header        |
|-------------------|
|                   |
|          |-------||
| Home     | .0.0. ||
| Register | ..0.. ||
| Login    | .0.0. ||
| FAQ      | ..0.. ||
|          |-------||
|                   |
|----------|--------|

Then obviously menu knows its selection, and it can certainly replace its
own child on navigation events. As far as changing the selection when inside
component call:'s another component, I guess I could look for these things
when menu is rendering? Say you navigate to Register component by clicking
on the menu, menu knows it has Register currently selected, but then you
navigate to Login by clicking on a link within Register, is it the right
thing to do to check for these kinds of things from inside the menu every
time or is there a better way?

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Boris Popov
Sent: Tuesday, May 23, 2006 12:38 PM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: [Seaside] Composing a menu+canvas layout

Hey,

Being a seaside newb that I am, was wondering if you could provide some
hints as to how I would go about composing a layout that has a menu pane on
the left and working canvas on the right. Composing is in terms of seaside
components, not actual CSS layout, of course. Something along the lines of,

|------------------|
|     Header       |
|------------------|
| Home     | .0.0. |
| Register | ..0.. |
| Login    | .0.0. |
| FAQ      | ..0.. |
|----------|-------|

At the moment I have a 'main' component with 3 #children: header, menu,
canvas. Questions,

1. Placing a link inside a canvas component with 'self call: OtherComponent
new' works just fine, the canvas is replaced with OtherComponent, how do I
do that from the left pane though? It seems weird having to talk to the
parent and ask it to replace the canvas component from the menu, but maybe
it just me?

2. If I navigate to Login component from within the canvas, how would I get
my menu to display the 'Login' with an emphasis on it being 'selected'?

It seems that tight coupling in unavoidable here, but I'm fishing for hints
and people's experiences with how they went about doing this type of thing.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

smime.p7s (4K) Download Attachment