Skip to content

Editing the website

Harry Ross [SSW] edited this page Feb 27, 2024 · 30 revisions

Creating/Editing content on the website

Watch the demo: image

Getting Access

  1. Request access by following this SugarLearning item
  2. Accept invite once system admins have approved

Workflow

  1. Log into Tina
    • Online
      1. Navigate to https://ssw.com.au/admin
      2. Authenticate with your Tina credentials
      3. Create a new branch using the branch selector in the top left corner
    • Locally
      1. Pull latest code from main
      2. Follow README to get site up and running
      3. Use git to make a new branch (and push changes when done)
      4. Navigate to localhost:3000/admin
  2. Using the left side-panel, press the hamburger menu
    Screenshot 2023-02-23 at 07 58 31
  3. Select the desired collection
    Screenshot 2023-02-23 at 08 00 08
  4. Create or edit content as required (see below)
  5. Go to GitHub and raise a PR (this will deploy a preview environment for you to get your changes checked)
  6. Get PR reviewed and merge
  7. Wait for changes to go live

Creating Content

  1. Press the "Create New" button within the collection Screenshot 2023-02-23 at 08 09 05
  2. Fill in the appropriate details for the new content you wish to make. Screenshot 2023-02-23 at 08 10 19
  3. Press the "Save" button once you've made your desired edits to create the new page.

Editing Content

  1. Select the desired page to edit Screenshot 2023-02-23 at 08 02 46
  2. 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. Screenshot 2023-02-23 at 08 05 38

Editing and creating employment opportunities

Demo video: https://youtu.be/yyw82EXodcI

Getting Access

  1. Request access by following this SugarLearning item
  2. Accept invite once system admins have approved

Workflow

Creating the employment opportunity

  1. Navigate to https://ssw.com.au/admin.
  2. 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.

image

Figure: Opening the branch menu

image

Figure: The branch menu

  1. Then navigate to "Opportunities" on the sidebar
  2. Click "Create New" on the right hand side of the screen

image

Figure: Employment Opportunities list

  1. Fill out the form with the required information.

image

Figure: Employment Opportunity input form

Setting the job opportunity to available on the /employment page

  1. Click on "Employment Pages" in the sidebar
  2. Open the "index" page

image

Figure: The "Employment Pages" list page

  1. On the sidebar on the left hand side of the screen, scroll down to the "Opportunities" section

image

Figure: Opportunities section on the edit pane of the employment page

  1. Next, click the blue plus icon to the right of "Opportunities"
  2. This will create a "New Opportunity" object, click the edit button on the "New Opportunity" item on the list:

image

Figure: The "New Opportunity" object

  1. This will open a separate panel, editing the object. You can now select the opportunity you created in the first part.

image

Figure: Selection of the previously created opportunity in a list

  1. Click "Save", and then create a pull request

Adding new newsletters

Demo Video

https://youtu.be/lrgF3T7Y0Qs

Workflow

  1. Navigate to https://ssw.com.au/admin.

  2. Open the branch selector window in the top-left hand corner.

image Figure: open the branch selector

  1. 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.

image Figure: Creating a new branch in the branch selector

  1. Click the sidebar icon on the left hand side of the screen, then navigate to "Newsletters".

image **Figure: The "Newsletters" collection on the sidebar list

  1. Select the current year from the list of newsletters.

image Figure: Selecting the current year from the list

  1. Click the "Create New" button in the top right of the "Newsletters" section.

  2. Select the "New newsletter" item in the list.

image Figure: creating a new newsletter item

  1. Enter the month number, and then upload the HTML file.

  2. Upload any corresponding images in the images field using the TinaCMS Media Manager folder and fill out the description field.

  3. Click "Save", and then create a pull request

image **Figure: adding the newsletter files + information"

  1. Done - your changes will then be reflected on the site!

Create a pull request

  1. Navigate to https://github.com/SSWConsulting/SSW.Website/pulls.

  2. Now, click "New Pull Request"

image

Figure: Create a new pull request

  1. Select the "compare: main" button on the right hand side of the arrow. Then, select the branch you created using TinaCMS.

image

Figure: Select your branch from the list and create the PR

  1. 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.

Editing the Megamenu With Visual Editing

  1. Navigate to ssw.com.au/admin and follow the standard TinaCMS branching workflow stated above (steps underneath Creating/Editing content on the website).

  2. Click the home icon in the upper left corner of the page.

image Figure: the home icon to navigate to the list of data used on the page

  1. Select content/megamenu/menu.json from the list.

image Figure: the list of data that is used on the page

  1. Now, you can edit items on the menu and see them instantly reflected on the page.