Aliaksandr
Ты просто еще пакет Main наверно не создавал ))
Aliaksandr
А вот тот сириус, ныне зеенкастомтемплейт, его в 3.0 тоже встроили или только пакет Main?
Pathologic
Aliaksandr
Ну вот на его установке чаще всего этот хттп_хост и падал. Надеюсь от того, что встроили полегчает, а не наоборот )
Aliaksandr
Чё то я отстал от жизни с этим новым годом
Aliaksandr
А какой принцип действия у пакетного доклистера ? Заинклудить тот же файл snippet.DocLister.php, но не напрямую, а в сервис-провайдере? Или там сложнее схема?
Pathologic
Заинклудить
Андрей [aharito]
Всем привет!
Как отключить ONLY_FULL_GROUP_BY' в OpenServer?
Я отключаю запросом в консоли SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))
Но это до след. перезапуска, а вот как постоянно?
Pathologic
в my.cnf
Андрей [aharito]
в my.cnf
Спс, пробую, там только my.ini вроде
Андрей [aharito]
Написал sql_mode= "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
Но при перезапуске снова восстанавливает прежние
Андрей [aharito]
синтаксис, что ли, не тот
Андрей [aharito]
Ура! наконец-то. Надо было
sql-mode= и так далее
Андрей [aharito]
Есть вопросы:
1) Когда выполняешь composer update из папки core, то обновляется только ядро Эво + Laravel? А установленные дополнения обновляются?
2) И в общем, дополнения, установленные через обычный Экстрас, они обновляются через композер? или только установленные через консоль?
3) Короче, как нужно устанавливать дополнения, чтобы они обновлялись вместе с зависимостями через композер?
В презентации на 4 часа это вроде было, но искать по видер неудобно и долго.
Anonymous
Hi EVO. Is this for English questions too? ;)
Am
Hello. Yes.
Андрей [aharito]
Oleg
Anonymous
Ok ;). I talk on the GitHub and this telegram was mentioned
Anonymous
Anyone know how to make the EVO formlister form remember attached files when the form is being submitted? The form works with attached files but if there is an error in the file, other form elements remember their entered values, but the attached files section is empty so it has to be entered again
EVO bot Лёшка
Andrey
Anonymous
Really? Browser security?
Andrey
reloading the form clears the file elements. you can try submitting the form via Ajax
Anonymous
Thanks Andrey
Anonymous
Have you see that yourself Andrey? That resubmitted formlister forms can’t ‘remember’ attached file lists, but they can remember all other radio buttons, text boxes, etc?
Михаил
Anonymous
Thanks For your help @mnoskov
Andrey
Andrey
You can do this.
1. When choosing a file, save it to the server /temp_files/ via ajax.
2. Create a record in your table where file = id
3. Send these IDs in some field in your form.
4. Optional: on reboot show these files by selecting them from the database.
5. When sending the form - prepare the IDs and files as needed. Move files /temp_files/ to /assets/ and e.t.c.
Anonymous
Ok. So all forms will forget attached files. Thanks for your help
Anonymous
Thanks Andrey
Andrey
6. Clear /tmp_files/
JN
JN
much easier :)
Anonymous
There is already form validation in the formlister form submission, so that works, but if the form user forgets to enter data in a textbook , for example, the form will semi-submit and show errors on the form screen and await form user corrections. All text boxes and radio buttons display the originally entered data, but the attached-file boxes are empty. I am ok now though ;) . Now that you guys explained that all regular forms, for security reasons, don’t remember attached-file data
Anonymous
Thanks again Andrey. Very helpful and on a Sunday. Much appreciated. I will add that warning message too that you suggested.
Dmytro
RisingIsland
DocLister & Paginate, I am trying to get a display simialar to "< 1 2 3 ... 21 22 23 >"
I have added:
&pageLimit=6
&pageAdjacents=3
&TplDotsPage=<li>...</li>
But it displays "< 1 2 3 4 5 6 >"
Oleg
RisingIsland
I have also tried changing it to
&pageLimit=2
&pageAdjacents=1
but then it displays "< 1 2 >" and not "< 1 ... 6 >"
Multi
Axenia
arhirov (209.65) увеличил карму Dmi3yy (1716.96)
RisingIsland
I removed pageLimit and set pageAdjacents to 1 and it still shows all pages?
Oleg
With this:
[!DocLister?
&parents=`11`
&display=`5`
&paginate=`pages`
&pageAdjacents=`2`
&TplDotsPage=`@CODE: ...`
!]
[+pages+]
Oleg
pages between 1 and 430, current is 11
RisingIsland
OK, that did it. I was missing the "@CODE:" in "TplDotsPage"
@helgispbru Thank you for your assist
Oleg
RisingIsland
DocLister & MultiTV Question:
If I am using a MultiTV for images in a blog post, how do I just call the first image as a thumbnail for DocLister?
I understand that I need to add &tvList=`blog-imgs` to the call, but in the template, how do I call only the first image? <img src="[+tv.blog-imgs+]">
EVO bot Лёшка
Alexey
use prepare...
<?php
$json = json_decode($data['you_mtv'],1);
$data['img'] = $json['fieldValue'][0]['img'];
retun $data;
RisingIsland
@dvakotaby Can that be used with phpThumb to resize the output?
Something like:
<img src="[[phpthumb? &input=`<?php
$json = json_decode($data['you_mtv'],1);
$data['img'] = $json['fieldValue'][0]['img'];
retun $data;?>` &options=`w=300,h=214,zc=TL`]]" />
Alexey
Create snippet thumbMTV
<?php
$json = json_decode($data['you_mtv'],1); //parse multiTV
$img = $json['fieldValue'][0]['img']; //get First image
$img = $modx->runSnippet('phpthumb',array('input'=>$img,'options'=>'w=300,h=214,zc=TL')); do thumb
retun $data; //return placeholders whith new placeholder img
Use:
[!DocLister?
&tvPrefix=``
&tvList=you_mtv
&tpl=@CODE: <img src="[+img+]">
&prepare=thumbMTV
!]
RisingIsland
Awesome, thanks! Will give it a try.
Alexander
как в этом ебучем битриксе в админке вообще информацию на странице менять? аналог поля content у нас?
Pathologic
БУС это не "компоненты перетаскивать и галочки в админке тыкать", а это - хардкорная разработка модулей, доработка ядра, жесткий ORM, последние новинки PHP.
Alexander
Alexander
Axenia
Grinyaha (884.7) увеличил карму mfilin (192.91)
Максим
Ну а сами сущности в админке. Инфоблоки
Максим
Pathologic
Ну да, при работе с битриксом часто надо думать, в какие запросы трансформируется твой вызов API. Но, думается мне, в любых других высокоуровневых средах разработки то же самое.
Alexander
Pathologic
А в данной ситуации считаю, что инструмент должен выбираться исходя из проекта, а не прихотей разработчика.
Антон
Pathologic
Одно другому не мешает
Ну а вам совет - не бойтесь Битрикса, Битрикс это всерьез и надолго. Начинайте работать с ним, появятся вопросы или не пожелаете нанимать разработчиков, то обращайтесь к форуму, в ТП. Почти всегда помощь оказывают, причем оказывают помощь такие монстры, что даже опытным разработчикам интересно смотреть на решения.
Антон
Кто ты? Верни Макса обратно
Максим
Ток бэкап не забывайте))
Pathologic
это документация битрикса 😸
Максим
Андрей [aharito]
Pathologic
Alexander
Alexander
а там массив. HTML контента не вижу
Alexander
а все, нашел, ну и говнище...
Dmytro