Skip to content
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

Better to have media in current_site.slug folder #272

Closed
Uysim opened this issue Jan 5, 2016 · 4 comments
Closed

Better to have media in current_site.slug folder #272

Uysim opened this issue Jan 5, 2016 · 4 comments

Comments

@Uysim
Copy link
Contributor

Uysim commented Jan 5, 2016

I think it would be better if you have option to allow to upload media to current_site.slug/path. I don't want to store my media in current_site.id/path

https://github.com/owen2345/camaleon-cms/blob/master/app/helpers/camaleon_cms/uploader_helper.rb#L74

@owen2345
Copy link
Owner

owen2345 commented Jan 6, 2016

@Uysim done!
you can add this setting in your system.json to enable the site.slug instead of site.id:

"media_slug_folder": true

or you can overwrite the method "upload_directory_name" in site model to customize more.
here a sample to customize camaleon class:
http://camaleon.tuzitio.com/documentation/category/40757-developer-docs/customize-post-type-routes.html

@Uysim
Copy link
Contributor Author

Uysim commented Jan 8, 2016

@owen2345 Thank. Please notify me when you deploy this to ruby gem

@owen2345
Copy link
Owner

owen2345 commented Jan 8, 2016

done!

@Uysim
Copy link
Contributor Author

Uysim commented Jan 11, 2016

@owen2345 Thank a lot

@Uysim Uysim closed this as completed Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants