Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

База знаний - Доп. поле - Загрузка файла

Featured Replies

Posted

Создал страницу релизы как у вас на этом форуме.
Вопрос есть в дополнительном поле "Загрузчик файлов"
Расширения выставил zip и rar

1.png2.png

 

 

 

 

 

 

 

 

 

 

Вот такие настройки:
В шаблоне списка выводится автоматически и имеет ссылку на скачивание вот такую:
 

http://bget.ru/applications/cms/interface/file/file.php?record=19&database=2&file=monthly_2016_07%2FNulled_zip.0a58087279b71ee0b7798a23983ee1c4

все ОТЛИЧНО! файл скачивается и расширение остается .zip

А вот отображение в шаблоне записи, проблема в самом шаблоне я вывожу тегом {$record->customFieldDisplayByKey('file-nulled', 'display')} и ссылка получается:

http://bget.ru/uploads/monthly_2016_07/Nulled_zip.0a58087279b71ee0b7798a23983ee1c4

в чем соль:
При скачивании расширение  это ТОКЕН т.е. ".0a58087279b71ee0b7798a23983ee1c4"

 

  • Author

Подскажите как работает file
{file="$file" extension="[string]"}
Outputs the URL to a file stored by IPS4's file handling classes.

Can be used in CSS files.

Parameters
$file - Either an instance of the \IPS\File class, or a string representing the stored URL to the file
extension - The file storage extension used to originally store the file, e.g. calendar_Events. If none is specified,core_Attachment is assumed.

$file - понятно что url до файла, а вот extension что, как и зачем не могу понять
Подскажите кто что знает.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.