Re: Page vs Content Actions & setting page title in actions
Anthony Eden <[email protected]> Thu, 27 Feb 2003 14:37:47 -0500
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
Andy Zeneski wrote:
>>>I am attempting to call Page.setTitle() from inside either a
>>
>>page or content
>>
>>>action, but nothing seems to happen, how can I set the page name from an
>>>action?
>>
>>The get/set Title methods are old and are deprecated. I can
>>remove them from JPublish 2.0 if no one objects. Instead you
>>should set a named property. Keep in mind that case-sensitivity
>>may matter, so a property "title" is different than "Title".
>
> Umm.. setProperty() is a private method and not accessible. setTitle() seems
> to set the property named 'title', which is the one I would set. Since my
> template says ${page.title} Which is returning the value <property
> name="title">Category Page</property>
>
> What am I missing?
Doh! Actually, you are missing nothing, that one is all me. I will make those methods public. Just so you know the change will only be for the current request, it will not be permanent.
Sincerely,
Anthony Eden
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf