You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike other Project Portal Sites, the Federal Project Portal does not currently feature the Search functionality, as it hasn't been requested by our federal partners.
To add the Search feature/Search page to the federal site, follow these instructions:
Add a new search.json file inside the /content/page/ directory. Here's a sample of what the file should look like:
Update the navbar configurations in the content/config/layout.json file to include 'Search'. This will make the Search page appear on the navbar and be clickable, directing users to the Search page. Modify the navbar section in layout.json as follows:
The navbar section in layout.json should now look like this
Finally, update the .gitignore file to include the three files that will be generated as part of creating the static index for the Search functionality:
# ignore files generated for the site search
static/documents.json
static/documents-reduced.json
static/lunr-index.json
Unlike other Project Portal Sites, the Federal Project Portal does not currently feature the Search functionality, as it hasn't been requested by our federal partners.
To add the Search feature/Search page to the federal site, follow these instructions:
search.json
file inside the/content/page/
directory. Here's a sample of what the file should look like:content/config/layout.json
file to include 'Search'. This will make the Search page appear on the navbar and be clickable, directing users to the Search page. Modify the navbar section in layout.json as follows:The navbar section in
layout.json
should now look like this.gitignore
file to include the three files that will be generated as part of creating the static index for the Search functionality:You can reference this PR from the nc project portal site where we go through the same steps featured above to add the Search functionality into the site.
https://github.com/thepolicylab-projectportals/nc-content/pull/614/files
The text was updated successfully, but these errors were encountered: