Get parent page title from item in a slot

Is there anyway to retrieve the page title of a page from within an item in a slot on that page?

See: http://forum.percussion.com/showthread.php?t=9758&highlight=parent+assembly+item

Thank You very much…that worked great…I was able to create a user macro from that:

#macro(displayparentslottitle)##
$sys.assemblyItem.getCloneParentItem().getNode().getProperty(‘rx:displaytitle’).String.replace(" ", “%20”)
#end

Wonderful! Note that the same problems apply…i.e. if you preview the snippet directly (if you are calling this macro in the snippet), then the parent title won’t be displayed (which makes sense…but still you might need to explain that to someone else)…

I’m trying to implement something similar to this and would like to know if there is a way to implement this for publishing the slot item as an individual with it’s associated parent ID to the database instead of a flat file.