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
  • link_to_collection — Get a link to a collection.
  • View page source

link_to_collection — Get a link to a collection.

Navigation-related functions

Summary

link_to_collection($text = null, $props = array(), $action = 'show', $collectionObj = null)

Get a link to a collection.

The only differences from link_to() are that this function will automatically use the “current” collection, and will use the collection title as the link text.

Parameters:
  • $text (string) – text to use for the title of the collection. Default behavior is to use the name of the collection.

  • $props (array) – Set of attributes to use for the link.

  • $action (array) – The action to link to for the collection.

  • $collectionObj (array) – Collection record can be passed to this to override the collection object retrieved by get_current_record().

Returns:

string

Usage

Examples

See Also

Previous Next

© Copyright 2012-2023, Omeka.

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