Skip to content

Confirm Consent Plugin Rendering Issues #23153

Merged
mbabker merged 7 commits intojoomla:stagingfrom
zero-24:confirmConsent
Nov 26, 2018
Merged

Confirm Consent Plugin Rendering Issues #23153
mbabker merged 7 commits intojoomla:stagingfrom
zero-24:confirmConsent

Conversation

@zero-24
Copy link
Copy Markdown
Contributor

@zero-24 zero-24 commented Nov 23, 2018

Pull Request for Issue #23069 .

Summary of Changes

As requested #23069 by @mbabker & @SharkyKZ

Testing Instructions

  • Install 3.9.0
  • enable the Content - ConfirmConsent Plugin
  • configure this plugin to point to a article
  • open a contact page on the website
  • make sure the title is clickable and opens an modal
  • apply this patch
  • make sure it is still opening a modal this time it should be a bs modal

Expected result

own field

Actual result

Rendering Issues

Documentation Changes Required

none

@SharkyKZ
Copy link
Copy Markdown
Contributor

This still outputs the modal when it shouldn't. There can be no echos in field class.

@zero-24
Copy link
Copy Markdown
Contributor Author

zero-24 commented Nov 24, 2018

Well i have been told to move it to its own field -> done. If that is not the right solution please suggest the correct solution and i'm happy to apply it ;-)

And please also review the other fields that just output html code inside a field..

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Nov 24, 2018

You don't echo the modal, assign the result of JHtml::_() to a variable (i.e. $html).

Then have your return concatenate the modal and the layout (i.e. return $html . $this->getRenderer($this->renderLabelLayout)->render(array_merge($data, $extraData));

This field uses modals in this way.

@zero-24
Copy link
Copy Markdown
Contributor Author

zero-24 commented Nov 25, 2018

Patched.

@zero-24
Copy link
Copy Markdown
Contributor Author

zero-24 commented Nov 26, 2018

Ok what is the plan here? Patch this in 3.9.1 or move both PRs to 3.9.2?

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Nov 26, 2018

Well if someone would actually test this...

@SharkyKZ
Copy link
Copy Markdown
Contributor

There's a styling issue with modal header. It's right-aligned because of label. Perhaps modal output should be added to renderField() instead.

@SharkyKZ
Copy link
Copy Markdown
Contributor

@zero-24 see zero-24#40.

* Move modal to field renderer

* Fix var type

* Fix wrong variable

* __DEPLOY_VERSION__
@zero-24
Copy link
Copy Markdown
Contributor Author

zero-24 commented Nov 26, 2018

Merged thanks @SharkyKZ

@SharkyKZ
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 819b32a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23153.

@zero-24 zero-24 deleted the confirmConsent branch November 29, 2018 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants