RE: Page vs Content Actions & setting page title in actions
"Andy Zeneski" <[email protected]> Thu, 27 Feb 2003 14:23:46 -0500
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
> > Why are page actions defined <page-action></page-action> and
> content actions
> > are defined as <content-action name=""/> it appears that the format is
> > required, but I could be wrong.
>
> The action formats are:
>
> <page-action name=""></page-action>
> <content-action name=""></content-action>
>
I will try this and update all my 'old' style to the new.
> > 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?
-Andy
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf