Omeka Classic Logo
  • What’s new in Omeka
  • Tutorials
  • Reference
    • Global (Theming) Functions
    • Hooks
    • Filters
    • models
    • views/helpers
    • controllers
    • Packages
      • Acl
      • Application
      • Auth
      • Captcha
      • Controller
      • Db
      • File\Derivative
      • Filter
      • Form
      • Global Functions
        • Db-related functions
        • Locale-related functions
        • Log-related functions
        • Plugin-related functions
        • Search-related functions
        • Text-related functions
        • User-related functions
        • Utility-related functions
        • View-related functions
      • Http
      • Install
      • Job
      • Navigation
      • Output
      • Plugin
      • Record
      • Session
      • Storage
      • Test
      • Validate
      • View
    • libraries/Omeka
    • Omeka REST API
  • Helping With Documentation
  • Registering a new module or theme with omeka.org
Omeka Classic
  • Reference
  • Global (Theming) Functions
  • random_featured_items — Get HTML for random featured items.
  • View page source

random_featured_items — Get HTML for random featured items.

Item-related functions

Summary

random_featured_items($count = 5, $hasImage = null)

Get HTML for random featured items.

Parameters:
  • $count (int) – Maximum number of items to show.

  • $hasImage (bool) – Whether or not the featured items must have images associated. If null, as default, all featured items can appear, whether or not they have files. If true, only items with files will appear, and if false, only items without files will appear.

Returns:

string

Usage

Examples

See Also

  • display_records

Previous Next

© Copyright 2012-2023, Omeka.

Built with Sphinx using a theme provided by Read the Docs.