Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-1866

Joomla civicrm.xml param changes

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Labels:
      None

      Description

      When adding frontend items in Joomla using the CiviCRM component the Joomla Parameters panel is constructed using the civicrm.xml file which includes the lines:

      <param name="id" type="text" size="5" default="1" label="Contribution or Event id" />
      <param name="gid" type="text" size="5" default="1" label="Profile id" />
      <param name="reset" type="text" size="5" default="1" label="Reset" />

      Defaulting id and gid to "1" is problematic where no contribution or event is present. For instance the contact dashboard requires that the "id" is left blank. If the "id" is left blank it will revert to being "1" if saved or applyed thus killing the dashboard if subsequently saved.

      Details of <param> are documented here Joomla Help Appendix B. Using Parameters http://help.joomla.org/content/view/28/60/

      The help demonstrates how a description field can also be set. Currently hovering over the params displays the label text only.

      A potential replacement could be (but I think the description should be edited by someone who understands it a bit better...)

      <param name="id" type="text" size="5" " label="Contribution or Event id" description="The ID number of your Contribution or Event as defined when the Contribution or Event was created. Leave blank if not relevant" />
      <param name="gid" type="text" size="5" label="Profile id" description="The ID number of your Profile as defined when the profile was created" />
      <param name="reset" type="text" size="5" default="1" label="Reset" />

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              speleo Henry Bennett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: