Skip to content

Omeka-External/ExtendedSiteDescription

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Extended Site Description

A module for Omeka S

This module currently creates 3 additional inputs in the Settings page for every Site:

  • Image: an "asset" uploader/picker for attaching an image to a site
  • Linear: a true/false value controlled by a checkbox
  • Categories: a multi-select of categories the site belongs to. Categories to choose from are configured in the module's Configure page.

In a public view, these values are accessibile using the siteSetting helper:

$linear = $this->siteSetting('extended_site_description_linear');

$linear = $this->siteSetting('extended_site_description_categories');

$imageUrl = '';
$imageId = $this->siteSetting('extended_site_description_image');
if ($imageId) {
    try {
        $response = $this->api()->read('assets', $imageId);
        $imageUrl = $response->getContent()->assetUrl();
    } catch (\Omeka\Api\Exception\NotFoundException $e) {}
}

The values are also exposed, using the same keys, in the site API output.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages