Difference between revisions of "Views render items example.pl"

From EPrints Documentation
Jump to: navigation, search
(Added page about config file)
 
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
{{cfgd}}
 
{{cfgd}}
  
'''views_render_items_example.pl''' provides an alternative render function for browse view listing pages.  '''<code>$c->{render_view_items_3col_boxes}</code> displays citations in three columns rather than using the full-width of the page.
+
'''views_render_items_example.pl''' provides an alternative render function for browse view listing pages, which can be specified in the browse view specification's under the <code>variations</code> with a <code>render_fn</code> attribute.  E.g.
 +
 
 +
variations => [
 +
  "DEFAULT;render_fn=render_view_items_3col_boxes",
 +
  ],
 +
 
 +
'''<code>$c->{render_view_items_3col_boxes}</code>''' displays citations in three columns rather than using the full-width of the page.

Latest revision as of 00:11, 6 February 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


Back to cfg.d

views_render_items_example.pl provides an alternative render function for browse view listing pages, which can be specified in the browse view specification's under the variations with a render_fn attribute. E.g.

variations => [
  "DEFAULT;render_fn=render_view_items_3col_boxes",
],

$c->{render_view_items_3col_boxes} displays citations in three columns rather than using the full-width of the page.