M
M
mcrack252018-12-14 19:56:14
DLE
mcrack25, 2018-12-14 19:56:14

DLE, how to upload multiple files and output in a specific location?

Hello, who tried to make templates for DLE, I need to do the following thing in the template:
Through the admin panel, so that files are loaded, to these files so that you can make some kind of postscript (for example: a mod for the game), and display these files at the very bottom in a separate block, in which there will be a postscript, name and size of the uploaded file, and files so that you can upload an unlimited number.
Maybe some module is usually used for this or is the engine itself modified somehow?
5c13e0d2d599a887983407.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mcrack25, 2018-12-22
@mcrack25

Here I also figured it out, in general, you need to create an additional field in the form of several lines, enable a visual editor on it, remove protection from all kinds of links and tags in the editor (there is such a checkmark there).
Then an additional field with a visual editor will appear in the news itself, in which there is a button to insert a file, insert, save.
We set up the output of an additional field in the template, we set up the display of the file in the attachment.tpl file.
Well, everything looks the same.

S
Sergey Vladimirovich, 2018-12-14
@spamboo

https://sdelaemblog.ru/dopolnitelnye-polya-dle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question