-
Sub-task
-
Resolution: Fixed
-
None
-
None
-
Medium
-
Emptyshow more show less
In this case only one PDF in layout can be provided per task. An extra file upload field will be provided in this case in the file upload form (and analogous in the REST API).
Conception
- new file upload field in TaskAddWindow.js
- xtype: 'filefield',
- name: 'pdfLayouttUpload',
- fieldLabel:'Pdf layout'
- regex for pdf files
- regex: /\.(pdf|testcase)$/i,
- create separate view and viewcontroller for the pdf layout filefield
- with separating the the co
- insert the filefield using the global javascript controller in the plugin
- listen on addtaskwindow render event
- single import back-end
- for moving the pdf file in the temp import directory we listen on the beforeImport event
- the beforeImport is a new event. The event is triggered at 'editor_Models_Import' class -> line 110
- in this point the $_FILES array contains our uploaded pdf file
- after this point the procedure is the same as the zip import
Info
In this case we will have only one pdf layout so we do not need to implement the functionality for displaying more than one pdf layout in the iframe.
can you please explain your comment
I do not understand, what is different here, since also in zip-import we could only have 1 PDF file.