? Success

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
3 Jun 2014

We lost this functionality in Joomla 3 because we want to be able to nest within for the purpose of making repeatable fields. This is a better xpath that avoids selecting tags that are nested within other tags but does select them in any other structure. In other words, this will work again:

<fieldset>
    <fields>
        <field />
    </fields>
</fieldset>
avatar okonomiyaki3000 okonomiyaki3000 - open - 3 Jun 2014
avatar okonomiyaki3000
okonomiyaki3000 - comment - 3 Jun 2014
avatar okonomiyaki3000
okonomiyaki3000 - comment - 17 Jun 2014

That's funny. The tracker page seems to be broken. I just get "Call to undefined function renderAssociationList()". Oh well, I assure you this issue is real and this fix is legit.

avatar Bakual
Bakual - comment - 17 Jun 2014

Yep, tracker is down. Ticket is open since a day or so...

avatar okonomiyaki3000
okonomiyaki3000 - comment - 25 Jul 2014

As the tracker item explains, since 3.0, we have lost some flexibility in the structuring of jform xml files. In the past, it was possible to nest any number of <fields> tags within a <fieldset> tag. We lost this so that we could get repeatable fields but we didn't need to lose it. There's a way we can have both.

After applying this patch, you should be able to structure a jform xml document with some <fields> tags nested within a <fieldset> tag (and within each other as well) and the form will still work. Furthermore, you can have repeatable tags and they will also work.

avatar wilsonge
wilsonge - comment - 27 Jul 2014

@test Works as expected. Including with the repeatable form fields

avatar Bakual Bakual - close - 27 Jul 2014
avatar Bakual Bakual - change - 27 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-27 15:08:43
avatar Bakual Bakual - close - 27 Jul 2014
avatar okonomiyaki3000 okonomiyaki3000 - head_ref_deleted - 28 Jul 2014
avatar Sophist-UK Sophist-UK - reference | a77486f - 7 Oct 14

Add a Comment

Login with GitHub to post a comment