Hi Josias,
[EMAIL PROTECTED] wrote:
* @see org.apache.lenya.cms.publication.Document#getName()
*/
public String getName() {
- String[] ids = getId().split("/");
- String nodeId = ids[ids.length - 1];
-
- return nodeId;
+ try {
+ return getLink().getNode().getName();
+ } catch (DocumentException e) {
+ throw new RuntimeException(e);
+ }
thanks for the fix!
Maybe we should deprecate this method, or is it convenient
enough that the document acts as a facade to the site structure
information?
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]