Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This information seems like it may be irrelevant to the README file in the root directory. Consider moving the information about the content editor to a .md markdown file in the test_cases directory.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will double check, I believe the professor wanted it like this.

Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,18 @@ After sshing into the server, cd into either prod or test project. Then run resp
## Backend Documentation

[Swagger Link](https://petstore.swagger.io/?url=https%3A%2F%2Fraw.githubusercontent.com%2FRIT-Software-Engineering%2FRIT-SE-Senior-Project%2Frefs%2Fheads%2Fdev%2Fui%2Fpublic%2Fapi-docs%2Fserver_doc.yaml)

## Content Editor

The site includes a Content Editor that allows administrators to edit HTML fragments stored in the database. These fragments are used to render portions of the site such as the homepage panel, sponsor information, and the logged-in/logged-out footers.

### Accessing the Content Editor
- Log into the site with an account that has admin privileges.
- Navigate to the Admin Tab -> Content Editor -> Page Editor

### Editing Content
- The editor displays a list of named HTML blocks (e.g., `homePagePanel`, `sponsor`, `loggedInFooter`, `loggedOutFooter`).
- Select the block you want to edit. The existing HTML will be displayed in a text box.
- Make your changes directly in the editor.
- Click **Update HTML** to save your changes. The update is written directly into the database.
- Refresh the site to see your changes in action.