Table of Contents

  1. Fixing Background PHP Path
  2. Creating Anchor Links in Omeka

Fixing Background PHP Path

This walkthrough provides step-by-step instructions for fixing the background PHP path in Omeka, which is necessary for certain plugins, like CSV Import, to function correctly.

Reclaim Hosting also has a walkthrough of their own (with fewer screenshots), in case that is helpful.

1 – Log in to your cPanel at https://sites.grinnell.edu

2- Scroll down to the Software section your cPanel homepage, and click on MultiPHP Manager.
Screenshot of the cPanel homepage Software section

3 – Look for your System PHP Version listed at the top. Write this down.
Screenshot of cPanel's MultiPHP Manager System PHP Version

4 – Go back to your cPanel homepage and click on File Manager (under the Files section).
Screenshot of the cPanel Files section, with File Manager icon

5 – Navigate to your Omeka site’s subfolder (so in the case of the exhibit.steelberg.sites.grinnell.edu site, the folder with that name).
Screenshot of cPanel File Manager with subdomain subfolder open

6 – Open the application subfolder, then the config subfolder within it.

7 – Click the config.ini file, then click the Edit button at the top.
Screenshot of Omeka subdomain folders in File Manager, with config.ini file highlighted

8 – Search in the file for the background.php.path setting. It should be blank (no value in between the quotes).
Screenshot of blank background PHP path in Omeka site config.ini file

9 – In between the quotes after the equal sign (=), add in a line of code corresponding to your System PHP Version as ascertained earlier.

10 – So for a system running PHP 7.4, the line should read background.php.path = "/usr/local/bin/ea-php74"
Screenshot of background PHP path set correctly in Omeka site config.ini file

11 – Click the Save Changes button in the top right.

12 – You should be good to go with using the CSV Import plugin, and any others requiring this setting!

 

This walkthrough provides step-by-step instructions for creating anchor links in Omeka, which allows you to link to a specific element on the page, which is useful for tables of contents, glossaries, and the like.

Before you begin, you must first make sure that the HTML elements used are allowed on the site (under Settings > Security > HTML Filtering), or that HTML filtering is turned off. This can cause security issues if done improperly, so make sure to talk this through with a Vivero co-lead or Sites @ Grinnell admin before setting this up.

1 – Navigate to the Simple Page or Exhibit in which you would like to create anchor links and input your page content.

2 – Check the Use HTML editor? button above the text box to access the HTML menu.

Screenshot of the HTML editor checkbox in Omeka

3 – Click the Source Code button on the right-hand side of the text editor: Screenshot of Omeka source code button

4 – Give the elements that you want to link to an ID within their opening HTML tag. This ID must be unique in the context of the page., and the ID should appear in quotes. For example, with a heading, the ID tag would look like: <h2 id=”first”>First Heading</h2> – see the screenshot below for an example.

Screenshot of source code in Omeka edited to add anchor links, with ID tags highlighted

5 – To link to the item within the page, as you might with a table of contents,  build out a link tag with a pound sign/hashtag and then the ID. For the heading example, this would look like <a href=”#first”>Internal Link to First Heading</a> – see the screenshot below for an example. Click OK when you’re finished editing the source code.

Screenshot of source code in Omeka edited to add anchor links, with anchor links highlighted

To link to the item on another page, build out a link to the page appended with a pound sign/hashtag and then the ID. For the heading example, this would look like <a href=”https://myomekasite.sites.grinnell.edu/mypage#first”>External Link to First Heading</a> – see the screenshot below for an example. Click OK when you’re finished editing the source code.

Screenshot of source code in Omeka edited to add anchor links, with external anchor link highlighted

6 – When finished, make sure to click the Save Changes button to save the edits or changes you made to the page or exhibit. Check the Publish this page? box to make sure the page is public, if desired.

css.php