Jump to:

7937 Posts in 1537 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SOLVED "Add xxxx" button not displaying

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 846 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    SOLVED "Add xxxx" button not displaying Link to this post

    Hi all,

    I have an issue where I have a dataobjectmanager installed and working well on my computer and several others.

    However, the client has just rung to say that she cannot see any of the "Add [Dataobject name" buttons on the CMS. She has provided a screenshot and I can confirm that there is just a blank white area where the button should be.

    Yes she has flash installed. And I have had her clear her cache in Firefox.

    Any ideas?

  • UncleCheese
    Avatar
    4085 Posts

    Re: SOLVED "Add xxxx" button not displaying Link to this post

    The only condition on that display is the "Add" permission. Make sure you haven't removed it. It should be on by default. If you can, check the markup and make sure it's being drawn. If it's not, it's definitely a permission issue.

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: SOLVED "Add xxxx" button not displaying Link to this post

    Hi UncleCheese. Can you tell me what you mean by the "Add" permission? Both logged in users are setup as administrators. I can see it, the client can't.

  • UncleCheese
    Avatar
    4085 Posts

    Re: SOLVED "Add xxxx" button not displaying Link to this post

    Well, you can set $dom_field->setPermissions(array('add','edit','delete')); for instance. By default, all the perms are on. One thing to check would be to pull the <% if can(add) %> checkpoint out of DataObjectManager.ss and see if it makes a difference.

    If it does, you need to use setPermissions() to get that condition to pass.

    Also, make sure the markup is not being drawn. it could be that the markup is on the page but a CSS bug is causing it not to display.

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: SOLVED "Add xxxx" button not displaying Link to this post

    Thanks mate.

    Found the problem. The customer was logging in using a different user in a different group. The page was set to only be editable by administrators in the CMS.

    Cheers
    Aaron

    846 Views
Page: 1
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.