Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » OMG NEW STUFF!

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4
Go to End
Author Topic: 2234 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    Great. Could you please just paste the last 10 lines or so of RelationDataObjectManager.ss the way it is supposed to be? Every time I look at that template, I see the correct number of closing divs.

    Also, paste in FileRelationDataObjectManager if necessary.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: OMG NEW STUFF! Link to this post

    Hi UC

    FileRelationDOM seems to be fine.
    Here are the last lines of the file, red is what I added to fix the issue:

              <% end_if %>            
                <div class="per-page-control">
                   <% if ShowAll %><% else %>$PerPageDropdown<% end_if %>
                </div>
             </div>
          </div>
       </div>
       </div>
       $ExtraData   
    </div>

    Something seems to be wrong with indentation... if you count the opening divs, you'll notice that there's one too much.

    +1 = 1   <div class="bottom-controls">
    +1 = 2      <div class="rounded_table_bottom_right">
    +1 = 3         <div class="rounded_table_bottom_left">
    +1 = 4          <div class="checkboxes">
                   <% if Sortable %>
    +1 = 5             <div class="sort-control">
                      <input id="showall-{$id}" type="checkbox" <% if ShowAll %>checked="checked"<% end_if %> value="<% if Paginated %>$ShowAllLink<% else %>$PaginatedLink<% end_if %>" /><label for="showall-{$id}"><% _t('DataObjectManager.DRAGDROP','Allow drag &amp; drop reordering') %></label>
    -1 = 4             </div>
                   <% end_if %>
              <% if RelationType = ManyMany %>
              <% if Can(only_related) %>
    +1 = 5           <div class="only-related-control">
                    <input id="only-related-{$id}" type="checkbox" <% if OnlyRelated %>checked="checked"<% end_if %> value="<% if OnlyRelated %>$AllRecordsLink<% else %>$OnlyRelatedLink<% end_if %>" /><label for="only-related-{$id}"><% _t('DataObjectManager.ONLYRELATED','Show only related records') %></label>
    -1 = 4 </div>
    <% end_if %>
              <% end_if %>            
    +1 = 5            <div class="per-page-control">
                   <% if ShowAll %><% else %>$PerPageDropdown<% end_if %>
    -1 = 4            </div>
    -1 = 3         </div>
    -1 = 2      </div>
    -1 = 1   </div>
    Here's one missing
       $ExtraData   
    This one is coming from the beginning of the file ---></div>

    Update: Ugh.. the above is really messy.. sorry. I hope you see where the problem is nevertheless ;)

  • mattclegg
    Avatar
    Community Member
    56 Posts

    Re: OMG NEW STUFF! Link to this post

    I cant see a fix to stop the submit button having a really long name in r356 -has this been done?

    & if Image is the last field, the 'Attach Image' button disappears behind the gradient in firefox on a mac. Iv done a screenshot for this, its probably just a css issue. Shall I work out the fix?

    http://urcms.net/overlap-screenshot.png

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    Yeah, I just checked in that fix. It may be different than the one you implemented, so be sure to reconcile your changes when you update.

    2234 Views
Page: 1 2 3 4
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.