Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Problem with simpletreedropdownfield

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1682 Views
  • frabraha
    Avatar
    Community Member
    49 Posts

    Problem with simpletreedropdownfield Link to this post

    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"));      
       }    

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    What do you mean "styling?" SimpleTreeDropdown is just dropdown list of all the items in the class, indented by hierarchy.

  • frabraha
    Avatar
    Community Member
    49 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    Here's what I mean..

    Treedropdownfield

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    When you view the source, are there   entities in the option tags?

  • frabraha
    Avatar
    Community Member
    49 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    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>

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    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?

  • frabraha
    Avatar
    Community Member
    49 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    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">&nbsp;&nbsp;Standardfunksjoner</option><option value="43">&nbsp;&nbsp;&nbsp;&nbsp;Webstruktur</option><option value="44">&nbsp;&nbsp;&nbsp;&nbsp;Artikler</option><option value="45">&nbsp;&nbsp;&nbsp;&nbsp;Nyheter</option><option value="46">&nbsp;&nbsp;&nbsp;&nbsp;Filarkiv</option><option value="47">&nbsp;&nbsp;&nbsp;&nbsp;Kontaktskjema</option><option value="48">&nbsp;&nbsp;&nbsp;&nbsp;Statistikk</option><option value="49">&nbsp;&nbsp;&nbsp;&nbsp;Brukeradministrasjon</option><option value="35">&nbsp;&nbsp;Tilleggsmoduler</option><option value="36">&nbsp;&nbsp;&nbsp;&nbsp;Nyhetsbrev</option><option value="37">&nbsp;&nbsp;&nbsp;&nbsp;Responsskjema</option><option value="38">&nbsp;&nbsp;&nbsp;&nbsp;Billedgalleri</option>

  • frabraha
    Avatar
    Community Member
    49 Posts

    Re: Problem with simpletreedropdownfield Link to this post

    Have you figured out why this is happening in the popup field and maybe how to solve this little problem?

    1682 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.