Skip to content

Commit

Permalink
Fix a bunch of wrong paths
Browse files Browse the repository at this point in the history
(#37)
  • Loading branch information
zerocrates authored Apr 19, 2019
1 parent 1370bef commit b793540
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/themes/modifying_themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Omeka S has a set of default template files that all themes use, and override when the desired page structure is different from the default.

The default template files are in the folder `/application/views` in your Omeka S installation within the following subfolders: `/application/views/common`, `/application/views/error`, `/application/views/layout`, and `/application/views/omeka/site`. Most views that theme builders need will be in `/application/views/layout` and `/application/views/omeka/site`. Subfolders correspond to the pages that are seen along url patterns. For example, the page displayed at `{YourOmeka SSite}/item/show` is produced by the file in `/application/views/omeka/site/item/show.phtml`.
The default template files are in the folder `/application/view` in your Omeka S installation within the following subfolders: `/application/view/common`, `/application/view/error`, `/application/view/layout`, and `/application/view/omeka/site`. Most views that theme builders need will be in `/application/view/layout` and `/application/view/omeka/site`. Subfolders correspond to the pages that are seen along url patterns. For example, the page displayed at `{YourOmeka SSite}/item/show` is produced by the file in `/application/view/omeka/site/item/show.phtml`.

Themes might or might not override these files. The default theme, for example, has a `layout` directory that overrides one of the default templates: `layout.phtml`.

```
- default/
- views/
- view/
- layout/
- layout.phtml
```
Expand All @@ -19,26 +19,26 @@ If you want to modify a file in a theme, the first place to look is in the theme

So, for example, imagine wanting to modify the show page for items and the browse page for collections in the default theme.

For the show page for items, we need to copy `/application/views/omeka/site/item/show.phtml`
to `/default/views/omeka/site/item/show.phtml`
For the show page for items, we need to copy `/application/view/omeka/site/item/show.phtml`
to `/default/view/omeka/site/item/show.phtml`

For the browse page for collections, we need to first create the directory: `/default/views/omeka/site/collection`
For the browse page for item sets, we need to first create the directory: `/default/view/omeka/site/item-set`

Then we can copy `/application/views/omeka/site/collection/browse.phtml`
to `/default/collections/browse.phtml`
Then we can copy `/application/view/omeka/site/item-set/browse.phtml`
to `/default/view/omeka/site/item-set/browse.phtml`

The result in the default theme will look like::

```
- default/
- views/
- view/
- layout/
- layout.phtml
- omeka/
- site/
- item/
- show.phtml
- collection/
- item-set/
- browse.phtml
---
```
Expand Down

0 comments on commit b793540

Please sign in to comment.