Updating The Website Content: Difference between revisions
Jump to navigation
Jump to search
(start page) |
(add more things to know) |
||
Line 17: | Line 17: | ||
== Things to know == | == Things to know == | ||
* Always have a date in the field. If any of the dates are empty, there will be an error. We've mostly resolved this, but it still pops up now and again on really old pages. | * Since the webpage updater is "Legacy" code (as of 2024-09-09) it is janky as hell and hard to update. The only way to improve this would be to re-implement it in Symfony code. Maybe some day. | ||
* If you want a link do the file on the webpage, it's in the index. Rather than "Edit Page Content" click "Go To Page." As simple as it seems, this is a pain to try to make work on the edit page as long as it's legacy code, so ... sorry about that. | |||
* Always have a date in the field. If any of the dates are empty, there will be an error. We've mostly resolved this, but it still pops up now and again on really old pages. | |||
* nl2br checkbox means that any line breaks you have will be on the webpage. You normally want this box checked, but sometimes it helps to turn it off for doing things like ordered or unordered lists in html. | * nl2br checkbox means that any line breaks you have will be on the webpage. You normally want this box checked, but sometimes it helps to turn it off for doing things like ordered or unordered lists in html. | ||
* Very limited html is allowed. Allowed HTML Tags: '''<nowiki><p> <a> <br></nowiki> <nowiki><img></nowiki> <nowiki><b> <i> <u> <strong> <center> <div> <span> <font> <code> <ul> <ol> <li> <blockquote></nowiki>''' (Since it has huge potential to break the page we do not allow <nowiki><hr></nowiki> or <nowiki><table>)</nowiki> | * Very limited html is allowed. Allowed HTML Tags: '''<nowiki><p> <a> <br></nowiki> <nowiki><img></nowiki> <nowiki><b> <i> <u> <strong> <center> <div> <span> <font> <code> <ul> <ol> <li> <blockquote></nowiki>''' (Since it has huge potential to break the page we do not allow <nowiki><hr></nowiki> or <nowiki><table>)</nowiki> | ||
* Because other html tags are stripped out, some pages may break if you try to update them because we've directly added the html into the database. Just pay attention to what html is being used. '''DO NOT UPDATE THE CONTACT PAGE; YOU WILL BREAK THE MAILCHIMP FORM''' | * Because other html tags are stripped out, some pages may break if you try to update them because we've directly added the html into the database. Just pay attention to what html is being used. '''DO NOT UPDATE THE CONTACT PAGE; YOU WILL BREAK THE MAILCHIMP FORM''' | ||
* If you change a section to "archive" it hides it in the database and there's no UI to get it back. If you did this by mistake someone with direct database access has to fish it out of the database; there is no other UI for admin to fix this. Be absolutely sure you want it gone forever (or as close to forever as it gets in this situation). | * If you change a section to "archive" it hides it in the database and there's no UI to get it back. If you did this by mistake someone with direct database access has to fish it out of the database; there is no other UI for admin to fix this. Be absolutely sure you want it gone forever (or as close to forever as it gets in this situation). |
Revision as of 16:51, 9 September 2024
Before you start, you need:
- To be staff and have the proper permissions in the staff system to update the webpage. Most department heads have this position so you can maintain your own content.
Steps
- Log into BACON (Registration system)
- Go to Staff Home (under "Other"). The header will turn red to show you you're in a different section of the website.
- Under "Other" (again), find and select "Website" under the Communication & Media subheader
- Notice the two links at the top that would allow you to make a whole new page, or edit our sponsorship images.
- Scroll down to the page you want to edit
- Click the link "Edit Page Content"
- Update the content as needed
- Click Submit.
- Ignore any cloudflare cache errors
Things to know
- Since the webpage updater is "Legacy" code (as of 2024-09-09) it is janky as hell and hard to update. The only way to improve this would be to re-implement it in Symfony code. Maybe some day.
- If you want a link do the file on the webpage, it's in the index. Rather than "Edit Page Content" click "Go To Page." As simple as it seems, this is a pain to try to make work on the edit page as long as it's legacy code, so ... sorry about that.
- Always have a date in the field. If any of the dates are empty, there will be an error. We've mostly resolved this, but it still pops up now and again on really old pages.
- nl2br checkbox means that any line breaks you have will be on the webpage. You normally want this box checked, but sometimes it helps to turn it off for doing things like ordered or unordered lists in html.
- Very limited html is allowed. Allowed HTML Tags: <p> <a> <br> <img> <b> <i> <u> <strong> <center> <div> <span> <font> <code> <ul> <ol> <li> <blockquote> (Since it has huge potential to break the page we do not allow <hr> or <table>)
- Because other html tags are stripped out, some pages may break if you try to update them because we've directly added the html into the database. Just pay attention to what html is being used. DO NOT UPDATE THE CONTACT PAGE; YOU WILL BREAK THE MAILCHIMP FORM
- If you change a section to "archive" it hides it in the database and there's no UI to get it back. If you did this by mistake someone with direct database access has to fish it out of the database; there is no other UI for admin to fix this. Be absolutely sure you want it gone forever (or as close to forever as it gets in this situation).