? Success

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
10 May 2015

Layout for the field repeatable, for j3.5

test
add repeatable field, example in some module options,
and make sure that after patch this field works as before patch

example field XML:

<field name="test" type="repeatable" icon="list"  label="Test" description="Test descr"
        maximum="5">
    <fieldset hidden="true" repeat="true">
        <field name="test_color" type="color" default="#eee"
            label="color"  description="test_color" />

        <field name="test_list" type="list" default="1"
            label="test_list" description="test_list" >
            <option value="1">JYES</option>
            <option value="0">JNO</option>
        </field>

        <field name="test_text" type="text"
            label="test_text" description="test_text" />

        <field name="test_textarea" type="textarea"
            label="textarea"  width="100" />

        <field name="test_radio" default="0" type="radio"
            label="test_radio" description="test_radio">
            <option value="1">JYES</option>
            <option value="0">JNO</option>
        </field>

        <field name="test_checkbox1" type="checkbox"
            label="checkbox1" description="test_checkbox1"  />

        <field name="test_checkboxes" type="checkboxes"
            label="checkboxes" description="test_checkboxes" >
            <option value="a">A</option>
            <option value="b">B</option>
            <option value="c">C</option>
            <option value="d">D</option>
        </field>
    </fieldset>
</field>

p.s.: I need make this pull against 3.5-dev branch, or?

avatar Fedik Fedik - open - 10 May 2015
avatar zero-24 zero-24 - change - 10 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 10 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 10 May 2015
Category Layout Libraries
avatar zero-24 zero-24 - change - 10 May 2015
Title
Layout for the field repeatable
Layout for the field repeatable
Status New Pending
avatar zero-24
zero-24 - comment - 10 May 2015

@Fedik How can we test this? Can you add some test instructions?


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

avatar Fedik
Fedik - comment - 10 May 2015

@zero-24 added :wink:

avatar Devportobello
Devportobello - comment - 11 May 2015

@test Success
Tested with custom module, see to install: https://github.com/Devportobello/joomla-attach-PR-6917

avatar zero-24 zero-24 - alter_testresult - 11 May 2015 - Devportobello: Tested successfully
avatar dgt41
dgt41 - comment - 11 May 2015

@test ok!
Can I make one more suggestion?
Since you use JHtml for the script changing line 83 to:
JHtml::_('script', 'system/repeatable.min.js', false, true, false, false, true);
and renaming repeatable.js to repeatable.min.js and repeatable-uncompressed.js to repeatable.js we 'll save some bytes over the wire!
repeatable-uncompressed.js has also to stay for B/C, I think (?)

avatar Fedik
Fedik - comment - 11 May 2015

I think better keep default behavior,
About repeatable.min.js: there all files that in media/system/js have format similar to repeatable.js and repeatable-uncompressed.js so here better stay as is .... I think it is another issue

@phproberto can you please check whether here is the right place for the layout file? currently 'libraries.joomla.form.fields.repeatable'

avatar zero-24
zero-24 - comment - 11 May 2015

repeatable-uncompressed.js has also to stay for B/C, I think (?)

IIRC the uncompressed is used with debug enabled.

avatar Devportobello
Devportobello - comment - 12 May 2015

Want to point out, here i use another "way" to "store" the layout field, so what are the right "way" ?

avatar Fedik
Fedik - comment - 12 May 2015

@Devportobello I think should be similar path as for the field file,
in case with calendar: the field in libraries/joomla/form/fields/calendar.php
so the layout need place in that way: libraries.joomla.form.fields.calendar

@phproberto know more, will wait his feedback

avatar dgt41
dgt41 - comment - 12 May 2015

@zero-24 This needs a milestone 3.5
@Fedik @Devportobello Both your PRs as well as few more I did (#5654 #5655 #5871) actually have to wait for the new Layout renderer. There is #3231 and a comment that maybe https://github.com/joomla-projects/cms-naked/blob/master/libraries/cms/renderer/jlayout.php is what will be used is all we have right now. Bottom line, most probably this line will have to be adjusted accordingly to the outcome of the layout render decision!

avatar Fedik
Fedik - comment - 12 May 2015

@dgt41 thank for comment, I totally forgot that part :smile:

avatar designbengel
designbengel - comment - 13 Jun 2015

tested like described with the testmodule - successfull


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

avatar designbengel designbengel - test_item - 13 Jun 2015 - Tested successfully
avatar zero-24 zero-24 - change - 14 Jun 2015
Milestone Added:
avatar zero-24 zero-24 - change - 17 Jun 2015
Status Pending Ready to Commit
avatar zero-24 zero-24 - change - 17 Jun 2015
Title
Layout for the field repeatable
Layout for the field repeatable
avatar zero-24
zero-24 - comment - 17 Jun 2015

RTC Thanks!


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

avatar zero-24 zero-24 - change - 17 Jun 2015
Labels Added: ?
avatar roland-d
roland-d - comment - 3 Oct 2015

@Fedik isn't this pull request superseded by #7829 ?

avatar Fedik
Fedik - comment - 3 Oct 2015

hm, yes and no :smile:
I think PLT should decide ... whether we do the "layouts" for possible deprecated field or not :wink:

avatar roland-d
roland-d - comment - 28 Oct 2015

I don't think we should update a deprecated field, gives the wrong signal to people. Better use the new and improved one :) If you agree, let's close this in favour of #7829

avatar Fedik
Fedik - comment - 29 Oct 2015

you are right :wink:
I close here

avatar Fedik Fedik - change - 29 Oct 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-10-29 07:31:26
Closed_By Fedik
avatar Fedik Fedik - close - 29 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - close - 29 Oct 2015
avatar Fedik Fedik - close - 29 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - change - 29 Oct 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 29 Oct 2015
Milestone Removed:

Add a Comment

Login with GitHub to post a comment