List Info

Thread: Re: Sitetree-related meta data




Re: Sitetree-related meta data
country flaguser name
Switzerland
2008-03-03 15:15:48
Hi Andreas


Over the weekend I was working on a web-sitemap module and
came across  
a similar problem:

The goal is to hide documents from the sitemap using a
"visible in  
sitemap (true | false)" metadata field.

Now I am thinking about using the possibiliy to call lenyas
java  
method to read metadata from the within the xsl that builds
the web- 
sitemap (using xalans way to call java) - uuid / pub-id and
area are  
known when walking through the sitetree xml so it should
work...

I'm curious to learn what you think about that approach.


Of course I am now looking at how you approached this in the
 
foldernode module!

When I have a improved version of the sitemap module I'll
add it to  
the sandbox.



Thanks a lot!

Jürgen





------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


Re: Sitetree-related meta data
user name
2008-03-04 01:30:35
Just checking my understanding of the purpose of the
functions
mentioned in this thread.

1. Is the purpose to have multiple sitetrees based on
selection
criteria (possibly fields within documents)?
2.  Or is the purpose to have Category nodes in the
navigation?  A
Category node opens to display more Resources in the
navigation
without changing the current page.

#1 is handled in 1.3, although the administration functions
for
editing structures have not been implemented yet.
#2 could be added easily to 1.3, but I had not designed for
it because
experience/research suggests people expect a new page to
open when
clicking navigation entries.  Allowing some entries to
expand menus
without changing the current page leads to an inconsistent
experience.
 I have been involved with many designs including this
functionality;
all removed this functionality later due to confusion and
complaints.

solprovider


On 3/3/08, Andreas Hartmann <andreasapache.org> wrote:
> Hi Jürgen,
>  Jürgen Ragaller schrieb:
> > Hi Andreas
>  > Over the weekend I was working on a web-sitemap
module and came across a
>  > similar problem:
>  >
>  > The goal is to hide documents from the sitemap
using a "visible in
>  > sitemap (true | false)" metadata field.
>  >
>  > Now I am thinking about using the possibiliy to
call lenyas java method
>  > to read metadata from the within the xsl that
builds the web-sitemap
>  > (using xalans way to call java) - uuid / pub-id
and area are known when
>  > walking through the sitetree xml so it should
work...
>
> I guess this will be quite difficult, since you can't
access the current
>  session and document factory from the XSLT. Have you
considered the
>  MetaDataTransformer?
>
>  The first stylesheet would insert meta data query
tags:
>  <meta:value element="visibleInSitemap"
>    ns="http:/
/yourproject.org/lenya/sitemap/1.0"
>    default="true"
>    uuid="{$uuid}"
>    lang="{$language}"/>
>
>  After this XSLT you apply the meta data transformer,
and a subsequent
>  XSLT removes the hidden nodes.
>
>  > Of course I am now looking at how you approached
this in the foldernode
>  > module!
> I have now put the functionality in a module called
"navigation". It
>  needs a bit more testing, though.
>
>  > When I have a improved version of the sitemap
module I'll add it to the
>  > sandbox.
> Cool - I'm sure the sitemap functionality is also
useful for others.
>  -- Andreas

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


Re: Sitetree-related meta data
user name
2008-03-04 16:45:34
On 3/4/08, Andreas Hartmann <andreasapache.org> wrote:
> solproviderapache.org schrieb:
> > Just checking my understanding of the purpose of
the functions
>  > mentioned in this thread.
>  >
>  > 1. Is the purpose to have multiple sitetrees
based on selection
>  > criteria (possibly fields within documents)?
>  > 2.  Or is the purpose to have Category nodes in
the navigation?  A
>  > Category node opens to display more Resources in
the navigation
>  > without changing the current page.
> The purpose is #2.
>
>  > #1 is handled in 1.3, although the administration
functions for
>  > editing structures have not been implemented
yet.
>  > #2 could be added easily to 1.3, but I had not
designed for it because
>  > experience/research suggests people expect a new
page to open when
>  > clicking navigation entries.  Allowing some
entries to expand menus
>  > without changing the current page leads to an
inconsistent experience.
>  >  I have been involved with many designs including
this functionality;
>  > all removed this functionality later due to
confusion and complaints.
> I can understand these concerns. The reason for
introducing the feature
>  is that we already have it on our current website. If
we don't want to
>  add additional documents, we have to mimic it in
Lenya.
>  Andreas Hartmann, CTO

Thank you.  I thought about implementation (for 1.3).  My
initial plan
was to add a Category Resource, but they do not seem useful
outside a
sitetree.  Now I plan to add the ability to add placeholder
entries in
the Structure Editor.  (In 1.3, most relationships amongst
Resources
are determined by Structures for creating Indexes. Indexes
are
equivalent to 1.2's Sitetrees and are returned by 1.3's
SitetreeGenerator.  The primary improvements are the ability
to have
many Indexes and that Indexes are generated rather than
static.)
While I learned category navigation elements damage
usability, the
flexibility is critical for good software platforms.  I just
need
replacing navigation categories with documents to be easy
for when
users inevitably complain.

solprovider

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )