List Info

Thread: Accessing another page's Custom MetaData




Accessing another page's Custom MetaData
user name
2006-06-13 09:42:48
Hi, 

 

We are currently trying to upgrade the latest news section
on our
website.  As it is, all new and amended documents are added
to the
latest news (using a page index and a render handler) with a
link to the
document, the page's category, the time it was added /
amended (based on
DATADDED or DATECONTENTLASTMODIFIED) as well as if the
document was
added or amended.

 

The problem with the current design is that the dates being
displayed
are irrelevant, in that they show the date the document was
added to the
system by a user as opposed to the official date the
document was
released / implemented.

 

In order to get this functionality, we are using custom
metadata to
allow a user to pick the official release date from a
calendar.  We then
use a page index with a render handler to display the
relevant data.  It
is within the render handler that we are experiencing
problems, in that
it is difficult to get at the custom metadata of the pages
being
returned by the page index.  If we use
#request.page.metadata#, all we
get is the metadata for the index page, as would be
expected. 

 

I attempted to grab the page ID's of the pages being
returned by the
index fitler and force one of the ID's into
request.page.metadat,  by
passing the ID to a variable called #pageID# and then on to
#page#,
hoping that request.page.metadata would then use the ID in
#page# and
return the correct metadata, but this didn't work either. 
I suspect
that "page" from request.page.metadata is a
reserved keyword and perhaps
can't be substituted for another value e.g. - a page's ID.

 

I also tried the technique described in the developers
guide, but had no
luck with this either.

 

So the question is, does anyone know of a technique to
programmatically
get to the metadata of a page that is being returned by a
page index
filter?

 

Thanks

 

Ian

 

Ian Edwards

IT Development Technician

ICT Support

regs4ships Ltd.

 

Tel: +44 (0)870 444 1240

Fax: +44 (0)2380 228 029

Email: ian.edwardsregs4ships.com

Web: www.regs4ships.com 

 

__________________________________

 

CONFIDENTIALITY NOTICE

 

The contents of this email are confidential to the ordinary
user of the
email address to which it was addressed and may also be
privileged.  If
you are not the addressee of this email you may not copy,
forward,
disclose or otherwise use any part of it in any form
whatsoever.  If you
have received this email in error please email the sender by
replying to
this message.

__________________________________

 

_______________________________________________
Commonspotchattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/commonspot


Brought to you by Fig Leaf Software
Premier Authorized Paperthin Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
[1]

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