CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • html form snippets - is it a bug or a feature request? Help needed!
Pages: [1]

Author Topic: html form snippets - is it a bug or a feature request? Help needed!  (Read 1123 times)

digitracer

  • Guest
html form snippets - is it a bug or a feature request? Help needed!
October 17, 2010, 04:49:50 am
Hi there,

while html form snipptes in civcrm under joomla1.15 produced forms with an "edit"-task that were not submitted, civicrm 3.2.3 now produces something like the following:

<form  action="http://url.tld/index.php?option=com_civicrm&amp;task=civicrm/profile/create&amp;gid=1&amp;reset=1&amp;" method="post" name="Edit" id="Edit" >
<div><input name="postURL" type="hidden" value="" />
<input name="cancelURL" type="hidden" value="http://url.tld/index.php?option=com_civicrm&amp;task=civicrm/profile&amp;reset=1&amp;gid=1" />
<input name="contact_sub_type_hidden" type="hidden" value="xxx" />
<input name="_qf_default" type="hidden" value="Edit:cancel" />
</div>

where no matter what the settings in the underlying custom profile are, a "create" task is always being issued which leads to create a new account instead of edit the users profile, letting him add or edit his data. If you now change "create" into "edit" data is being edited but the existing values are not being shown to the user on editing in frontend, so that he can't see what to edit and what to add.

My question here: how should the above "action" and "input" look like so that existing profile values can be seen while editing?

if you  send the following link e.g.: http://url.tkd/index.php?option=com_civicrm&task=civicrm/profile/edit&reset=1&gid=1
everything works well. The funny thing here is that the correspondung menu link produced by using civicrm menu command edit page looks like this:
index.php?option=com_civicrm&view=Profiles&layout=edit
and doesn' work eather - on our production server the output is always a listing according to "view" instead, no matter what type of page you define.

Is it a bug or would it be a more feature request getting the choice to define which type of action is beeing created with the html form snippets?

But the most importent question for me would be again: How should the above "action" and "input" look like so that existing profile values can be seen while editing?

Any help very much apreciated!

Thanks in advance,
digitracer

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: html form snippets - is it a bug or a feature request? Help needed!
October 17, 2010, 07:25:28 am

1. we changed edit to create and disabled edit from the joomla frontend due to a potential security issue (i forget the details now)

2. I dont know how joomla generates and maps the menu links and how it translates to civicrm url's

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

digitracer

  • Guest
Re: html form snippets - is it a bug or a feature request? Help needed!
October 17, 2010, 07:53:26 am
does this then mean, that if Joomla does not translate the civicrm menu links properly and there is no way allowing frontend edititng via html snippets that the only remaining way to do frontend editing is issuing a direct link via href?

digitracer

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • html form snippets - is it a bug or a feature request? Help needed!

This forum was archived on 2017-11-26.