Jann Forrer wrote:
[...]
I don't mind if I write
node.isVisibleInNav()
I still have an open task to add a method getVisibleInNav() in order to
use the existing value of the Visible_in_nav attribute if a new language
is created otherwise the node beomces visible again. Or is that already
solved?
Do you mean that?
Author: andreas
Date: Wed Jan 18 03:19:15 2006
New Revision: 370125
--- lenya/trunk/src/java/org/apache/lenya/cms/site/SiteManager.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/SiteManager.java Wed Jan 18
+ /**
+ * Returns the visibility of a node in the navigation.
+ *
+ * @param document The document.
+ * @return A boolean value.
+ * @throws SiteException if an error occurs.
+ */
+ boolean isVisibleInNav(Document document) throws SiteException;
IMO the second should be implemented anyway, the first could be added
as a shortcut.
Up to now the visibleInNav attribute is stored in the sitetree. Should
that attribute be stored in the MetaData?
We don't have meta data for site tree nodes yet ...
I'd rather leave it as it is now and consider the change for the
(hopefully) upcoming repository API.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]