Seaside menus

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

Seaside menus

Miguel Enrique Cobá Martínez
I have uploaded a new example to the SeasideExamples package on SqueakSource called MenuDemo. It is similar to Phillip Marschal's one called MenuExample, but mine doesn't use Announcements. It only shows how to swap pages in the content part of the page as response to the clicks on the menu.
Very simple, I know, but it was an excercise on building menus the Seaside way.

A more detailed explanation can be found in http://blog.leugim.com.mx/index.php/2008/01/03/seaside-menus/

Cheers,
Miguel Cobá


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside menus

Philippe Marschall
Hi

Sorry but your example is bugged. As the contents of MDMain change
over time they need to be backtracked.

in Seaside 2.8 you would do.
states
    ^Array with: self

in Seaside 2.7 or older you would to.

initialize
        super initialize.
        self session registerObjectForBacktracking: self
        "more initialize code"
        ....

Cheers
Philippe

2008/1/4, Miguel Cobá <[hidden email]>:

> I have uploaded a new example to the SeasideExamples package on SqueakSource
> called MenuDemo. It is similar to Phillip Marschal's one called MenuExample,
> but mine doesn't use Announcements. It only shows how to swap pages in the
> content part of the page as response to the clicks on the menu.
> Very simple, I know, but it was an excercise on building menus the Seaside
> way.
>
> A more detailed explanation can be found in
> http://blog.leugim.com.mx/index.php/2008/01/03/seaside-menus/
>
> Cheers,
> Miguel Cobá
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside menus

Sophie424
In reply to this post by Miguel Enrique Cobá Martínez
SeasideExamples is a very nice resource. Would it be possible to
1. give all examples a common category prefix (so they are grouped better,
at least in some browsers)
2. have a single MC package which somehow included all the examples (not
sure how, or if 1 would do this automatically).

Many thanks,

Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside menus

Miguel Enrique Cobá Martínez
In reply to this post by Philippe Marschall


On Jan 4, 2008 3:26 PM, Philippe Marschall <[hidden email]> wrote:
Hi

Sorry but your example is bugged. As the contents of MDMain change
over time they need to be backtracked.

Thank you very much, I have fixed the code and uploaded a new version to SqueakSource.

 

in Seaside 2.8 you would do.
states
   ^Array with: self

in Seaside 2.7 or older you would to.

initialize
       super initialize.
       self session registerObjectForBacktracking: self
       "more initialize code"
       ....

Cheers
Philippe

2008/1/4, Miguel Cobá <[hidden email]>:
> I have uploaded a new example to the SeasideExamples package on SqueakSource

> called MenuDemo. It is similar to Phillip Marschal's one called MenuExample,

This should  be:

called MenuDemo. It is similar to Philippe Marschall's one called MenuExample

I have also fixed your name in the code comments, too. I apologize for that.

Regards,
Miguel Cobá



> but mine doesn't use Announcements. It only shows how to swap pages in the
> content part of the page as response to the clicks on the menu.
> Very simple, I know, but it was an excercise on building menus the Seaside
> way.
>
> A more detailed explanation can be found in
> http://blog.leugim.com.mx/index.php/2008/01/03/seaside-menus/
>
> Cheers,
> Miguel Cobá
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>

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



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