-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locations of populated images are not recognized by the CMS #4
Comments
Right now I'm fixing this by adding |
Is this still an issue? I haven't tried this module yet. If so, is it fully fixed using your technique ( |
I havent worked on that project for while, but I believe it solved my issue then. |
Ok no problem, just curious. Either way, thanks for not only posting about the issue but documenting your fix (for the rest of us)! |
Looks like it's just not populating the file name? @patricknelson I can take another look at this over this week but if you come across a fix let me know. Running filesystem::sync() is one, but would be interested to work out why it's out of sync in the first place. |
I actually posted my comment above when researching tools to assist in provisioning content on the site I'm working on but I end up just writing a bash script. It just synchronized our development environments with a central server to keep our dev's working with the same files & database. So, I haven't taken time to look into this myself since I've never even tried this module! |
Ha yes we had a similar situation and the reason this exists. 8 devs on the team, 2 testers, 1 code base. Populate was super useful, git pull and do a dev/build and you'd all be on the same page. Easy to share state around. |
5 devs, 1 tester and 0 (to -1) time. Ok, I decided to test this. Got the same result. Reading through this code though my hunch is that it's probably not setting the title, which is why the title isn't set. It sounds facetious but I'm not seeing any mechanism here throughout which would do anything to set that title. The Filename, sure. Not the title, hence null. So, I was looking through
Wat? Ok... why not just work with the DataObject model? Is it really that messy or that big of a deal? If you've got good separation of concerns then doing simple tasks wouldn't be so damned complicated and things just fall into place :) Maybe I'm just being a bitter old man. $obj = parent::createObject($class, $identifier, $data); That raw |
By the way I get that comment above from |
I've started using the "Default assets". I love the concept, though it seems images that are placed in a directory are not properly picked up by the CMS.
It takes for me to sync assets via the cms for this to happen. See screenshots of the issue:
Image appears in the root of assets - with no title:
![screenshot 2014-03-11 22 08 10](https://camo.githubusercontent.com/d8faea3e564fafed834ed9dc57543433c374529b6c231d3eef073205dfae6d8c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313331363533332f323339313034302f66346334363130342d613936312d313165332d396133342d3930363063653532323665372e706e67)
Even though it should have appeared in this directory (that's also where it's placed):
![screenshot 2014-03-11 22 08 23](https://camo.githubusercontent.com/c76cf99c6104708907286f8d2c81f5e3da6d1b6b7069a25027e8e4a354740922/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313331363533332f323339313034312f66346335393836322d613936312d313165332d393735392d3637343635616464396233362e706e67)
Initially I thought I could fix this by adding the following to
PopulateFactory.php
before returning the object, as to my knowledge that's what needs to be triggered, it's not working though, so I'm a little lost:This is my yml:
The text was updated successfully, but these errors were encountered: