Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Views.pl
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Variations=== Variations, if defined, determine how the final list is rendered. ''Variations'' is an array of strings, for example, [ "creators_name;first_letter", "type", "DEFAULT", ] For each string in the list, a different rendering is produced, and you can switch from one to the other. The variation "DEFAULT" is the default one, it is always a good practice to include it in the list. If no variation is given, "DEFAULT" is used. A ''variation definition'' consists of a field name, followed by zero, one or more ''options'' after a semicolon. Options are separated by commas. An ''option'' is either a single attribute, or an attribute, an equal sign, and the value of the attribute. For example, "creators_name;truncate=4,hideup" sets the attribute value "truncate" to 4, and "hideup" to 1 (or true). The following options are available. These options are ''part of the string'' defining the variation, and ''should not be entered'' as attributes. {| border="1" cellpadding="4" cellspacing="0" |- valign="top" |reverse |Reverses the order in which the groupings are shown. Default is the ordervalue for that field (usually alphanumeric). Useful for dates as you may want the highest values first. |- valign="top" |filename |Changes the filename of the view variation. The default is the name of the metadata field used, so if two variations use the same metadata field with different options, this is needed. filename=different_filename |- valign="top" |first_value |If a field is multiple, only use the first value. Otherwise each item will appear once for each value. |- valign="top" |first_initial |If using a name, truncate the given name to the first initial. This will make items like "Les Carr" and "Leslie Carr" appear together. Note it will also make "John Smith" and "Jake Smith" appear together too, showing that you really never can win. |- valign="top" |first_letter |The same as 'truncate=1' |- valign="top" |truncate |Use the first X characters of a value to group by. truncate=4 may be useful for dates as it will group by the first four digits (the year) only. truncate=4 |- valign="top" |tags |Useful for fields like keywords where values may be separated by commas or semi-colons. The value is split on these two characters ( , and ; ) and a heading is created for each. |- valign="top" |cloud |Creates a tag cloud. Sets jump to 'plain', cloudmax to 200, cloudmin to 80 and no_separator, then resizes the jump-to links according to frequency of use. |- valign="top" |cloudmax |The % size of the largest tag in a tag cloud. |- valign="top" |cloudmin |The % size of the smallest tag in a tag cloud. |- valign="top" |jump |Possible values are 'plain', 'default', and 'none'. Example: jump=plain When set to 'plain' turns off the 'jump to' text before the list of subheading navigation links. When 'none', then the 'jump' part is not rendered. |- valign="top" |no_seperator (sic) |Turns of the separator between each subheading navigation link (by default a vertical bar symbol). |- valign="top" |string |Uses values 'as is'. No ordervalues, no phrases. |- valign="top" |hideup (since 3.1.1) |Defaults to "0". If set to "1" this hides the "up to parent" link (often you want to hide this on .include files) |- valign="top" |render_fn |Name of a function to render this groupings list of items. For an example, see views_render_items_example.pl |}
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)