Hi fellow users,
I need to add a new line between group description and tags, a category which will use a dropbox with some selections
ex : Select your contry : fr, en, es, it ...
So I started to add this on the group creation/edit page :
views/default/form/groups/edit.php :
<div>
<label><?php echo elgg_echo("groups:country"); ?></label><br />
<?php echo elgg_view("input/dropdown", array(
'name' => 'country',
'id' => 'group_country',
'value' => $vars['country'],
'options_values' => array(
'france' => elgg_echo('group:country:fr'),
'suisse' => elgg_echo('group:country:sw')
)
));
?>
</div>
but now I need some explanations on how to show it on the info page of a group..
Help me people!!
Thanks by advance :)
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.
- lolarr@Nutz22
lolarr - 0 likes
- lolarr@Nutz22
lolarr - 0 likes
- lolarr@Nutz22
lolarr - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- lolarr@Nutz22
lolarr - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- lolarr@Nutz22
lolarr - 0 likes
You must log in to post replies.no one to help me out ?
I'm sure one of you guys already did that for him, please!
up!
okay done, I had to add a value in
function groups_fields_setup() {
$profile_defaults = array(
'description' => 'longtext',
'briefdescription' => 'text',
'country' => 'text',
'sector' => 'text',
'interests' => 'tags',
'website' => 'url',
);
It works well but country don't use a pulldown menu, can someone help me to do that ? Actually it's just in text form, you write and it's displayed, I need a choose box!
well - you have specified 'country' => 'text' !!;-P
and.. that means <input type='text' doesn't it ? lolz ;-)
you'll need to figure out how to get <select.. </select> code into the form display....
Hi DDS,
I will check that, if someone else got a tip for me, feel free :)
elgg_view(
'input/dropdown'
,array(
'name' => '<fieldname>'
,'id' => '<fieldid>'
,'value' => "<fieldvalue>"
,'options_values' => <optionaaray>
)
);
It works, big thanks DDS, here is another problem for you my dear ;)
http://community.elgg.org/discussion/view/1070450/how-to-copy-a-add-button-to-my-index