View more context

 

Andy2708

I just created a new SS4 site from scratch, and my css isn't being updated after changes. I have to run composer vendor-expose to make it happen. That can't be right can it?

Andy2708

I'm also seeing all my uploaded images saving as draft. I know this was an issue on 4.1 but im on 4.3

Firesphere

Both are correct. Changes to CSS in the theme need to be exposed to the resources folder. You can do this by updating your webpack (or whatever tooling you use) to directly write to the public/resources/themes/yourtheme/dist folder, or expose every time

Firesphere

Concerning images, once uploaded, they are in draft. You need to publish manually. If it is on a relation, e.g. a banner image on a Page class, the Page class needs to have a $owns property, that triggers the publication of images (and files) that the page owns

Firesphere

If it is in the HTML Editor that the images are uploaded, I believe you still have to manually publish the images before they render

Firesphere

I'm not 100% sure about the latter though, you might need to test and check that 🙂

Firesphere

What you could do locally, is symlink the public/resources/themes folder to your root themes folder, it would save you having to expose all the time

Andy2708

Ah ok so thats what the $owns property does

Firesphere

Quite a few results about the owns property here: https://slackarchive.silverstripe.org/slack-archive/search/?Query=private+static+owns&Channel%5B%5D=&User%5B%5D=&action_doSearch=Search

Show 1 attachment(s)
slackarchive.silverstripe.org  
Slack Archive - Search for: private static owns | SilverStripe Users Slackarchive

SilverStripe Community Slack archive. SilverStripe Slack Community Archive all the slack conversations searchable and for reference. Search by channel, user, username, or just a query. With solr search facets to show the result count per channel and user

Hide attachment content