Size: a a a

2020 June 10

К

Камиль in Evolution CMS
и не передал в config.php core и root
источник

MH

Marc Hoogstrate in Evolution CMS
Hi, I like to use attachments in my Formlister form.
Somehow the attachments are not included.

[!FormLister?
&isHtml=`1`
...
&formTpl=`@CODE:
       <form action="[~[*id*]~]" method="post" enctype="multipart/form-data">
...
 <div class="form-group file">
  <input type="file" class="form-control" id="image1" name="image1" />
  <input type="file" class="form-control" id="image2" name="image2" />
  <input type="file" class="form-control" id="image3" name="image3" />
  <input type="file" class="form-control" id="image4" name="image4" />
 </div>
...

`
...
&reportTpl=`@CODE:
...
[+image1+]
[+image2+]
[+image3+]
[+image4+]
`
источник

E

EVO bot Лёшка in Evolution CMS
Marc Hoogstrate
Hi, I like to use attachments in my Formlister form.
Somehow the attachments are not included.

[!FormLister?
&isHtml=`1`
...
&formTpl=`@CODE:
       <form action="[~[*id*]~]" method="post" enctype="multipart/form-data">
...
 <div class="form-group file">
  <input type="file" class="form-control" id="image1" name="image1" />
  <input type="file" class="form-control" id="image2" name="image2" />
  <input type="file" class="form-control" id="image3" name="image3" />
  <input type="file" class="form-control" id="image4" name="image4" />
 </div>
...

`
...
&reportTpl=`@CODE:
...
[+image1+]
[+image2+]
[+image3+]
[+image4+]
`
Читай документацию ©(Pathologic)
http://docs.evo.im/03_extras/formlister.html
источник

MH

Marc Hoogstrate in Evolution CMS
It used to work if I'm right..
источник

AS

Aliaksandr Sadouski in Evolution CMS
Marc Hoogstrate
It used to work if I'm right..
attachments=image1,image2,image3,image4
источник

AS

Aliaksandr Sadouski in Evolution CMS
Something like this
источник

AS

Aliaksandr Sadouski in Evolution CMS
источник

MH

Marc Hoogstrate in Evolution CMS
Hmm, I did it correct right? <input type="file" class="form-control" id="image1" name="image1" />

type=file name=image1
источник

MH

Marc Hoogstrate in Evolution CMS
I could also use name=image[] for multiple files but this should work too
источник

MH

Marc Hoogstrate in Evolution CMS
Ah you mean, &attachments=`image1,image2,image3,image4`
источник

MH

Marc Hoogstrate in Evolution CMS
Now it seems to work 🙂

Needed to add value I think.
<input type="file" class="form-control" id="image1" name="image1" value="[+image1.value+]" />

Also added: &attachments=`image1,image2,image3,image4`
источник

MH

Marc Hoogstrate in Evolution CMS
Aliaksandr Sadouski
attachments=image1,image2,image3,image4
+
источник

A

Axenia in Evolution CMS
Marc (60.11) увеличил карму webber_12 (2741.24)
источник

В

Влад in Evolution CMS
Хз конечно, но может кому надо будет. Накидал на скорую руку виджет для создания кэша. На правильность совсем не претендует, страницы дергаются тупо file_get_contents, позже может перепишу, пока нет времени.
источник

В

Влад in Evolution CMS
источник

В

Влад in Evolution CMS
источник

В

Влад in Evolution CMS
ах да, писал под 1.4.x, на других даже не смотрел
источник

P

Pathologic in Evolution CMS
+ за кэшированность сайта ((:
источник

A

Axenia in Evolution CMS
Pathologic93 (2651.32) увеличил карму wlatt (101.09)
источник

В

Влад in Evolution CMS
Надо было кашэрность написать )
источник