7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Problem with simpletreedropdownfield
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 1510 Views |
-
Problem with simpletreedropdownfield

31 October 2009 at 2:28am Last edited: 31 October 2009 2:30am
Having a little problem with the simpletreedropdownfield.
It doesn't show any styling with the sitetree at all, its just a simple list of the menu showing. It doesn't show where the submenu's are. Everything works its just the dropdownfield that doesn't show any styling in the list.
Doesn't the dropdownfield work right in a popup field?Here's the code for the popup field with the simpletreedropdownfield..
function getCMSFields_forPopup_intern() {
return new FieldSet( new SimpleTreeDropdownField("InternalLinkID", "InternalLinker", "SiteTree"));
} -
Re: Problem with simpletreedropdownfield

31 October 2009 at 2:39am
What do you mean "styling?" SimpleTreeDropdown is just dropdown list of all the items in the class, indented by hierarchy.
-
Re: Problem with simpletreedropdownfield

31 October 2009 at 5:07am
When you view the source, are there entities in the option tags?
-
Re: Problem with simpletreedropdownfield

2 November 2009 at 9:33pm
No, doesn't look like it.
Heres the source:
<select id="DataObjectManager_Popup_AddForm_InternalLinkID" name="InternalLinkID"><option value=""> </option><option value="76">News module successfully installed</option><option value="13">Velkommen!</option><option value="31">RSS</option><option value="33">E-handelsløsning</option><option value="36">Nyhetsbrev</option><option value="42">Standardfunksjoner</option><option value="43">Webstruktur</option><option value="78">Denne burde vises</option><option value="6">Produkter fra Webcronize</option><option value="34">Filarkiv prosjekt</option><option value="35">Tilleggsmoduler</option>
-
Re: Problem with simpletreedropdownfield

3 November 2009 at 2:38am
But the same code, outside of the popup, renders correctly?
If you edit a file in the Files & Images section, do you get a proper SimpleTreeDropdown for the folder?
-
Re: Problem with simpletreedropdownfield

3 November 2009 at 3:44am
The dropdownfield in Files & images section looks fine.
Here is the source when the dropdownfield isn't in the popup:
<label class="left" for="Form_EditForm_InternalLinkID">InternalLinker</label><div class="middleColumn"><select id="Form_EditForm_InternalLinkID" name="InternalLinkID"><option value="13">Velkommen!</option><option value="6">Produkter</option><option value="42"> Standardfunksjoner</option><option value="43"> Webstruktur</option><option value="44"> Artikler</option><option value="45"> Nyheter</option><option value="46"> Filarkiv</option><option value="47"> Kontaktskjema</option><option value="48"> Statistikk</option><option value="49"> Brukeradministrasjon</option><option value="35"> Tilleggsmoduler</option><option value="36"> Nyhetsbrev</option><option value="37"> Responsskjema</option><option value="38"> Billedgalleri</option>
-
Re: Problem with simpletreedropdownfield

5 November 2009 at 9:26pm Last edited: 5 November 2009 9:26pm
Have you figured out why this is happening in the popup field and maybe how to solve this little problem?
| 1510 Views | ||
| Go to Top | Next > |

