Below are some macro options for your groups. To explore more macros click on the "[] Add Macro" button in the QUBES page editor.

 

 

Resource Cards

[[Publications(args)]] - Displays a grid of publications

Examples:

  • [[Publications()]] - Shows all publications.

  • [[Publications(view=list)]] - Display publications in list format (default is "card").
  • [[Publications(limit=5, style=legacy)]] - Show the 5 most recent publications using the legacy style.
  • [[Publications(sponsor=mygroup, sponsorbgcol=cb48b7)]] - Display a sponsor ribbon with each publication, linking to Group "mygroup" (multiple sponsors are allowed if separated by a semicolon). Background color of ribbon is given in hexidecimal without # (default is cb48b7).
  • [[Publications(group=mygroup1;mygroup2, project=myproject, id=2;6;8)]] - Display all publications from Groups "mygroup1" and "mygroup2", Project "myproject", and Publications with ids 2, 6, and 8.
  • [[Publications(group=mygroup1;mygroup2, id_exclude=3;4)]] - Display all publications from Groups "mygroup1" and "mygroup2", excluding Publications with ids 3 and 4.
  • [[Publications(group=mygroup, focusarea=myfa, fascheme=Dark2)]] - Display all publications from Group "mygroup", using the children tags of the "myfa" tag as the primary categories. Color scheme used is Dark2 (default) from http://colorbrewer2.org.
  • [[Publications(pubtype=qubesresource, tag=ecology;genetics)]] - Display all QUBES publications that are tagged "ecology" or "genetics".
  • [[Publications(pubtype=qubesresource, tag=ecology*genetics)]] - Display all QUBES publications that are tagged "ecology" and "genetics". Users can include combinations of or (";") and and ("*"), with and taking precedence.
  • [[Publications(id=2;1;3, sortby=id, sortdir=none)]] - Override the default sort by publish date and display publications in order given by id.
  • [[Publications(group=mygroup, sortby=date, sortdir=asc)]] - Display publications in mygroup from oldest to newest (rather than default newest to oldest).

 

Member Cards

[[Group.MembersCards(args)]]- Displays business cards of members.

Examples:

  • [[Group.MembersCards()]] - Shows all group members.

  • [[Group.MembersCards(role=role1;role2)]] - Shows all members from the group with roles "role1" or "role2".
  • [[Group.MembersCards(id=2;1;3) - Shows group members with ids 2, 1, and 3.

 

 

Embed Videos

[[Video(args)]]- Embeds a video into the Page. Accepts either full video URL (YouTube, Vimeo, Kaltura, Blip TV) or a file name or path

Youtube URL: https://www.youtube.com/watch?v=FgfGOEpZEOw

Examples:

  • [[Video(MyVideo.m4v)]]
  • [[Video(https://www.youtube.com/watch?v=FgfGOEpZEOw)]]
  • [[Video(https://blip.tv/play/hNNNg4uIDAI.x?p=1)]]
  • [[Video(https://player.vimeo.com/video/67115692)]]

Size attributes may be given as single numeric values or with units (%, em, px). When an attribute name is given (e.g., width=600, height=338), order does not matter. Attribute values may be quoted but are not required to be. When a name attribute is not give (e.g., 600, 338), the first value will be set as width and the second value as height.

Examples:

  • [[Video(MyVideo.m4v, width="600", height="338")]]
  • [[Video(https://www.youtube.com/watch?v=FgfGOEpZEOw, width=600px, height=338px)]]
  • [[Video(https://blip.tv/play/hNNNg4uIDAI.x?p=1, 640, 380)]] - width 640px, height 380px
  • [[Video(https://player.vimeo.com/video/67115692, 100%)]] - width of 100%