if(schema && entry){
for (var index = 0; index < schema.length; index++) {
var schemaItem = schema[index];
//Select the value from the entry.fields array
var valueItem = entry.fields[index];
// Works only 1 time
//var agregar = '~/718_APP';
//var valueItem = agregar + entry.fields[index];
//var valueItem = '~/718_APP' + entry.fields[index].replace(', ', ', ~/718_APP');
//Create new object to push into details above (so our angular view is much neater)
var itemToPush = {
name: schemaItem.name,
value: valueItem,
viewName: schemaItem.view,
view: umbRequestHelper.convertVirtualToAbsolutePath('~/app_plugins/umbracoforms/Backoffice/common/rendertypes/' + schemaItem.view + '.html')
};
Now I'm trying to use urlrewriting to redirect
But I do not know how to parameterize this feature so that it only applies with items of type "entries"
Wrong Route of Umbraco Forms entries
Hi everyone! Its me again. I've a little problem with routes in entry forms.
Apparently some "virtual root" config in IIS cause some problems to access uploaded files.
In form/entries/ when click in some item it doesn't show.
The url requests and save in the DB is
but the Url that can access the file is
There are some config file where I can add the "715_APP" string?
thanks!
Well, I could solve this by myself by adding the "media" folder inside IIS as a virtual directory.
Well adding the Virtual Path is no longer an option.
I've tried the following to get '~ / 718_APP' added to the path that works to read the uploaded entries.
This works fine but only for the first item. If there are 2 attachments in the array, the second does not work
e.g.
The route that does not work
http://www.dom.com/media/forms/upload/Form81eb84de-7023-41b8-a2df-10bcf0f5e5fd/518f5e7a-033a-4d34-8379-2a9a99a7d178/Turnos-MunicipalidaddeCrdoba.pdf
The route that works
http://www.dom.com/718APP/media/forms/upload/Form81eb84de-7023-41b8-a2df-10bcf0f5e5fd/518f5e7a-033a-4d34-8379-2a9a99a7d178/Turnos-MunicipalidaddeC_rdoba.pdf
e.g
this only work for the first item
http://www.dom.com/718APP/media/forms/upload/Form81eb84de-7023-41b8-a2df-10bcf0f5e5fd/518f5e7a-033a-4d34-8379-2a9a99a7d178/Turnos-MunicipalidaddeCrdoba.pdf, http://www.dom.com/media/forms/upload/Form81eb84de-7023-41b8-a2df-10bcf0f5e5fd/7741c295-4305-48af-9c63-7407de8fd6bc/WebCMSBANCOR-ManualdeUsuario.pdf
this does not work:
http://www.dom.com/718APP/media/forms/upload/Form81eb84de-7023-41b8-a2df-10bcf0f5e5fd/518f5e7a-033a-4d34-8379-2a9a99a7d178/Turnos-MunicipalidaddeCrdoba.pdf, http://www.dom.com/718APP/media/forms/upload/Form81eb84de-7023-41b8-a2df-10bcf0f5e5fd/7741c295-4305-48af-9c63-7407de8fd6bc/WebCMSBANCOR-Manualde_Usuario.pdf
But I do not know how to parameterize this feature so that it only applies with items of type "entries"
Anyone?
and
is working on a reply...