how to upload with IvoryCkEditorBundle - symfony

Currently, I'm working with the IvoryCkEditorBundle, I read the doc but I didn't understand how can I upload pictures when I submit the Ckeditor area. I saw you can add specifics options like : "filebrowserBrowseRoute" but I don't understand how it work.
See the doc here: the doc

You need an filebrowser, thirdparty, or written by yourself.
As a example you can use Elfinder, configured by yourself or via bundle, like FMElfinderBundle
The readme explains how to configure bundle to work with trsteel CKeditor bundle, but configuration for Ivory should be almost the same

Related

silverstripe fluent locale configuration

I need help to understand the documentation for Fluent, from here Fluent config documentation
The documentation says:
"You can create locales via the /admin/locales CMS section."
When I create a locale, for example english, and then click on it I get at popup saying "Not Found".
Do I need to install the locale somewhere else before using it?
Did you run dev/build?flush=1 when you installed the module? After installation you should have everything read to go, and can start adding locales in the CMS.
Note that when you add your first locale in the CMS, the existing pages you have will not be available in that locale and you'll need to go into the Pages section and publish the pages you want to show up in your default locale.
I ran into this aswell.
The problem were missing files in the resouces folder. The 'Not found.' message in the admin panel refers to missing static assets like js and css files from the resouces folder. Open up your dev tools and inspect the 404'd requests. There you can see which files exactly are missing.

Simple/native file upload with Meteor

I need to upload an avatar to my app. But I want the shortest path to achieve this. Just a file input and a regular upload to my server side. Then I would just save whether or not the user has an avatar on MongoDB, move it to the avatar folder with the same name of the user's id.
But everything I see over there is quite complicated. All of them use third-party packages. But I guess Meteor provide it's own way with a little more configuration, doesn't it?
How can I do this task?
I suggest using CollectionFS plugin for meteor (link: https://github.com/CollectionFS/Meteor-CollectionFS ) - the documentation is pretty straightforward and clear.

How to create attachment field in dxtreme?

I really wanted my form to have an attachment field wherein a user can browse a file. I came to read the documentation but cannot find an example on how to create an attachment field. Does anybody know how to do that?
unfortunately, devexpress does not provide the capability to upload files, my recommendation is to use phoneGap API instead.
PhoneGap File API
PhoneGap Media API
Also Check FileTransfer Object to upload or download files to and from the server.
You will find full examples in the link I provided.

ASP.NET MVC Get image path from different module

For sample I got these two modules.
Module.Admin
Module.Web
Then, all images that are uploaded inside the Module.Admin is place inside it, sitemap goes like this.
Module.Admin
- Content
-- Uploads
--- Images
Now, how can I load as source these images inside the Module.Web > View .cshtml file?
As I've notice, these two modules are having two different ports. I hope you understand what I'm saying. Feel free to ask. Thank you
Sounds like you made the module a web project too? That means that they will run in seperate sites and not be able to share information.
You should probably use plugins instead. I've described how you can do it in my blog: http://blog.gauffin.org/2012/05/griffin-mvccontrib-the-plugin-system/
If you only want to access files you have to setup a custom VirtualPathProvider which can access the files from the other library.

Organise files in SonataAdminBundle: what goes where?

I have regrouped the following information from a few examples in the SonataAdminBundle documentation. Please correct me if there are some errors, but here is what I get in the case of a BlogBundle:
As you can see, in general, each bundle contains both frontend and backend classes.
It seems very messy to mix both frontend and backend in the same folders somtetimes (see Controllers), but to be honest I can't think of an other way...
I actually started handling backend in a separate bundle but then realised that it was also too messy.
So in practice, do people really follow this architecture? Is this the only/best way to handle backend when using SonataAdminBundle?
This beautiful post here is using a different approach...any ideas what I should do to make sure the code doesn't get too messy.
Simple: use folders within locations of mixed content. I put frontend components directly in their respective folders, and add Admin folders for backend files.
You can refer to e.g. a controller in the Admin subfolder like this BlogBundle:Admin\Concert:index, essentially the same works for templates.
On configuration, you could create a config-frontend.yml and a config-backend.yml file, then include it in the original config.yml file. I don't do that though.

Resources