New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inhertitance of settings - empty XML value breaks it #712
Comments
...indicates that you don't use the clear value wizard which means an empty value gets stored. Perhaps you misunderstand the purpose of
We don't actually control the HTML output of fields. We are, by choice, limited to using the options presented to us through TCEforms - which supports a default value, but no custom stylings or HTML modifications based on the value of the field. We can modify the value itself, but this would cause ill effects when saving the data. We cannot on-the-fly translate or append to labels coming from LLL files so we are quite unable to fulfil that request. |
If I remove the wizard.link within the input field AND remove the value by hand AND check the clear checkbox - the XML looks like this in id=7
Seems to be quite hard to misunderstand that. As you can see I've set the disable flag. But in id=3 it is defined for subpage inheritance. But IMHO if this value is empty, the information should be taken from constants if set there and not no output in FE. As long as the XML is not written at all, it happens like expected. Only if the XML is within the DB field the pain starts.
I did no remove the value by hand but checked the clear checkbox and hit save. The DB looks like this -Is this wanted?:
Perhaps you see the magic of the idea. Perhaps somebody of the core team does also. It seems to me useful to have a repoding service for purposes like this. Perhaps a forge issue in core makes sense?! |
|
Related to #727 |
Summary
While this problem is with pages I think the problem itself relies in flux.
I want to give editors the opportunitiy to define where the mainmenu shall begin. I have a constant for this and a setting in the flux page-configuration form of the page settings.
For somplicity I've got 2 pages. id=3 and id=7. id=7 is a child of id=3. As soon I set something in Page Configuration - subpages of id=3 the expected value is set in FE as expected and inherited by id=7 in FE.
shortened:
<field index="settings.mainMenuRootPageUid"> <value index="vDEF">3</value> </field>
of id=7<field index="settings.mainMenuRootPageUid"> <value index="vDEF"></value> </field>
If I truncate the pages:tx_fed_page_flexform field in DB of id=7 the inheritance is working again
And If I do not use the flux but constants at all it also works as expected but granting editors access to the constants seems to me not the real deal.
The sheet looks like this
FE Template looks like this
The text was updated successfully, but these errors were encountered: