lerni

sry read to fast - duno but from the same controller or different one?

lerni

SilverStripe\View\Requirements: write_js_to_body: true force_js_to_bottom: true

alt

how do I make my Requirements::javascript() go to the bottom of the list instead of the top?

null

Does anybody know why vue cli (using yarn build) generates output files like this dist/js/app.4bffc7ac.js with the hash in it by default? Just wondering what the reasons for it are before I look into turning it off

null

To that end, filenameHashing: false in vue.config.js is a thing.

  1. module.exports = {
  2. filenameHashing: false
  3. }
null

Looks like it's done for cache-busting: https://cli.vuejs.org/config/#filenamehashing, good to know

Show 1 attachment(s)
cli.vuejs.org  
Configuration Reference | Vue CLI

:hammer_and_wrench: Standard Tooling for Vue.js Development

Hide attachment content
✔️ (1)
CptPillow

okay will give it a look over

theruss
  • Apply ElementalPageExtension to your DataObject(s) in YML
  • Override elemental's BaseElementCMSEditLinkExtension with your own
  1. SilverStripe\Core\Injector\Injector:
  2. DNADesign\ElementalList\Extension\BaseElementCMSEditLinkExtension:
  3. class: Path\To\My\Extension\BaseElementCMSEditLinkExtension

BaseElementCMSEditLinkExtension:

  1. <?php
  2. ...
  3. public function updateCMSEditLink(&$link)
  4. {
  5. /** @var $owner BaseElement */
  6. $owner = $this->owner;
  7.  
  8. $relationName = $owner->getAreaRelationName();
  9. $parent = $owner->getPage(true);
  10.  
  11. if (!$parent) {
  12. return;
  13. }
  14.  
  15. return Controller::join_links(
  16. singleton(MyDataObject::class)->CMSEditLink($parent->ID),
  17. 'ItemEditForm/field/' . $relationName . '/item/',
  18. $owner->ID,
  19. 'edit'
  20. );
  21. }
  22. ...