Use Case: Show your trees on your website: Difference between revisions
Create mode on the drone map, drone photo archives, X-Trees Widgets and the tree selector |
Marked this version for translation |
||
| Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<translate> | <translate> | ||
<!--T:1--> | |||
{{Figure|file=OTID-Widgets-03-tree-selector-widget.jpg|width=600|caption=The tree selector on a website: visitors pick a free tree}} | {{Figure|file=OTID-Widgets-03-tree-selector-widget.jpg|width=600|caption=The tree selector on a website: visitors pick a free tree}} | ||
<!--T:2--> | |||
This guide puts a project's trees on your organisation's website: a map of the project, and a tree selector where visitors choose a tree, for example to sponsor or adopt it. | This guide puts a project's trees on your organisation's website: a map of the project, and a tree selector where visitors choose a tree, for example to sponsor or adopt it. | ||
<!--T:3--> | |||
It uses [[Widgets]] (X-Trees Widgets). The widgets read the data from OpenTreeID, so new trees and changes show on the website without touching it again. | It uses [[Widgets]] (X-Trees Widgets). The widgets read the data from OpenTreeID, so new trees and changes show on the website without touching it again. | ||
<!--T:4--> | |||
== Current Scope == | == Current Scope == | ||
* The tree counter, project map, site map, tree and tree selector widgets. | * The tree counter, project map, site map, tree and tree selector widgets. | ||
| Line 13: | Line 17: | ||
* Payments and sign-up forms are on your own website, outside OpenTreeID. | * Payments and sign-up forms are on your own website, outside OpenTreeID. | ||
<!--T:5--> | |||
== Requirements == | == Requirements == | ||
* A website where you can add HTML or an iframe (in WordPress, a ''Custom HTML'' block). | * A website where you can add HTML or an iframe (in WordPress, a ''Custom HTML'' block). | ||
* For the tree selector: a role that lets you edit the project's trees, and trees with a position. | * For the tree selector: a role that lets you edit the project's trees, and trees with a position. | ||
<!--T:6--> | |||
== User Story == | == User Story == | ||
As the coordinator of a planting project, I want visitors of our website to see our trees and choose one to sponsor, so that support goes to a real tree they can find on the map. | As the coordinator of a planting project, I want visitors of our website to see our trees and choose one to sponsor, so that support goes to a real tree they can find on the map. | ||
<!--T:7--> | |||
== Problem == | == Problem == | ||
Screenshots and lists of trees on a website go out of date, and people who want to support a tree cannot see which ones are still free. | Screenshots and lists of trees on a website go out of date, and people who want to support a tree cannot see which ones are still free. | ||
<!--T:8--> | |||
== Solution == | == Solution == | ||
The widget shows the live data from OpenTreeID. The tree selector offers only the trees marked free to choose, a few at a time, and sends the visitor to your own form with the tree's number filled in. | The widget shows the live data from OpenTreeID. The tree selector offers only the trees marked free to choose, a few at a time, and sends the visitor to your own form with the tree's number filled in. | ||
<!--T:9--> | |||
== Workflow == | == Workflow == | ||
{| class="wikitable ot-table" | {| class="wikitable ot-table" | ||
| Line 41: | Line 50: | ||
|} | |} | ||
<!--T:10--> | |||
== 1. Choose the free trees == | == 1. Choose the free trees == | ||
Open [[Page: Trees]] and filter it to the project. Tick the trees to offer and press '''Mark free to choose'''. For a single tree, use the '''Tree selector''' card on its page. See [[Container: Tree selector]]. | Open [[Page: Trees]] and filter it to the project. Tick the trees to offer and press '''Mark free to choose'''. For a single tree, use the '''Tree selector''' card on its page. See [[Container: Tree selector]]. | ||
{{Figure|file=OTID-Trees-13-tree-selector-list.png|width=600|caption=Selected trees, ready to be marked free to choose}} | {{Figure|file=OTID-Trees-13-tree-selector-list.png|width=600|caption=Selected trees, ready to be marked free to choose}} | ||
<!--T:11--> | |||
== 2. Set up the widget == | == 2. Set up the widget == | ||
Open [[Page: X-Trees Widgets]] and pick '''Tree selector''' and the '''Project'''. The line under it says how many trees are free. Choose how many '''Trees at a time''' visitors see, the '''Look''' and the '''Language''', and check the '''Preview'''. | Open [[Page: X-Trees Widgets]] and pick '''Tree selector''' and the '''Project'''. The line under it says how many trees are free. Choose how many '''Trees at a time''' visitors see, the '''Look''' and the '''Language''', and check the '''Preview'''. | ||
<!--T:12--> | |||
== 3. Link your own form == | == 3. Link your own form == | ||
Under '''“Choose this tree” button''' pick '''Opens a page of your website''' and enter the address of your form, with ''{code}'' where the tree's number should go, for example ''<nowiki>https://example.org/sponsor/?tree={code}</nowiki>''. In the preview, open a tree and try the button. | Under '''“Choose this tree” button''' pick '''Opens a page of your website''' and enter the address of your form, with ''{code}'' where the tree's number should go, for example ''<nowiki>https://example.org/sponsor/?tree={code}</nowiki>''. In the preview, open a tree and try the button. | ||
<!--T:13--> | |||
== 4. Put it on your website == | == 4. Put it on your website == | ||
Press the copy button next to '''Embed code''' and paste the code into your website, in WordPress into a ''Custom HTML'' block. Adjust '''Height (pixels)''' if the widget needs more room. | Press the copy button next to '''Embed code''' and paste the code into your website, in WordPress into a ''Custom HTML'' block. Adjust '''Height (pixels)''' if the widget needs more room. | ||
<!--T:14--> | |||
== 5. Keep it current == | == 5. Keep it current == | ||
When a tree has been chosen, mark it '''not free''' so the selector stops offering it. | When a tree has been chosen, mark it '''not free''' so the selector stops offering it. | ||
<!--T:15--> | |||
== Role-based Access == | == Role-based Access == | ||
{| class="wikitable ot-table" | {| class="wikitable ot-table" | ||
| Line 68: | Line 83: | ||
|} | |} | ||
<!--T:16--> | |||
== Configuration == | == Configuration == | ||
{| class="wikitable ot-table" | {| class="wikitable ot-table" | ||
| Line 83: | Line 99: | ||
|} | |} | ||
<!--T:17--> | |||
== Benefits == | == Benefits == | ||
{{Columns2 | {{Columns2 | ||
| Line 91: | Line 108: | ||
}} | }} | ||
<!--T:18--> | |||
== Frequently Asked Questions == | == Frequently Asked Questions == | ||
{{Faq|q=The tree selector says no trees are free.|a=Mark trees '''free to choose''' in [[Page: Trees]] or on a tree's page. Only trees with a position are shown on the map.}} | {{Faq|q=The tree selector says no trees are free.|a=Mark trees '''free to choose''' in [[Page: Trees]] or on a tree's page. Only trees with a position are shown on the map.}} | ||
| Line 96: | Line 114: | ||
{{Faq|q=Who can see a widget?|a=Everyone who visits the website. A widget needs no sign-in.}} | {{Faq|q=Who can see a widget?|a=Everyone who visits the website. A widget needs no sign-in.}} | ||
<!--T:19--> | |||
== Related Pages == | == Related Pages == | ||
* [[Page: X-Trees Widgets]] · [[Container: Tree selector]] · [[Page: Trees]] · [[Page: Tree]] | * [[Page: X-Trees Widgets]] · [[Container: Tree selector]] · [[Page: Trees]] · [[Page: Tree]] | ||
Latest revision as of 11:52, 13 November 2026
This guide puts a project's trees on your organisation's website: a map of the project, and a tree selector where visitors choose a tree, for example to sponsor or adopt it.
It uses Widgets (X-Trees Widgets). The widgets read the data from OpenTreeID, so new trees and changes show on the website without touching it again.
Current Scope
- The tree counter, project map, site map, tree and tree selector widgets.
- Choosing which trees the tree selector offers.
- Sending visitors to your own page for a chosen tree.
- Payments and sign-up forms are on your own website, outside OpenTreeID.
Requirements
- A website where you can add HTML or an iframe (in WordPress, a Custom HTML block).
- For the tree selector: a role that lets you edit the project's trees, and trees with a position.
User Story
As the coordinator of a planting project, I want visitors of our website to see our trees and choose one to sponsor, so that support goes to a real tree they can find on the map.
Problem
Screenshots and lists of trees on a website go out of date, and people who want to support a tree cannot see which ones are still free.
Solution
The widget shows the live data from OpenTreeID. The tree selector offers only the trees marked free to choose, a few at a time, and sends the visitor to your own form with the tree's number filled in.
Workflow
| # | Step | Where |
|---|---|---|
| 1 | Choose the free trees | Page: Trees → select → Mark free to choose |
| 2 | Set up the widget | Page: X-Trees Widgets → Tree selector |
| 3 | Link your own form | “Choose this tree” button → Opens a page of your website |
| 4 | Put it on your website | Embed code → copy → paste |
| 5 | Keep it current | Mark chosen trees not free |
1. Choose the free trees
Open Page: Trees and filter it to the project. Tick the trees to offer and press Mark free to choose. For a single tree, use the Tree selector card on its page. See Container: Tree selector.
2. Set up the widget
Open Page: X-Trees Widgets and pick Tree selector and the Project. The line under it says how many trees are free. Choose how many Trees at a time visitors see, the Look and the Language, and check the Preview.
3. Link your own form
Under “Choose this tree” button pick Opens a page of your website and enter the address of your form, with {code} where the tree's number should go, for example https://example.org/sponsor/?tree={code}. In the preview, open a tree and try the button.
4. Put it on your website
Press the copy button next to Embed code and paste the code into your website, in WordPress into a Custom HTML block. Adjust Height (pixels) if the widget needs more room.
5. Keep it current
When a tree has been chosen, mark it not free so the selector stops offering it.
Role-based Access
| Action | Who |
|---|---|
| Mark trees free or not free | People who can edit the trees |
| Make widget codes | Everyone signed in, for the projects, sites and trees they can see |
| See a widget | Every visitor of the website, without signing in |
Configuration
| Setting | Default |
|---|---|
| Look | Visitor's setting |
| Language | Visitor's language |
| Button | Opens the tree in OpenTreeID |
| Trees at a time | 8 |
| Height | 180 px (counter), 480 px (maps and tree), 600 px (tree selector) |