9 Posts
zorojan
9 years ago
3
Topic

Hello seblod team 

I found a solution how to integrate "Address and coordinates" with the "tags" , using tags as cities for Articles, (ads location) , 

need plugins - Address and coordinates , Code Pack 

1. Create fields in this settings 

city_location { field type: Address and coordinates , Type: Cites, Country:Sweden,   City (Field): City } 

City { field type: Dynamic, table: #__tags , Options Name: id, Options Value: title } 

tag_storage {  field type: Code Before store , 

BeforeStore: 

if($fields['city']->value){ $city=$fields['city']->text; } 

else { $city= "#new#".str_replace(", Sweden", "", $fields['city_location']->value); } 

$config['storages']["#__content"] ["tags"][0]=$city; 

}

2. Add to siteform or admin form city_location and in hidden position city, tag_storage, art_tags

if have tag select in joomla base, if not match tag automatically added tag in joomla tags

worked fine

Get a Book for SEBLOD
548 Posts
joomleb
8 years ago
2
Level 1

Hi Vardanyan,

Please, Can you explain me better what was the problem/issue ? Do you have an example for me ?

Many Thanks for help on understandig your solution

9 Posts
zorojan
8 years ago
1
Level 2

548 Posts
joomleb
8 years ago
0
Level 3

Hi Vardanyan,

Really many thanks for your explanation.

Please, Can you tell me in your case what helped you to solve practically?

Get a VIP membership