App Path in the File Manager


John Clarke
Currently we can specify the path or URL to a source file. It would be nice if we could override the value placed in the app path so that we can organise our files better in the compiled folder.

DecSoft

Hello John,

I think that can imagine what you wanted, but, I am not completely sure about... that is... to me the files are well organized, since scripts come to the scripts folder, styles to the styles folder, other files come to the files folder, and, even entire folders (that we can add) come to a files / folder "as is"...

Maybe you need something like this last "add folder" option? Please, take a look at the "LeafletMaps" sample app. Note that what we do there is to add an entire folder (with all the files required by the library, including images, scripts, styles, etc.) and then we use the Scripts tab of the Files manager to refer to that files (inside the folder).

So, firstly, I think that AB organize well the scripts, styles, other files, etc., but, the "add folder" option give us the ability to organize (if we wanted) the files in another way too. This option is mainly designed to make easy the usage of entire Javascript libraries, but, may can also be good if you want to organize the files in other way than AB do by default.



John Clarke
Basically I want to restructure the compiled folder so that I have :

app/scripts/models
app/script/views
app/script/controllers

So I am just trying to set that up in App Builder


DecSoft

Hello John,

I think the "add folder" option can be good for your purpose. Just look at the "LeafletMaps" sample app. It's not only a question of organize the files inside the compiled folder (not too important, I think...) but also considering the app's files itself... that's what you can see in the "LeafletMaps" sample app: we have a "resources" folder, which contains all what we need.

So, if you create a folder like "resources", and, inside that folders, you put the "models", "views" and "controllers" folders, and you add the "resources" folder with the "add folder" tab of the Files manager, then you get what you wanted. Or maybe you can add the "models", "views" and "controllers" folder separetelly, so that folders becomes in the "files" folder of the compiled app.

I think that can be enough... maybe not exactly as you wanted, because the added folders becomes to the "files" folder of the compiled app, and not to a "script" folder, but... I think can be enough. If you really wanted the "script" folder... you can include the "models", "views" and "controllers" folders inside a "script" folder... so certainly that folder becomes in the "files" folder of the compiled app.

Again, maybe not exactly like you wanted, but I honestly think that can be enough.



John Clarke

That solves my file organisation issue. However I am now getting the following error when I load the plugin for a file that has got IsContent set to true


DecSoft

Hello John,

You are right. There is a bug for these kind of paths which has been solved in this new release of DecSoft App Builder.



John Clarke
Thanks for fixing this issue, for all of the support you provide and for App Builder.

DecSoft

Hello John,

Thanks for fixing this issue, for all of the support you provide and for App Builder.

Always thank you for your trust, sir, and, also for your kindly words. ;-)


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.