imagina/isite-module

custom settings of the site

Installs: 3 295

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 10

Open Issues: 0

Type:asgard-module

10.0.0 2024-06-11 17:28 UTC

README

Components

Edit Button

The main function of the edit button component is to generate a redirection only for the Page administrators, the component fulfills the function of showing buttons to edit content of the web page from the administrator of the web page, generating support for the administrators when they want to change the content of the page.

The edit button component has required parameters and optional parameters to meet the needs of the clients, the parameters of this component are the following:

Applications

Currently, the edit button is implemented automatically in most components such as sliders among others, since they can be generated automatically, on the other hand, at the moment to generate an edit button of a setting of any module, the following command line must be fulfilled, which will call the edit button and will take us to edit the setting that we need.

<x-isite::edit-link link="/iadmin/#/site/settings?settings={{setting_name}}&module={{module_name}}"/> 

The previous line shows the route that the link parameter must take to make the edit button to any setting, and finally there is an example of the command line to make an edit button of any setting with all the parameters already named above

<x-isite::edit-link link="/iadmin/#/site/settings?settings=settingTest&module=icustom" tooltip="Edit Setting settingTest" classes="py-5 edit-button-settingName" top="35%" bottom="15%" right="85%" left="45%" idButton="editSettingTest"/> 

Remember that optional parameters do not generate errors if they are not sent, otherwise the required parameters can generate an error when assigning them.

Maps

The maps component has the function of rendering maps of desired locations by means of a latitude and longitude of the location, the component can render maps of openstreet and google maps, the choice of the map is made according to a setting in which it is chosen which maps the component is going to use, also remember that to use google maps you must have a key that is entered in another setting from the administrator.

For its correct operation, the component has the following parameters:

Applications

The following example shows how to call the maps component along with all the parameters already mentioned above.

<x-isite::Maps lat="4.427950" lng="-75.213492" locationName="University of Tolima" title="University of Tolima, Ibague" zoom="16" classes="py-3 maps-university" id=3 inModal="false" mapWidth='50%' mapHeight='314px'/>