Soma Posted March 5, 2013 Share Posted March 5, 2013 When I change template of a page with images (in this case of home in default install) and the new template has no images field, the images resist in the assets folder. Is something on my local server or is this unintended behaviour? Since image are still there and when I change template back with images field, they also aren't reinserted, which means they're not in database. So they're lost in nowhere. Link to comment Share on other sites More sharing options...
Joss Posted March 6, 2013 Share Posted March 6, 2013 I would guess that since you are not doing a specific action of removing the images field, then there is no command to delete the actual files. Link to comment Share on other sites More sharing options...
Soma Posted March 6, 2013 Author Share Posted March 6, 2013 But it highlights the images field and ask to really change template then deletes entries in db but physical images stay. Link to comment Share on other sites More sharing options...
ryan Posted March 6, 2013 Share Posted March 6, 2013 I think this happens because the code that removes the fields from templates doesn't know anything about specific fieldtypes. In that respect, it's different than a delete action. I'll think on this some more and see if there's an alternate way. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now