unclecheese

Sadly, you're going to have a bad time. The form is rendered in react, and as such, only react-ready form fields can go in there.

🙁 (1)
MichalKleiner

the JS is loaded and works elsewhere in the CMS, just not in the react-powered file edit modal

😞 (1)
MichalKleiner

probably an obvious thing and it’s not expected to work, but… is there any way around it, apart from reimplementing the field’s features in react?

😕 (1)
MichalKleiner

I’m trying to use dependent-dropdown-field within assets admin, that is entwine powered field from the react interface… the field is showing fine, but entwine doesn’t work

🤔 (1)
alt

hi all, I'm trying to follow the guide at https://docs.silverstripe.org/en/4/developer_guides/model/versioning/#using-the-history-viewer but when I build the module, it complains Unable to resolve path to module 'lib/Injector'

😮 (1)
blueo

normally for me this means you need the source version of the composer packages (composer install --prefer-source). note you need to remove any currently installed ones before it will get a new version. Injector is in the silverstripe-admin package i think

(1)
alt

yeah cheers, I set up a new project to get this to build - --prefer-source did the trick

👍 (1)
alt

I've got it building now, and it's making the graphql query, but the HistoryViewerField is not working at all. Any ideas how to troubleshoot that?

😯 (1)
blueo

There has been quite a bit of discussion about the history viewer - are you using 4.4? That might be better

blueo

yeah my knowledge of the history viewer is pretty slim - but I guess you could use https://github.com/silverstripe/silverstripe-graphql-devtools to debug the query and otherwise just the React Devtools/redux devtools in the browser

Show 1 attachment(s)
silverstripe/silverstripe-graphql-devtools

Tools to help developers building new applications on SilverStripe’s GraphQL API

Hide attachment content
alt

I can see in the network panel the graphql request and response, and it's fine - it's just the history viewer doesn't load, and doesn't give any errors

blueo

Oh, you can do a development build of the admin module JS to let you see component names etc from framework - that might help - could then put breakpoints in the history viewer code etc


Show less replies
Mo

Ugh, ok, it looks like what I am trying to do is access the session before it has been setup by SS 🤨

Mo

So it is literally just the request uses to generate a folder preview (IE list all files inside a folder) for the document store

Mo

OK, I just did a var_dump on a different graphql request, and the session is correct