Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
v35
Browse files Browse the repository at this point in the history
  • Loading branch information
astridx committed Jun 8, 2019
1 parent 7185fb4 commit bd779af
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 5 deletions.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ a route to the address you entered in the back end.

### Show markers on a map that link to an article - you can enter the coordinate in a Custom Field

The next picture shows what the map might look like. If the markers are too close together, they will be clustered. If the resolution of the card fits, the marker will be displayed. A click on the marker opens a popup. In this popup there is a link to the post - link text is the title of the article.
The next picture shows what the map might look like. If the markers are too close together,
they will be clustered. If the resolution of the card fits, the marker will be displayed.
A click on the marker opens a popup. In this popup there is a link to the post - link text is
the title of the article.

![Home](https://user-images.githubusercontent.com/9974686/58746148-263e0580-845b-11e9-8b30-374c4256f46e.png)

Expand All @@ -60,10 +63,32 @@ Any article with the custom field filled with a correct coordinate will be displ

![Articles Fields test Administration](https://user-images.githubusercontent.com/9974686/58746149-26d69c00-845b-11e9-920b-f5309b98ff37.png)

If you want to use different colors or icons, you can fill the custom field with the title `lat, lon` as
follows: `lat,lon,markercolor,iconcolor,icon`.
As color, you can choose red, darkred, orange, green, darkgreen, blue, purple, darkpurple and cardetblue.
For the icon you can choose the name of the Font Awesome Icon.
For more informations see https://fontawesome.com/icons?d=gallery.

When you enter `50.150, 7.158, red, green, home` you will see an icon as shown in the next picture.

![Custom Marker](https://user-images.githubusercontent.com/9974686/59145384-7250f300-89e3-11e9-96c8-772a0f63ff7e.png)


The next picture shows where you can activate the option in the module.

![Modules AGOSM Module test Administration](https://user-images.githubusercontent.com/9974686/58746150-276f3280-845b-11e9-9678-7521c89fbe80.png)

Maybe you do not want to show the field lat lon in the frontend.
Just select the option `Do not automatically display` in the Custom Field options.

![Beiträge Feld bearbeiten Administration](https://user-images.githubusercontent.com/9974686/59145428-19358f00-89e4-11e9-8446-6079f655e0d8.png)

## GPX - Fileupload

Please choose the layout `upload`
if you want to allow a user to upload a GPX file to the server and view it on the map.

![Module AGOSM Modul Administration](https://user-images.githubusercontent.com/9974686/59145427-189cf880-89e4-11e9-8900-4a4b7f30e44e.png)

## Component

Expand Down
18 changes: 18 additions & 0 deletions agosms-update.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,22 @@
<maintainerurl>https://astrid-guenther.de</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
<update>
<name>pkg_agosms</name>
<description>pkg_agosms</description>
<element>pkg_agosms</element>
<type>package</type>
<client>site</client>
<version>1.0.35</version>
<infourl title="agosms">https://github.com/astridx/pkg_agosms/blob/v1.0.35/README.md</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/astridx/pkg_agosms/releases/download/v1.0.35/pkg-agosms.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Astrid Günther</maintainer>
<maintainerurl>https://astrid-guenther.de</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
</updates>
2 changes: 1 addition & 1 deletion dist/current
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later;</license>
<authorEmail>info@astrid-guenther.de</authorEmail>
<authorUrl>www.astrid-guenther.de</authorUrl>
<version>1.0.34</version>
<version>1.0.35</version>
<description>COM_AGOSMS_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>

Expand Down
Binary file modified dist/zips/com_agosms.zip
Binary file not shown.
Binary file modified dist/zips/mod_agosm.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions src/modules/mod_agosm/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ public static function getListCustomField(&$params)
$access = !JComponentHelper::getParams('com_agosms')->get('show_noauth');
$model->setState('filter.access', $access);

$ordering = $params->get('ordering', 'ordering');
/* $ordering = $params->get('ordering', 'ordering');
$model->setState('list.ordering', $ordering == 'order' ? 'ordering' : $ordering);
$model->setState('list.direction', $params->get('direction', 'asc'));
$model->setState('list.direction', $params->get('direction', 'asc'));*/

$catid = (int) $params->get('catid', 0);
$model->setState('category.id', $catid);
Expand Down

0 comments on commit bd779af

Please sign in to comment.