-
Notifications
You must be signed in to change notification settings - Fork 9
Editing the website
- Request access by following this SugarLearning item
- Accept invite once system admins have approved
- Log into Tina
- Online
- Navigate to https://ssw.com.au/admin
- Authenticate with your Tina credentials
- Create a new branch using the branch selector in the top left corner
- Locally
- Pull latest code from
main
- Follow
README
to get site up and running - Use git to make a new branch (and push changes when done)
- Navigate to localhost:3000/admin
- Pull latest code from
- Online
- Using the left side-panel, press the hamburger menu
- Select the desired collection
- Create or edit content as required (see below)
- Go to GitHub and raise a PR (this will deploy a preview environment for you to get your changes checked)
- Get PR reviewed and merge
- Wait for changes to go live
- Press the "Create New" button within the collection
- Fill in the appropriate details for the new content you wish to make.
- Press the "Save" button once you've made your desired edits to create the new page.
- Select the desired page to edit
- From there, simple make the changes you want via the left admin side-panel. Make sure to press the "Save" button once you've made your desired edits.
Demo video: https://youtu.be/yyw82EXodcI
- Request access by following this SugarLearning item
- Accept invite once system admins have approved
- Navigate to https://ssw.com.au/admin.
- Create a new branch by opening the branch menu in the top left corner. Then, enter the name of your new branch at the bottom of the dialogue.
Figure: Opening the branch menu
Figure: The branch menu
- Then navigate to "Opportunities" on the sidebar
- Click "Create New" on the right hand side of the screen
Figure: Employment Opportunities list
- Fill out the form with the required information.
Figure: Employment Opportunity input form
- Click on "Employment Pages" in the sidebar
- Open the "index" page
Figure: The "Employment Pages" list page
- On the sidebar on the left hand side of the screen, scroll down to the "Opportunities" section
Figure: Opportunities section on the edit pane of the employment page
- Next, click the blue plus icon to the right of "Opportunities"
- This will create a "New Opportunity" object, click the edit button on the "New Opportunity" item on the list:
Figure: The "New Opportunity" object
- This will open a separate panel, editing the object. You can now select the opportunity you created in the first part.
Figure: Selection of the previously created opportunity in a list
- Click "Save", and then create a pull request
-
Navigate to https://ssw.com.au/admin.
-
Open the branch selector window in the top-left hand corner.
Figure: open the branch selector
- Create a new branch in the branch selector. It may take about 30 seconds to index the new branch after you create it. Once it has completed indexing, select the branch you created from the list.
Figure: Creating a new branch in the branch selector
- Click the sidebar icon on the left hand side of the screen, then navigate to "Newsletters".
**Figure: The "Newsletters" collection on the sidebar list
- Select the current year from the list of newsletters.
Figure: Selecting the current year from the list
-
Click the "Create New" button in the top right of the "Newsletters" section.
-
Select the "New newsletter" item in the list.
Figure: creating a new newsletter item
-
Enter the month number, and then upload the HTML file.
-
Upload any corresponding images in the images field using the TinaCMS Media Manager folder and fill out the description field.
-
Click "Save", and then create a pull request
**Figure: adding the newsletter files + information"
- Done - your changes will then be reflected on the site!
-
Navigate to https://github.com/SSWConsulting/SSW.Website/pulls.
-
Now, click "New Pull Request"
Figure: Create a new pull request
- Select the "compare: main" button on the right hand side of the arrow. Then, select the branch you created using TinaCMS.
Figure: Select your branch from the list and create the PR
- Now, select "Create pull request", and request a reviewer for the PR. Once the PR has been approved, it will be merged into the GitHub repo, and your changes should show up on the website.
-
Navigate to ssw.com.au/admin and follow the standard TinaCMS branching workflow stated above (steps underneath Creating/Editing content on the website).
-
Click the home icon in the upper left corner of the page.
Figure: the home icon to navigate to the list of data used on the page
- Select
content/megamenu/menu.json
from the list.
Figure: the list of data that is used on the page
- Now, you can edit items on the menu and see them instantly reflected on the page.