User tests: Successful: Unsuccessful:
This changes the JFormField to:
render()
function that can be used to render layouts inside other layouts. getLayoutPaths()
method.Render layouts inside other layouts is used like:
<a href="http://joomla.org">Joomla</a>
<?php
// Render `sample.layout` layout inside this layout
echo $field->render('sample.layout', $displayData);
?>
<p>Another paragraph</p>
You can see below how I used it to render a common stats
layout that is renderer in both message
and field.data
layouts.
This PR also improves the statistics system plugin:
stats
prefix. Before: type="stats.uniqueid"
after: type="plgsystemstats.uniqueid"
JFormFieldRadio
& JFormFieldCheckboxes
so the best way to check is to edit the codemirror plugin that includes both fields in its settings.Click here to see which information will be sent.
data is shown below.Click here to see which information will be sent.
data appears below.Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Labels |
Added:
?
|
Milestone |
Added: |
I have tested this item successfully on 4dff4a2
Great stuff - works as described
Category | ⇒ | Plugins |
Labels |
Labels |
This PR has received new commits.
CC: @brianteeman
I have updated the PR and added an extra check that will show the error message from the stats server if something when wrong (like data validation).
Labels | |||
Easy | No | ⇒ | Yes |
I have tested this item successfully on e18b20c
Works as described, the statistics plugin data is shown. The settings in CodeMirror keep working as they did before.
@phproberto This is more than just a statistics plugin improvement if I understand it correctly. You also changed the way JLayouts work by adding the getLayoutPaths() method by which form fields can override the list of paths to check the layout files. In the uniqueid.php and data.php we get duplicate code but I guess that can't be prevented the way it is setup now.
This PR has received new commits.
CC: @brianteeman, @roland-d
I have updated the PR and added some changes:
JFormField
as suggested by @wilsonge and create a new public method called render()
. That method will be used when you want to display a layout inside another field layout.Am I right that this PR cannot be tested using Joomla! Patch Tester?
Clicking [Apply Patch] shows message "The file marked for modification does not exist: plugins/system/stats/layouts/message.php"
@Bakual Joomla! Update shows
"You are on the "Testing" update channel. This channel is designed for testing new releases and fixes in Joomla.
It is only intended for JBS (Joomla! Bug Squadâ„¢) members and others within the Joomla community who are testing. Do not use this setting on a production site.
You already have the latest Joomla version, 3.5.6-dev."
How to change "3.5.6.-dev" into the right version? I think I have to change a setting in a db table, but which one to pick? ;)
I have no clue how you got onto a 3.5.6-dev
. That version doesn't exist.
I would just set up a new Joomla instance instead of trying to fix a broken one.
For staging, you can download https://github.com/joomla/joomla-cms/archive/staging.zip and install from that.
This PR has received new commits.
CC: @brianteeman, @roland-d
Updated copyrights to 2016
Any reason for using
+ * @var boolean $spellchec Spellcheck state for the form field.
instead of
+ * @var boolean $spellcheck Spellcheck state for the form field.
?
@infograf768 the way the vars get populated for the layout is by calling the parent class field and then merge any other, specific vars for the field. So this comment block is, for the most of it, generic...
Check https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/checkboxes.php#L150-L167
and
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/field.php#L952-L990
@dgt41 I think @infograf768 mean $spellchec
vs $spellcheck
This PR has received new commits.
CC: @brianteeman, @roland-d
Updated again. Please if this is not going to be merged save us time and close it.
Nice work.
One question: Should the stats plugin autoload the language?
https://github.com/phproberto/joomla-cms/blob/43425a448031db5af1f95a09bd9bfcab1a7e4894/plugins/system/stats/stats.php#L52
I have tested this item successfully on 7fb97f4
One more tester needed.
all works if follow the test instruction
However I noticed issue, but not sure if it related to changes made in current pull request.
When in the request permission I chose "allow" all work fine. But when I chose "once" or "never" then the request permission message annoying me after each page refresh.
upd: seems it not because changes in current pull request, it something old
I have tested this item successfully on 7fb97f4
I have tested this item successfully on 7fb97f4
tested again - all fine here
Thanks!
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-01-29 12:42:27 |
Closed_By | ⇒ | wilsonge |
I have also cleaned versions & added a language string for each data sent