Code of Aida website available

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

Code of Aida website available

Janko Mivšek
Dear all,

Maybe you'll find interested to see the code which runs our website
http://www.aidaweb.si. I just published a Squeak/Pharo port:

        AidaSite-janko.2.mcz
        http://www.squeaksource.com/AidaAddons

A complete script for loading Aida and Scribo as prerequisites then
AidaSite is:

  Gofer new
    squeaksource: 'MetacelloRepository';
    package: 'ConfigurationOfScribo';
    load.

 (Smalltalk at: #ConfigurationOfScribo) load.

  Gofer new
    squeaksource: 'AidaAddons';
    package: 'AidaSite';
    load.

Then run the next script to configure the website:

  AIDASite default styleClass: AidaWebStyle.
  AIDASite default style style: ''.
  AIDASite default userServices
    at: #SiteContent
    put: (AidaWebSiteContent newOn: AIDASite default).
  AIDASite default
    register: AIDASite default siteContent firstPage
    onUrl: '/'.

Open http://localhost:8888 and login as admin/password.


See how styling of tis site is done. Both basic HTML layout and
CSS+images are located in AidaWebStyle. That way you can design your
site as you wish and it can still run from the same image as all others.
This is a main reason and power of separate WebStyle subclass.

Best regards
Janko

--
Janko Mivšek
Aida/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Code of Aida website available

Martin Polák
Thank Janko,

this could be very useful for those designing some real world sites.

Martin


15. 8. 2011 v 12:16, Janko Mivšek:

> Dear all,
>
> Maybe you'll find interested to see the code which runs our website
> http://www.aidaweb.si. I just published a Squeak/Pharo port:
>
> AidaSite-janko.2.mcz
> http://www.squeaksource.com/AidaAddons
>
> A complete script for loading Aida and Scribo as prerequisites then
> AidaSite is:
>
>  Gofer new
>    squeaksource: 'MetacelloRepository';
>    package: 'ConfigurationOfScribo';
>    load.
>
> (Smalltalk at: #ConfigurationOfScribo) load.
>
>  Gofer new
>    squeaksource: 'AidaAddons';
>    package: 'AidaSite';
>    load.
>
> Then run the next script to configure the website:
>
>  AIDASite default styleClass: AidaWebStyle.
>  AIDASite default style style: ''.
>  AIDASite default userServices
>    at: #SiteContent
>    put: (AidaWebSiteContent newOn: AIDASite default).
>  AIDASite default
>    register: AIDASite default siteContent firstPage
>    onUrl: '/'.
>
> Open http://localhost:8888 and login as admin/password.
>
>
> See how styling of tis site is done. Both basic HTML layout and
> CSS+images are located in AidaWebStyle. That way you can design your
> site as you wish and it can still run from the same image as all others.
> This is a main reason and power of separate WebStyle subclass.
>
> Best regards
> Janko
>
> --
> Janko Mivšek
> Aida/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida