Team,
I'm a total noob hoping someone could help me out on my elgg site. I have a custom form below with an input/location field but always return an "array" value when I click on save:
$tags_label = elgg_echo('Location');
$tags_input = elgg_view('input/location', array(
'name' => 'tags',
'id' => 'blog_tags',
'value' => $vars['tags']
Is it because the location input is too long? e.g. Madison Avenue, New York, NY, United States
It however shows the correct value when i hit Save again...
Result: Location Array
Please shed some light... I read about foreach loop or something but would like to get insights from the pros...
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
[I updated to topic title to be more descriptive]
Thanks, Joho.. as i just started coding, I might just give it a try to use a blog plugin instead
I'm using blog Tools 2.5 plguin now.. will try to see howit goes
Juho,it is still the same..addedd a field editing the Blog Tool but still showing result as Array
The thing is, i put the input/location for tags as im using geocomplete to populate it. I want the location to show as tags but they display as "Array" when I click on Save.
Juho, I think i might have fixed it.... it appears this is the tags is being broken by the sanity checking when loaded from POST...
looking much better now returning the values correctly... thanks for the support team
- Previous
- 1
- 2
- Next
You must log in to post replies.