Warning: This page has not been updated in over over a year and may be outdated or deprecated.
development:howtos:connecting_a_new_external_data_source
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
development:howtos:connecting_a_new_external_data_source [2023/03/27 19:18] – [6. Create Controllers] demiankatz | development:howtos:connecting_a_new_external_data_source [2023/03/27 19:23] – [9. Set Up Templates] demiankatz | ||
---|---|---|---|
Line 62: | Line 62: | ||
====7. Register Controllers==== | ====7. Register Controllers==== | ||
- | Now that your controllers are created, you should register them in the invokables array of the controller section of module/ | + | Now that your controllers are created, you should register them in the factories and aliases arrays |
| | ||
====8. Set Up Routes==== | ====8. Set Up Routes==== | ||
Line 68: | Line 68: | ||
- In the $recordRoutes array, add an association between the route name (which should be your source value concatenated with the word " | - In the $recordRoutes array, add an association between the route name (which should be your source value concatenated with the word " | ||
- In the $staticRoutes array, add any necessary search-related routes... for example, ' | - In the $staticRoutes array, add any necessary search-related routes... for example, ' | ||
- | - Note that, if you are using a [[development: | + | - Note that, if you are using a [[development: |
====9. Set Up Templates==== | ====9. Set Up Templates==== | ||
Now that the models and controllers are set up, you need some views. | Now that the models and controllers are set up, you need some views. | ||
- //Search Templates// - Within your chosen theme, create a templates/ | - //Search Templates// - Within your chosen theme, create a templates/ | ||
- | - //Record Templates// - If your record driver extends \VuFind\RecordDriver\SolrDefault, you may not need to create any record templates at all -- the defaults should work for you. However, if you built a custom driver, you will need to create an appropriately-named directory under templates/ | + | - //Record Templates// - If your record driver extends \VuFind\RecordDriver\DefaultRecord, you may not need to create any record templates at all -- the defaults should work for you. However, if you built a custom driver, you will need to create an appropriately-named directory under templates/ |
---- struct data ---- | ---- struct data ---- | ||
properties.Page Owner : | properties.Page Owner : | ||
---- | ---- | ||
development/howtos/connecting_a_new_external_data_source.txt · Last modified: 2023/06/19 18:21 by demiankatz