How EPrints generates web pages: Difference between revisions
No edit summary |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Manual]] | |||
EPrints generates a website. The pages in this website can be split into four areas: | EPrints generates a website. The pages in this website can be split into four areas: | ||
'''Static Pages''' | '''Static Pages''' | ||
Static pages include the home page, help, and about-this-archive pages. They are generated by the [[generate_static | Static pages include the home page, help, and about-this-archive pages. They are generated by the [[API:bin/generate_static|generate_static]] script, which takes the ".xpage" files in your archives "static" directory and applies the site template to them. | ||
To see changes in these pages run [[generate_static]]. | To see changes in these pages run [[API:bin/generate_static|generate_static]]. | ||
'''View Pages''' | '''View Pages''' | ||
| Line 11: | Line 12: | ||
These pages are all under the URL /view/ | These pages are all under the URL /view/ | ||
These pages are generated by the [[generate_views]] script. | These pages are generated by the [[API:bin/generate_views|generate_views]] script. | ||
'''Dynamic pages''' | '''Dynamic pages''' | ||
| Line 17: | Line 18: | ||
These pages are all under the URL /perl/ | These pages are all under the URL /perl/ | ||
These pages are generated on demand using mod_perl. The web server caches the configuration, however, so to make changes take effect you need to | These pages are generated on demand using mod_perl. The web server caches the configuration, however, so to make changes take effect you need to reload the web server or run: | ||
EPRINTS_PATH/bin/epadmin reload --force ARCHIVEID | |||
'''Abstract pages''' | '''Abstract pages''' | ||
Latest revision as of 00:30, 6 March 2022
EPrints generates a website. The pages in this website can be split into four areas:
Static Pages
Static pages include the home page, help, and about-this-archive pages. They are generated by the generate_static script, which takes the ".xpage" files in your archives "static" directory and applies the site template to them.
To see changes in these pages run generate_static.
View Pages
These pages are all under the URL /view/
These pages are generated by the generate_views script.
Dynamic pages
These pages are all under the URL /perl/
These pages are generated on demand using mod_perl. The web server caches the configuration, however, so to make changes take effect you need to reload the web server or run:
EPRINTS_PATH/bin/epadmin reload --force ARCHIVEID
Abstract pages
These are the pages which describe a single eprint and are under one of the following types of URL: /archive/00000023/ or /23/
Where 23 is any number.
These are updated every time you modify the eprint they describe.
You can also update all of them, or one of them, by running generate_abstracts