Jump to:

7913 Posts in 1355 Topics by 930 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to End
Author Topic: 37789 Views
  • JonoM
    Avatar
    Community Member
    100 Posts

    Re: Bug Reports Link to this post

    Hi Uncle Cheese,

    I documented what I think is a bug here http://www.silverstripe.org/dataobjectmanager-module-forum/show/16435 before I realised there was a separate thread for that.

    Cheers

  • marcink
    Avatar
    Community Member
    89 Posts

    Re: Bug Reports Link to this post

    @mdaum, could you check the "file" table in your db?
    are the foldernames/paths correct?

    i had the same issue and when i checked the db i noticed that the paths did not match.

  • merrick_sd
    Avatar
    Community Member
    78 Posts

    Re: Bug Reports Link to this post

    3 june 2011 - DataObjectmanager - live /Dev mode diferences?

    I am using silverstripe 2.4.5 with DataObjectManager-master-HEAD

    If the site is in dev mode my SimpleHTMLEditorField shows up
    If the site is in live mode my SimpleHTMLEditorField doesn't show up

    I looked at the popup frame and there are differnces
    these being

       <!-- dev -->
    <script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/thirdparty/prototype/prototype.js?m=1307087338"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/thirdparty/behaviour/behaviour.js?m=1307087303"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/prototype_improvements.js?m=1307087258"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/i18n.js?m=1307087255"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/lang/en_US.js?m=1307087257"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/Validator.js?m=1307087264"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/thirdparty/jquery/jquery.js?m=1307087311"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/dataobject_manager/javascript/jquery.wysiwyg.js?m=1307090247"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/thirdparty/scriptaculous/scriptaculous.js?m=1307087340"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/thirdparty/scriptaculous/controls.js?m=1307087339"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/layout_helpers.js?m=1307087257"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/ComplexTableField_popup.js?m=1307087254"></script>

    <!-- where as live gives -->
    <script type="text/javascript" src="http://www.micromaterials.co.uk/assets/_combinedfiles/base.js?m=1307077844"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/lang/en_US.js?m=1305537654"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/Validator.js?m=1305537658"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/dataobject_manager/javascript/jquery.wysiwyg.js?m=1307021392"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/thirdparty/scriptaculous/scriptaculous.js?m=1307029998"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/assets/_combinedfiles/leftandmain.js?m=1307077847"></script><script type="text/javascript" src="http://www.micromaterials.co.uk/sapphire/javascript/ComplexTableField_popup.js?m=1305537653"></script>

    don't think you need this for diagnosis but

    myside/code/banner.php cmsfields relevant extract

       new SimpleHTMLEditorField('BannerContent','HTML')

    --

    eg full code extract

    function getCMSFields(){
       $source = DataObject::get("SiteTree");
       $optionArray = $source->toDropDownMap($index = 'ID', $titleField = 'Title', "--- select page ---", $sort = "Sort");
    if($source) foreach( $source as $page ) {
          $optionArray[$page->ID] = $page->MenuTitle;
          }
          
          $fields = new FieldSet(
          //new DropdownField("AllSameASID","Set Links Same As",$optionArray),
          
          
       new ImageField('bannerimage','bannerimage'),
       
       new CheckboxField("sizebywidth", "LEAVE MY IMAGE Alone!! (disables auto resize on this image)"),
       new TextField('BannerAlt', 'Imag Alt'),
       new SimpleHTMLEditorField('BannerContent','HTML'),

       new DropdownField("bannerurlID","Link To Page",$optionArray)
    );

    return $fields;
       }
       

    I can see there are diference is JS includes but how would i solve

  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Bug Reports Link to this post

    I have a manymanyDOM setup that uses $Manager->setOnlyRelated(true); That works as expected until I set permissions with something like this $Manager->setPermissions(array('add','edit')); When that's added the checkbox for "Show only related records" disappears. Any idea why, or how I can fix that?

    37789 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
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.