#  9th April 2025 — Import Images from Walks Manager
## [Build #136](https://github.com/nbarrett/ngx-ramblers/actions/runs/14364989827/job/40275605596)
This is part 1 of a larger piece of work to allow images to be created locally, and then be uploaded automatically to Walks Manager. The background to this change was that there was a need to import images from walks on walks manager so that they appeared on a group website where the walks population was local. Specifically, this functionality was developed to accommodate a case when there is a joint walk between two groups (A & B), and the images are on Walks Manager for Group B but the website for Group A wishes to associate their local walk with the images for Group B. 
### System Settings
- In order for this to work correctly, some changes have been made in [`/admin/system-settings?tab=area-group`](https://ngx-ramblers.org.uk/admin/system-settings?tab=area-group) to configure the area and/or provide an automatic selection of group(s).
- When the settings view is first opened, a list of groups are automatically queried from Walks Manager for the currently selected area code.
- The **Area & Group** tab now has a **Ramblers Area Code** input field. This will be defaulted to the group that has a scope equal to "A" from the list of groups queried from Walks Manager.
- There is a **Selection Mode** radio group with _Area Selection Mode_ or _Group Selection Mode_ options.
- _Area Selection Mode_ is pre-selected based on whether the current group code is 2 digits long (e.g. KT rather than KT50), otherwise _Group Selection Mode_ is chosen.

![](https://ngx-ramblers.org.uk/api/aws/s3/site-content/91476b7d-1795-4d24-b870-e05c202f15e6.jpg)

- The currently configured group code is preselected in the Ramblers Group select field if _Group Selection_ mode is selected, otherwise the area code is populated.
- The **Ramblers Group Code** is now a read-only field and can only be set by means of selecting an entry in the **Ramblers Groups** select field.
- More than one group can be selected here although this is not normally the case for a single group.

![](https://ngx-ramblers.org.uk/api/aws/s3/site-content/a24585a6-2dd1-4f39-bcdd-35ddc4f83580.jpg)

- On selection of a group, the Long Name is set to the value queried from the Ramblers groups.
### Walk edit view
A New tab  titled Images was created on the Walk edit view with the following features:
- There is an option to choose Image Selection as _None_, _Local_ or _Walks Manager_. The initial view is _None_:

![](https://ngx-ramblers.org.uk/api/aws/s3/site-content/d982b5f7-7827-4254-b4dc-112c8c17e896.jpg)

- When _Walks Manager_ is selected a select is displayed to display all Groups in the same Area as the current group.
- On Selection of a group, all walks with images from Today Onwards are displayed.

![](https://ngx-ramblers.org.uk/api/aws/s3/site-content/bcb7a1b5-0ca3-4c94-9149-ef35104eb540.jpg)

- On selection of a walk, the images are imported to the local walk from walks manger and will appear on the right of the screen.

![](https://ngx-ramblers.org.uk/api/aws/s3/site-content/a49f9f0a-bc18-482d-b658-d0e0665c95bb.jpg)

- If the walk is not in the future the Walk Selection field can be used to choose Past Walks or All Walks.
- When the walk is saved, the images are then displayed:

![](https://ngx-ramblers.org.uk/api/aws/s3/site-content/8082052a-682a-4923-9b97-99bbff52d5e1.jpg)