Change Display order of fields?

  • Virginia Garnitz
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #33438 by Virginia Garnitz
Change Display order of fields? was created by Virginia Garnitz
I'd like to have my 2 custom fields placed at the top rather than after the donor and donation fields. Is there a way to do this?

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #33439 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change Display order of fields?
If you have only two custom fields, then editing code to move it to the top is easy. If you have different custom fields, then it is difficult. Please give me more details information so that I can guide you ! (I am going to have lunch now, so will guide you this afternoon).

Tuan

Please Log in or Create an account to join the conversation.

  • Virginia Garnitz
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #33440 by Virginia Garnitz
Replied by Virginia Garnitz on topic Re: Change Display order of fields?
I will actually have 2 campaigns:
- each will have 2 custom fields.
- the first is a message about that particular campaign
- the second is the text area for inputting the information

Please Log in or Create an account to join the conversation.

  • Virginia Garnitz
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #33464 by Virginia Garnitz
Replied by Virginia Garnitz on topic Re: Change Display order of fields?
a bump up to remind that I inquired about how to do this.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #33494 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change Display order of fields?
Hi

Please open the file components/com_jdonation/views/donation/tmpl/default.php, find the code below :

if ($this->customField) {
echo $this->fields ;
}

You can move that code to the position you want and It should work well !

Tuan

Please Log in or Create an account to join the conversation.

  • Virginia Garnitz
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago - 10 years 9 months ago #33511 by Virginia Garnitz
Replied by Virginia Garnitz on topic Re: Change Display order of fields?
that worked well for displaying the component, thank you.

but it did not change the display order in campaign module.
I looked and could not find where to update the module. It isn't in the module's corresponding default.php file

Component Display bayitshelanu.org/index.php?option=com_jd...nation&campaign_id=1

module display: bayitshelanu.org/index.php?option=com_content&view=article&id=8
Last edit: 10 years 9 months ago by Virginia Garnitz.

Please Log in or Create an account to join the conversation.

More
10 years 9 months ago #33541 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Change Display order of fields?
Hi

For the "module" you are talking about, please edit code in the file plugins/content/jdform/jdform/default.php and It will work as expected !

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Virginia Garnitz
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 9 months ago #33559 by Virginia Garnitz
Replied by Virginia Garnitz on topic Re: Change Display order of fields?
That works well. Thank you

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt