I put my jquery plugin in mod/projects/vendors/jquery.steps
in start.php i call:
elgg_define_js('form_wizard', ['src' => '/vendors/jquery.steps/jquery.steps.min.js' ]);
i coul define my id form in the view:
$form_vars = array(
'enctype' => 'multipart/form-data',
'class' => 'elgg-form-alt ',
'id' => 'project-form'
);
echo elgg_view_form('projects/edit', $form_vars);
ok nice!
but now i have to say:
here can i do this and how?
yes, I know , it is Beginning Developers
but I need help... :D and will stay beautiful.
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.
- Murilo Timo@murilotimo
Murilo Timo - 0 likes
- Murilo Timo@murilotimo
Murilo Timo - 0 likes
- Murilo Timo@murilotimo
Murilo Timo - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
You must log in to post replies.Please someone, give me a ligth!!!
I read this http://learn.elgg.org/en/latest/tutorials/wysiwyg.html
And I have a feeling that's not the right way
because of this http://learn.elgg.org/en/latest/guides/javascript.html
but I could not run my script asynchronously
some light https://www.youtube.com/watch?v=M-wjQjsryMY
Add your own code e.g. into:
As instructed in this part: http://learn.elgg.org/en/latest/guides/javascript.html#defining-modules-as-a-view
Also add the form_wizard as a dependency in the project_steps.js :
In the view that is calling "echo elgg_view_form('projects/edit', $form_vars)" add this:
Your javascript should now be working.