Please note: This repo holds the wordpress multisite distribution. For details on the totem's hardware infrastructure go to https://github.com/FutureCitiesCatapult/newcastle_totem_backend
The TechTotem system is built using WordPress multisite. Multisite installs consist of one core WordPress installation with multiple sites running off that core. Themes, plugins and users can be managed centrally. With this setup, each TechTotem has its own site, with a centrally-managed theme and plugins.
Like all software systems, WordPress and its plugins should be kept up-to-date. Doing so patches security vulnerabilities and ensures you are running the most stable version. The longer an install is left without updating the more insecure it becomes and the harder it becomes to upgrade later. Ideally, the installation should be updated weekly or monthly.
Further information about WordPress and WordPress multisite can be found at https://wordpress.org/ and https://codex.wordpress.org/Before_You_Create_A_Network.
- Super admin - Power users who have access to the entire system: every site, user, theme and plugin. Only existing super admin users can create/delete other super admin users.
- Admin - Users who have complete management control over a specific site.
- Editor - Users who can add/edit/delete content in a specific site.
- Go to http://35.176.15.249 (Note that this is a temporary domain hosted at FCCs infrastructure. It should be changed to the deployer's infrastructure)
- Login using your username and password
- Go to the top toolbar and click on My Sites > Network Admin > Users
- Click the Add New button
- Type in a username
- Type/paste in the user’s email address
- Click the Add User button
- In the left hand sidebar click on Users > All Users
- Click on the user you have just created
- Fill in the rest of the form fields as required
- Scroll to the bottom of the page
- Click on the Update User button
- Go to the top toolbar and click on My Sites > Network Admin > Users
- Click on the user you would like to edit
- Edit the form fields as required
- Scroll to the bottom of the page
- Click on the Update User button
- Go to the top toolbar and click on My Sites > Network Admin > Users
- Mouseover the user you would like to delete
- Click on the Delete link
- Go to the top toolbar and click on My Sites > Network Admin > Sites
- Mouseover the site you would like to edit
- Click on the Edit link
- Click on the Users tab
- Scroll to the section titled Add Existing User
- Type in the user’s username
- Choose the role you would like them to have
- Click the Add User button
- Go to the top toolbar and click on My Sites > Network Admin > Dashboard
- In the left hand sidebar click on NS Cloner V3
- Scroll to the Select Source section
- Choose 1 - Master template from the drop-down menu
- Scroll to the Create New Site section
- Fill in the site title using the location of the TechTotem
- Fill in the site url
- Leave all other settings as-is
- Click on the Clone button at the bottom right of the page
- Setup the JSON files
a. Go to the top toolbar and click on My Sites > Network Admin > Sites b. Locate the site you are setting up in the list of sites c. Make a note of the site ID number which you can find in the corresponding column d. Create a JSON file called sensors-totem-X, where X corresponds to the ID number of the site you have created e. Create a JSON file called recommendation-totem-X, where X corresponds to the ID number of the site you have created f. Upload those 2 files to https://s3-eu-west-2.amazonaws.com/newcastle.tech.totem
- Go to the top toolbar and click on My Sites > Network Admin > Sites
- Mouseover the site you would like to edit
- Click on the Edit link
- Go to the left hand sidebar and click on Totem Partner
- Fill in the Branding section - This section defines the logos, colours and name of the organisation responsible for this TechTotem
- Fill in the Banner/Teaser section
This section defines the row at the bottom of the home screen and has two options: a. Simple content can be used for any combination of content and/or photo. It’s flexible but should only be used for static content which does change very often and where the content and images are located on the TechTotem b. Complex content should be used when the content to be displayed needs some code to make it work. In such a case, you should use the PHP Snippets section (see below) 7. Fill in the Custom Page/Slide section This section defines the content of the sponsor page in the screensaver and on their custom page of the TechTotem. It has two options: a. Simple content can be used for any combination of content and/or photo. It’s flexible but should only be used for static content which does change very often and where the content and images are located on the TechTotem b. Complex content should be used when the content to be displayed needs some code to make it work. In such a case, you should use the PHP Snippets section (see below) 8. Scroll to the top of the page and click on the Publish button in the top right hand corner
PHP Snippets are useful when the TechTotem partner’s content is complex and needs to be dynamically generated from a 3rd-party service or it needs some special code. To create a PHP Snippet please do the following:
- Go to the top toolbar and click on My Sites > Network Admin > Sites
- Mouseover the site you would like to edit
- Click on the Edit link
- In the left hand sidebar click on PHP snippets
- Click on the Add snippet button
- Paste your code into the field labelled Enter the code for your snippet
- Click on the option for Where there is a shortcode
- Give the snippet a description so you know what it is for
- Scroll to the top of the page and click the Publish button in the top right hand corner
- Go to the top toolbar and click on My Sites > Network Admin > Sites
- Mouseover the site you would like to edit
- Click on the Edit link
- In the left hand sidebar click on PHP snippets
- Locate the snippet you would like to use
- Find the shortcode which looks something like [wbcr_php_snippet id="80"]
- Make a note of the ID number (In our example above this ID number is 80)
- Go to the left hand sidebar and click on Totem Partner
- Scroll down to the section where you would like to use this snippet and click on the Complex content option
- Type the PHP snippet’s ID number into the corresponding box
- Scroll to the top of the page and click the Update button in the top right hand corner