[aida] web visibility

Nicholas Moore nicholas.moore at tsr-i.com
Mon Jul 23 15:22:34 CEST 2007


Dave,
Thanks. The Forum and News are easy. The Forum is simply the Discussions
App rebadged. I have subclassed WebStyle as Janko recommends and then
the viewMain for each app begins, for example:

e := WebElement new.
self session parent site style
headerAddTabs: e
selected: 3
label: 'Forum'.

this calls:

C4cncWebStyle >>headerAddTabs: anElement selected: aNumber label: aLabel
| anE newOC |
newOC := OrderedCollection new.
anE := WebElement new addText: aLabel attributes: #bold.
newOC add: anE.
anElement add: ((WebTabs new)
addLinkTo: './centre.html' text: 'Home';
addLinkTo: './wiki.html' text: 'Wiki';
addLinkTo: './discussions.html' text: 'Forum';
addLinkTo: './news.html' text: 'News';
addLinkTo: './search.html' text: 'Search';
selected: aNumber).
(anElement elements first elements at: aNumber) initElements elements
add: anE.
anElement addNbSp.
^anElement



headerAddTabs: anElement selected: aNumber label: aLabel
| anE newOC |
newOC := OrderedCollection new.
anE := WebElement new addText: aLabel attributes: #bold.
newOC add: anE.
anElement add: ((WebTabs new)
addLinkTo: './centre.html' text: 'Home';
addLinkTo: './wiki.html' text: 'Wiki';
addLinkTo: './discussions.html' text: 'Forum';
addLinkTo: './news.html' text: 'News';
addLinkTo: './search.html' text: 'Search';
selected: aNumber).
(anElement elements first elements at: aNumber) initElements elements
add: anE.
anElement addNbSp.
^anElement

The Wiki is a Kludge because I wanted to get the concept going quickly
to show colleagues (quelle surprise!!) and have not yet had time to work
on the Wiki capacities offered by AIDA. I have loaded the standard VW
WikiWorks parcel and have that running in the same image. I have created
a 'Wiki' object and a 'WikiApp' as usual, but the only thing the WikiApp
viewMain does to redirect the browser like this:

viewMain
| e |
self title: 'Spectral Wiki'.
e := WebElement new.
self session parent site style
headerAddTabs: e
selected: 2
label: 'Wiki'.
e add: ((WebIFrame new)
src: 'http://www.c4cnc.org:57575/The+Spectral+Resource+Wiki';
frameBorder: 0;
size: 650 @ 700).
self pageFrameWith: e title: self title

This is neither terribly robust nor very elegant, but it is functional.
WikiWorks is a sort of halfway house between static pages and AIDA. I
much prefer the AIDA approach and at some point would like to develop
the AIDA wiki app further.

An important method is: WebStyle >> pageFrameWith: aWebElement wide:
aWideElement title: aTitleString
This sets your basic page layout - calling in the header and navigation
bars for top and left side. Each of your application page methods (like
viewMain) create a WebElement according to what you want them to
display. They then call the above method, passing their element as
aWideElement. At which point your page is ready to go.

About the admin login, check out WebStyle >> navBarLogin or WebAdminApp
>> viewLogin for some ideas. In general you can tinker around with the
WebStyle >> navigationBarElement to determine what is or is not visible
in the navigationBar.

Hope this helps, I am working on a personal web site (where I can rant
in a blog!) and have incorporated some of Janko's Ajax stuff. Looks
really good. I am now a big fan of AIDA and highly recommend it.

Regards

Nicholas

Dave Cope wrote:
> Nicholas,
>
> Nice site. Didn't need to log in to see it. I've just started to use 
> AIDA in evaluation for an intra/extra and possibly public web site. I 
> would be very interested to hear how you implemented the Wiki/Forum/News 
> sections. Was it difficult? Is there any built in support in AIDA for those?
>
> Also, the side bar has an admin login link. Is there a way of hiding 
> that? How does one override the base AIDA page that appears if you 
> follow the tutorial.
>
> Sorry for all the questions. Any tips gratefully received. Thanks.
>   

-- 

*Nicholas J Moore*
+44 7786 063 333
+33 555 092 140
+33 682 904 357
*TSR International
*Thought Leaders in Communication & Complexity
www.TSR-i.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20070723/0ffd5209/attachment.htm 


More information about the Aida mailing list