How to add an upload FileField in the Silverstripe User Forms module - file-upload

I have a Silverstripe website where the admins can create online forms using the userform module.
On an older website I do work for the userform has a form option for 'File Upload Field'.
On my current website I've downloaded the latest version of the userform module but the option for file upload is not listed in the form options. Does anyone know what I'm missing/ what I need to do to give admins the ability to add a file uploader to the page?
Here's an image of the available options,
Silverstripe form dropdown

It looks like the EditableFileField currently requires the Secure Assets Module to work. If the Secure Assets Module is not installed, the File Upload Field does not appear.

For Silverstripe Userforms module 4.5 and Silverstripe 3.6, if you really really don't want to install Secure Assets Module to enable File upload field just as me, you can create a secureassets.yml file in mysite/_config folder and add some yml configuration as below:
---
Name: userformsnosecurityoverride
After:
- '#userformsnosecurity'
Except:
ModuleExists: secureassets
---
EditableFileField:
hidden: false
This will override the default settings and make the file upload field visible.

Related

How I can add new module to odoo 15

I am new to Odoo and I need to know what is the basic steps of adding a new module.
More specifically I need to know how to add custom modules to the addons-path.
In Odoo document they explain this step as this
$ ./odoo-bin --addons-path=../custom,../enterprise/,addons
but did not work for me.
For adding a new module you should do these steps:
Build your module with your written code or scaffold command.
Add the module path in your config file at addons-path = '',''
Change your URL like this: http://localhost:8091/web?debug=1
Go to apps and from up tabs
Select update app list and refresh your page.
Now you can see your module in the apps.
If you are not getting your custom module in Odoo after adding the path then you can try to add the full path of your folder into addons-path.
To get the full path of your custom folder just right-click on the folder and go to properties and find the path of your folder.
Also, you have to make sure to Apply the Update App list in your Odoo App Dashboard after restarting the server with custom addons.

Can't upload theme to Prestashop

So I purchased a prestashop theme from TemplateMonster and the zip file is 324MB and when I try to upload the file in admin, I get an error that the file is too large. I know I can change php settings and maybe get it to work, but I figured I would just ftp it to my server, but filezilla drops the connection when I try to upload it. First, before I change php settings, will it work with such a large file? Also, when I look inside the zip file, I see a .sql file, a psd.zip, readme_en.zip, and 2 other zip files. Do all these files need to be uploaded? Just asking because I'm not sure why the PSD.zip file would need to be included.
413 Request Entity Too Large
Probably the main theme package contains additional assets, but in order to have your theme installed in Prestashop you just need the "main" ZIP theme
(the one that once unzipped contain folders like /assets /templates /modules etc.)
Then you can choose to upload it from your backoffice (you need to set the PHP max_upload_filesize accordingly) or copy the zip directly in your /themes directory and choose the "Import with FTP" option for the "Themes & Logo > Theme > Add new theme" backoffice page.
If you're having trouble with that method too, you can use the "Import from the web"
method by uploading your ZIP in a reachable public URL

How can I install apps/modules in odoo v9

I have started using odoo and I would like to install some modules like Custom Invoice template, Pls recommend some docs or steps to install new modules.
Activate the developer mode by doing to About page (by clicking the user profile picture).
Go to settings choose "Users" from the menu Click the current user, and edit it by checking "Technical features"
Refresh the page
Unpacked the module at ../server/openerp/addons
Go to modules under settings and Click the "Update module list" menu item.
The app should display under local modules, so find your new module in Settings > Modules > Local Modules and click on the install button.
I am just posting the best steps:
create a separate folder custom_addons and place it inside the located folder of odoo in parallel with addons folder like
/opt/odoo/custom_addons ,
Now your odoo directory have two module source /opt/odoo/addons and /opt/odoo/custom_addons.
It's time to include this newly create folder in the addons path of odoo server .
Open your odoo server config :nano /etc/odoo-server.conf
append the newly create addons in addons_path like:
addons_path = /opt/odoo/custom_addons,/opt/odoo/addons
save the file and restart your odoo server .
Now place your new modules [create/purchased] in side the
custom_addons then update module list and search the name of module and install it.

DNN Content slider module not working

I am using DNN 8 and i need slider for the home page. I have did extensive search about this on internet and i found Content Slider module.
I have added this module in the page and when i add content slider module a message appears in the pane like below
No content sliders have been created yet. Please use the Actions Menu
to create a slider.
So i used action menu to add slider, when i click Add Slider option from the action menu i get the error like below image.
Click image to see error
Not understanding what to do. So please any help me to solve this error.
This is a bug related to DNN8 deprecating support for older controls. If the module is open source you should download the source code and add references to DNN8 so that you can recompile it to get the proper references.
Steps:
Setup your development environment (link)
Download Source Code (_source) version of the module
Install _Source package via the Host/Extensions page (link)
Open the CSProj file in Visual Studio 2015
Remove reference to DotNetNuke.Web
Add reference to DotNetNuke.Web.Deprecated (found in the website's BIN folder)
Compile in Release mode to package (assuming the module supports my BUILDSCRIPTS)
Install the created _INSTALL file to your production DNN site
If the module doesn't use my BUILDSCRIPTS just compile and copy the DLL generated to your production website BIN folder
Chris

Uploading of file on Prestashop order page

I need to allow uploading a file (pdf or jpg) for customers on the order page (shopping-cart.tpl).
How can I make this file upload widget and attach it to the order so it appears in back office.
My Prestashop version is 1.6.0.14
The only solution I found was this module (not free) http://addons.prestashop.com/es/21373-file-uploads.html
In another webpage I found the free solution (or atleasts I hope it helps to you):
https://www.prestashop.com/forums/topic/456742-free-module-file-upload-let-customers-upload-other-files-besides-images/
It works in a Prestashop 1.6.x.x with a free, personalized and overloaded theme.
If anyone can find more modules, will be welcome!
You can upload a jpg file by default (activating the option in product page in backoffice), but not a PDF. This is the reason you must use a module, to modify prestashop default "only upload images".
With the module I post in last modification, you can do this, including select the extensions you allow to upload.
Instructions:
1. go to the link above.
2. download the module .rar file
3. go to prestashop admin menu>modules>add new module>upload the .rar you just downloaded
4. go to module search input in modules section, search fileupload, and click in install button.
5. Select the extensions you need allow to the users to upload.
6. Check if the "upload/personalization" option is activated for each product you need to allow uploads.
NOTE: This module modifies the CORE of Prestashop, can cause inestabilities (I tryied and worked in a 1.6.x.x prestashop at 18/05/2016)