User Tools

Site Tools


en:developer:creating_a_page

Differences

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

Link to this comparison view

Last revisionBoth sides next revision
en:developer:creating_a_page [2016/06/19 23:05] – created kjdonen:developer:creating_a_page [2016/06/19 23:07] – [Extra Metadata] kjdon
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. 
  
en/developer/creating_a_page.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1