Page title setting

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

Page title setting

Brad Fuller
Here's a basic question, which I can't find (and Lukas hasn't
implemented it on his site either, so I don't feel too bad)

how do you set a page title? I looked around, but didn't see anything to
set the title in any of the classes.

I'm sure it's gotta be easy....
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Page title setting

Avi  Bryant

On Feb 28, 2006, at 3:34 PM, Brad Fuller wrote:

> Here's a basic question, which I can't find (and Lukas hasn't
> implemented it on his site either, so I don't feel too bad)
>
> how do you set a page title? I looked around, but didn't see  
> anything to
> set the title in any of the classes.
>
> I'm sure it's gotta be easy...

MyComponent>>updateRoot: anHtmlRoot
   anHtmlRoot title: 'My Title'


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

Re: Page title setting

Brad Fuller
Avi Bryant wrote:

>
> On Feb 28, 2006, at 3:34 PM, Brad Fuller wrote:
>
>> Here's a basic question, which I can't find (and Lukas hasn't
>> implemented it on his site either, so I don't feel too bad)
>>
>> how do you set a page title? I looked around, but didn't see anything to
>> set the title in any of the classes.
>>
>> I'm sure it's gotta be easy...
>
> MyComponent>>updateRoot: anHtmlRoot
>   anHtmlRoot title: 'My Title'
>
that seems to override WAPresenter and then my css style goes away.

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

Re: Page title setting

Brad Fuller
Brad Fuller wrote:

> Avi Bryant wrote:
>  
>> On Feb 28, 2006, at 3:34 PM, Brad Fuller wrote:
>>
>>    
>>> Here's a basic question, which I can't find (and Lukas hasn't
>>> implemented it on his site either, so I don't feel too bad)
>>>
>>> how do you set a page title? I looked around, but didn't see anything to
>>> set the title in any of the classes.
>>>
>>> I'm sure it's gotta be easy...
>>>      
>> MyComponent>>updateRoot: anHtmlRoot
>>   anHtmlRoot title: 'My Title'
>>
>>    
> that seems to override WAPresenter and then my css style goes away.
>
> Am I doing this wrong?
duh.. no! (feeling like Homer...) I just forgot how useful "super" was  :-)
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Page title setting

Avi  Bryant
On Feb 28, 2006, at 5:07 PM, Brad Fuller wrote:

>>>
>>> MyComponent>>updateRoot: anHtmlRoot
>>>   anHtmlRoot title: 'My Title'
>>>
>>>
>> that seems to override WAPresenter and then my css style goes away.
>>
>> Am I doing this wrong?
> duh.. no! (feeling like Homer...) I just forgot how useful "super"  
> was  :-)

Sorry, I forgot that part too :)

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

Re: Page title setting

Lukas Renggli
In reply to this post by Brad Fuller
> Here's a basic question, which I can't find (and Lukas hasn't
> implemented it on his site either, so I don't feel too bad)

Well, actually it is not forgotten ;-)

It is just missing for the first request, if you continue browsing it
suddenly appears. This is because the component-tree in Pier is
dynamically instantiated from the model and lazily put into place.
Therefor the first request doesn't get the right #children and the
title gets lost. In the very last version of Pier I have a visitor
passing over the components in the beginning to make it work right
from the start. However I didn't find the time (and a good connection)
to update my server yet.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside