⧼vector-jumptocontent⧽

Views render items example.pl: Difference between revisions

From EPrints Documentation
mNo edit summary
mNo edit summary
 
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> attributeE.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


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.