Anthony van Beek

@nightjarnz I edited my snippet, I had private static $inline_editable = false; but it doesn’t seem to register?

Anthony van Beek

What do I do in the getCMSFields function for each to have a function block in which I can add photo’s? I’ve tried many variations but I just don’t seem to get anything other than “Title” & “Show Title?” checkbox to show.

Files: Requires logging in with Slack to view/download
Hi there, can anyone help me with Elemental ^4?
Anthony van Beek

Hey there, how can I get SS CMS JS to use sourcemaps?

Anthony van Beek

When I try to expose the Block I get

  1. [Emergency] Uncaught InvalidArgumentException: Non-existent classname "Block"
  2. GET /dev/graphiql?flush=&flushtoken=c10866c8bd1bb1db96594852044f5aa2
  3. Line 73 in /app/vendor/silverstripe/graphql/src/Scaffolding/Traits/DataObjectTypeTrait.php
  4.  
  5. Source
  6. 64 * @return $this
  7. 65 */
  8. 66 public function setDataObjectClass($class)
  9. 67 {
  10. 68 if (!$class) {
  11. 69 throw new InvalidArgumentException("Missing class provided");
  12. 70 }
  13. 71
  14. 72 if (!class_exists($class)) {
  15. 73 throw new InvalidArgumentException("Non-existent classname \"{$class}\"");
  16. 74 }
  17. 75
  18. 76 if (!is_subclass_of($class, DataObject::class)) {
  19. 77 throw new InvalidArgumentException("\"{$class}\" is not a DataObject subclass");
  20. 78 }
  21. 79
chillu

The YAML example above isn’t using the fully qualified name of the DataObject - which would be something like DNADesign\Element\BaseElement (haven’t checked in code)

Anthony van Beek

I got

  1. ImageBlock:
  2. fields: '*'
  3. operations:
  4. read: true
  5. readOne: true
Anthony van Beek

@unclecheese yeah I have

  1. types:
  2. ImageBlock:
  3. fields: '*'

but my … on only reveals Block