815

Product support

Get help in the plugin support forum.

  • Added on May 10, 2023
  • Current version: 1.5.0
  • Platform Compatibility
    v3.x not tested
    v2.x use latest
    v1.x not tested
  • Created by
  • Public repository

Categories

Locations plugin

Easy to use system for managing company locations for October CMS

Locations plugin

Easy to use system for managing company locations for October CMS

Installation

Run the following to install this plugin:

php artisan plugin:install Yamobile.Locations

To uninstall this plugin:

php artisan plugin:remove Yamobile.Locations

Using components

This plugin provides 5 components:

  1. Location
  2. Locations
  3. LocationSettings
  4. Details
  5. Phones

All Components allow you to output information about your organization to your template.

Location

This component allows you to output information from the backend to your Twig template to display a specific office of company by url. In this component supports the slug property, for part of the url. To use the component, you must enter :slug in the page url when creating the page. To display data on a page, the component has a function get:

  • id
  • meta_title
  • meta_description
  • meta_keywords
  • name
  • description
  • country
  • locality
  • region
  • street
  • postal_code
  • phones
  • post_office_box
  • fax
  • geo_latitude
  • geo_longitude
  • opening_hours
  • created_at
  • updated_at
  • sort_order
  • deleted_at

Locations

This component allows you to output location information from the backend to your twig template in any form convenient for you. In twig locations, you can output through a loop for and access any of their keys to get the value:

  • id
  • meta_title
  • meta_description
  • meta_keywords
  • name
  • description
  • country
  • locality
  • region
  • street
  • postal_code
  • phones
  • post_office_box
  • fax
  • geo_latitude
  • geo_longitude
  • opening_hours
  • created_at
  • updated_at
  • sort_order
  • deleted_at
[ Locations ]
==

{% for location in Locations.getAll %}
  <h1>{{ location.name }}</h1>
  <p><strong>Address: </strong>{{ Location.get.postal_code }}, {{ Location.get.country }}, {{ Location.get.locality }}, {{ Location.get.region }}, {{ Location.get.street }}</p>
{% endfor %}

LocationSettings

This is a component of the plugin settings, here you can set the settings of the main location: logo, favicon, phone number, working hours and company address.

The public variable settings is used to access the settings properties.

[LocationSettings]
==

<img src="{{ LocationSetting.settings.logo | media }}" atl="..." />
<h1>{{ LocationSetting.settings.name }}</h1>
<p>{{ LocationSetting.settings.description }}</p>

List of all settings fields:

  • logo
  • favicon
  • name
  • description
  • phone
  • email
  • country
  • region
  • locality
  • street
  • geo_latitude
  • geo_longitude
  • postal_code
  • fax
  • post_office_box
  • opening_hours

Details

This component allows you to output company details to your twig template from the administrative part of the site.

[Details]
==

&lt;ul&gt;
    {% for detail in Details.getAll %}
        &lt;li&gt;
            &lt;strong&gt;{{ detail.name }}&lt;/strong&gt;: {{ detail.value }}
        &lt;/li&gt;
    {% endfor %}
&lt;/ul

Phones

This component allows you to display all the company's phones in your twig template from the administrative part of the site.

[Phones]

&lt;ul&gt;
    {% for phone in Phones.getAll %}
        &lt;li&gt;
            &lt;strong&gt;{{ phone.name }}&lt;/strong&gt;: {{ phone.number }}
        &lt;/li&gt;
    {% endfor %}
&lt;/ul&gt;
1.5.0

Add page settings

Jun 09, 2023

1.4.0

Add slug and meta tag fields to yamobile_locations_locations

May 10, 2023

1.3.0

Add location settings

May 10, 2023

1.2.0

Add phones

May 10, 2023

1.1.3

Created table yamobile_locations_locations_phones

May 10, 2023

1.1.2

Created table yamobile_locations_phones

May 10, 2023

1.1.1

Add sort_order to table yamobile_locations_locations

May 10, 2023

1.1.0

Create table yamobile_locations_locations

May 10, 2023

1.0.1

Initialize plugin.

May 10, 2023