Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:developer:creating_a_page [2016/06/20 11:05]
kjdon created
en:developer:creating_a_page [2016/06/20 11:07] (current)
kjdon [Extra Metadata]
Line 3: Line 3:
 ==== Extra Metadata ==== ==== Extra Metadata ====
  
-When a page is being created, we look though the format statement ​to work out what metadata is needed.+When a page is being created, we need to know what metadata ​to get from the server. This is done by looking through the format statments and xsl files
  
 TransformingReceptionist:​configure() calls TransformingReceptionist:​getRequiredMetadataNamesFromXSLFiles() - this looks through all the xsl files it can find in the interfaces folder, the site folder (for the current site) and the collect folder (for the current site). It scans these files looking for gsf:​metadata elements, and adds their names to a list.  TransformingReceptionist:​configure() calls TransformingReceptionist:​getRequiredMetadataNamesFromXSLFiles() - this looks through all the xsl files it can find in the interfaces folder, the site folder (for the current site) and the collect folder (for the current site). It scans these files looking for gsf:​metadata elements, and adds their names to a list. 
Line 15: Line 15:
 This looks for gsf:​metadata,​ gsf:​foreach-metadata,​ gsf:link and gsf:image items. This looks for gsf:​metadata,​ gsf:​foreach-metadata,​ gsf:link and gsf:image items.
  
-<​gsf:​metadata name="​title"​ select="​parent">​ gets turned into '​parent_title'​. ​+<​gsf:​metadata name="​title"​ select="​parent">​ gets turned into '​parent_title'​. ​The handling of parent_, root_, sibling_ etc is done at the service end.