Text in Header

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

Text in Header

Brad Fuller
(I sent this to the [hidden email] mailing list but it never
showed up in my email. Don't know if the server is down.)

Is there a way to easily change the text in the header of Pier to
something different than the object created? When editing the
environment/header I just receive the option to change the component
type and it's name. Obviously, the concept is lost on me.

brad


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

Re: Text in Header

Brad Fuller
Brad Fuller wrote:
> (I sent this to the [hidden email] mailing list but it never
> showed up in my email. Don't know if the server is down.)
>
> Is there a way to easily change the text in the header of Pier to
> something different than the object created? When editing the
> environment/header I just receive the option to change the component
> type and it's name. Obviously, the concept is lost on me.
>  
I tried this from an old Lukas email:

"If you only want to change the title of the site this is even simpler.
Open up your web-browser, browse to 'Environment', then 'Header', hit
'Settings' and change the title field from '%k' (the name of the
current *k*ernel) to something else."

I can easily change the method to change the text
(PRHeaderWidget>>defaultTitle), but, I receive an error if I follow his
instructions above:

MessageNotUnderstood: ByteSymbol>>asComponentOn:
ByteSymbol(Object)>>doesNotUnderstand: #asComponentOn:self  
#PRHeaderWidget
temps
aMessage    asComponentOn: a PRComponentSettings

PRComponentSettings(Object)>>asComponentself    a PRComponentSettings
temps
inst vars
properties    nil
context    a PRContext stucture: 'Header' command: 'Settings'
answer    nil
settings    nil

PRComponentSettings(PRCommand)>>asComponentself    a PRComponentSettings
temps
inst vars
properties    nil
context    a PRContext stucture: 'Header' command: 'Settings'
answer    nil
settings    nil

PRContentsWidget>>buildComponent:self    a PRContentsWidget
temps
aContext    a PRContext stucture: 'Header' command: 'Settings'
value    nil
inst vars
decoration    a WAStateHolder(a PRContentsWidget)
properties    a Dictionary()
context    a PRContext stucture: 'Header' command: 'Settings'
component    a PRDefaultView

PRContentsWidget>>onChangeContext:self    a PRContentsWidget
temps
aContext    a PRContext stucture: 'Header' command: 'Settings'
inst vars
decoration    a WAStateHolder(a PRContentsWidget)
properties    a Dictionary()
context    a PRContext stucture: 'Header' command: 'Settings'
component    a PRDefaultView

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

Re: Re: Text in Header

Lukas Renggli
> > (I sent this to the [hidden email] mailing list but it never
> > showed up in my email. Don't know if the server is down.)

I only noticed today that the mailing lists seem to be down. I already
sent a mail to the administrator, and hope that he can fix it fast.
Sorry for the inconvenience.

> I tried this from an old Lukas email:
>
> "If you only want to change the title of the site this is even simpler.
> Open up your web-browser, browse to 'Environment', then 'Header', hit
> 'Settings' and change the title field from '%k' (the name of the
> current *k*ernel) to something else."

This is odd, following my instructions it works for me. What version
of Pier are you using? The image I have here is Pier-Model-lr.87 and
Pier-Seaside-lr.82.

Cheers,
Lukas

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

Re: Text in Header

keith1y
In reply to this post by Brad Fuller
Brad Fuller wrote:

> (I sent this to the [hidden email] mailing list but it never
> showed up in my email. Don't know if the server is down.)
>
> Is there a way to easily change the text in the header of Pier to
> something different than the object created? When editing the
> environment/header I just receive the option to change the component
> type and it's name. Obviously, the concept is lost on me.
>
> brad
>  
Dear Brad,

the text that appears in the header of Pier is the name of the kernel
that you are currently serving. Therefore the easiest way to change the
text is to change the name of the kernel.

If you are by any chance using my latest versions from the pier
repository then I have provided a Control Panel in which you can rename
kernels from the seaside ui.

The control panel appears as a link 'pier' in the dispatcher
configuration editor /seaside/config i.e. 'pier   configure remove pier'

If you are not using my latest versions, and you are not using
PRMagmaPersistency then the code to rename a kernel is:

(PRKernel instanceNamed: 'oldname') name: 'newName'

best regards

Keith
Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Text in Header

Brad Fuller
Keith Hodges wrote:

> Brad Fuller wrote:
>> (I sent this to the [hidden email] mailing list but it never
>> showed up in my email. Don't know if the server is down.)
>>
>> Is there a way to easily change the text in the header of Pier to
>> something different than the object created? When editing the
>> environment/header I just receive the option to change the component
>> type and it's name. Obviously, the concept is lost on me.
>>
>> brad
>>  
> Dear Brad,
>
> the text that appears in the header of Pier is the name of the kernel
> that you are currently serving. Therefore the easiest way to change
> the text is to change the name of the kernel.
>
> If you are by any chance using my latest versions from the pier
> repository then I have provided a Control Panel in which you can
> rename kernels from the seaside ui.
>
> The control panel appears as a link 'pier' in the dispatcher
> configuration editor /seaside/config i.e. 'pier   configure remove pier'
>
> If you are not using my latest versions, and you are not using
> PRMagmaPersistency then the code to rename a kernel is:
>
> (PRKernel instanceNamed: 'oldname') name: 'newName'
Thanks Keith, that control panel could come in handy.

For me, I think the text in the header should be separate from the
kernel name. I followed Lukas's old email advice and changed the
PRHeaderWidget>>defaultTitle method to return the name I wished instead
of the kernel name.

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

Re: Text in Header

keith1y
Brad Fuller wrote:

> Keith Hodges wrote:
>  
>> Brad Fuller wrote:
>>    
>>> (I sent this to the [hidden email] mailing list but it never
>>> showed up in my email. Don't know if the server is down.)
>>>
>>> Is there a way to easily change the text in the header of Pier to
>>> something different than the object created? When editing the
>>> environment/header I just receive the option to change the component
>>> type and it's name. Obviously, the concept is lost on me.
>>>
>>> brad
>>>  
>>>      
>> Dear Brad,
>>
>> the text that appears in the header of Pier is the name of the kernel
>> that you are currently serving. Therefore the easiest way to change
>> the text is to change the name of the kernel.
>>
>> If you are by any chance using my latest versions from the pier
>> repository then I have provided a Control Panel in which you can
>> rename kernels from the seaside ui.
>>
>> The control panel appears as a link 'pier' in the dispatcher
>> configuration editor /seaside/config i.e. 'pier   configure remove pier'
>>
>> If you are not using my latest versions, and you are not using
>> PRMagmaPersistency then the code to rename a kernel is:
>>
>> (PRKernel instanceNamed: 'oldname') name: 'newName'
>>    
> Thanks Keith, that control panel could come in handy.
>
> For me, I think the text in the header should be separate from the
> kernel name. I followed Lukas's old email advice and changed the
>  
Agreed. This is the kind of configuration that I think could be moved
into the environment.

I cheated I just replaced the entire header widget with a picture.


Keith
Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Text in Header

Brad Fuller
Keith Hodges wrote:

> Brad Fuller wrote:
>> Keith Hodges wrote:
>>  
>>> Brad Fuller wrote:
>>>    
>>>> (I sent this to the [hidden email] mailing list but it never
>>>> showed up in my email. Don't know if the server is down.)
>>>>
>>>> Is there a way to easily change the text in the header of Pier to
>>>> something different than the object created? When editing the
>>>> environment/header I just receive the option to change the component
>>>> type and it's name. Obviously, the concept is lost on me.
>>>>
>>>> brad
>>>>        
>>> Dear Brad,
>>>
>>> the text that appears in the header of Pier is the name of the kernel
>>> that you are currently serving. Therefore the easiest way to change
>>> the text is to change the name of the kernel.
>>>
>>> If you are by any chance using my latest versions from the pier
>>> repository then I have provided a Control Panel in which you can
>>> rename kernels from the seaside ui.
>>>
>>> The control panel appears as a link 'pier' in the dispatcher
>>> configuration editor /seaside/config i.e. 'pier   configure remove
>>> pier'
>>>
>>> If you are not using my latest versions, and you are not using
>>> PRMagmaPersistency then the code to rename a kernel is:
>>>
>>> (PRKernel instanceNamed: 'oldname') name: 'newName'
>>>    
>> Thanks Keith, that control panel could come in handy.
>>
>> For me, I think the text in the header should be separate from the
>> kernel name. I followed Lukas's old email advice and changed the
>>  
> Agreed. This is the kind of configuration that I think could be moved
> into the environment.
>
> I cheated I just replaced the entire header widget with a picture.
Can you tell me what you did exactly? That sounds like something I could
use.

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

Re: Text in Header

Jason Johnson-3
What I personally did was I just changed the title to have a <span/>
around it, and put a picture in with a style sheet.  So with a modern
browser like Mozilla (relatively speaking) the user can select different
styles if he wants and all the pictures will change site wide.


Brad Fuller wrote:

> Keith Hodges wrote:
>  
>> Brad Fuller wrote:
>>    
>>> Keith Hodges wrote:
>>>  
>>>      
>>>> Brad Fuller wrote:
>>>>    
>>>>        
>>>>> (I sent this to the [hidden email] mailing list but it never
>>>>> showed up in my email. Don't know if the server is down.)
>>>>>
>>>>> Is there a way to easily change the text in the header of Pier to
>>>>> something different than the object created? When editing the
>>>>> environment/header I just receive the option to change the component
>>>>> type and it's name. Obviously, the concept is lost on me.
>>>>>
>>>>> brad
>>>>>        
>>>>>          
>>>> Dear Brad,
>>>>
>>>> the text that appears in the header of Pier is the name of the kernel
>>>> that you are currently serving. Therefore the easiest way to change
>>>> the text is to change the name of the kernel.
>>>>
>>>> If you are by any chance using my latest versions from the pier
>>>> repository then I have provided a Control Panel in which you can
>>>> rename kernels from the seaside ui.
>>>>
>>>> The control panel appears as a link 'pier' in the dispatcher
>>>> configuration editor /seaside/config i.e. 'pier   configure remove
>>>> pier'
>>>>
>>>> If you are not using my latest versions, and you are not using
>>>> PRMagmaPersistency then the code to rename a kernel is:
>>>>
>>>> (PRKernel instanceNamed: 'oldname') name: 'newName'
>>>>    
>>>>        
>>> Thanks Keith, that control panel could come in handy.
>>>
>>> For me, I think the text in the header should be separate from the
>>> kernel name. I followed Lukas's old email advice and changed the
>>>  
>>>      
>> Agreed. This is the kind of configuration that I think could be moved
>> into the environment.
>>
>> I cheated I just replaced the entire header widget with a picture.
>>    
> Can you tell me what you did exactly? That sounds like something I could
> use.
>
> _______________________________________________
> 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