git clone [email protected]:artemsites/cms-tables.git
OR:
git clone ssh://[email protected]:2222/artemsites/cms-tables.git
.env.example -> .env
DATABASE_URL="mysql://username:[email protected]:3306/dbname"
Or with mysql version:
DATABASE_URL="mysql://username:[email protected]:3306/dbname?serverVersion=5.7.21"
https://docs.google.com/spreadsheets/d/19NC3QrrWEvAwljyhzKF9LqCds4gtOvP5OAZUqqd3k-w/edit?usp=sharing
Внимание! Если у вас на сайте ещё нет https то необходимо в ссылке заменить https на http!
Setting HTTPS and redirect to it and setting last PHP version at you site in hosting panel or you server!
For example at shared hosting (beget.com):
cd some-site.com
php8.3 $(which ~/.local/bin/composer) update
php bin/console doctrine:migrations:migrate
Or:
php8.3 bin/console doctrine:migrations:migrate
It is migrate file migrations/Version[id].php to your database!
- Select the line (web page data) that you want to send to the site. 2-3. Send the changes to the website!
After that, the cache of this page will be reset and the updated content will be displayed on the site!
In this case, the content can be written directly to the content column, so you can place a link to html or md markup there so as not to clutter the table cell!
SHORTCODE_START_REGEXP
SHORTCODE_END_REGEXP
It shouldn't be {{ }} - it's twig
It shouldn't be [ ] - this is md content
Probably better [[ ]]
! It is important to specify in REGEXP format, that is, special characters should be escaped [[ - otherwise they will be incorrectly read in REGEXP and will not be used
Double brackets are selected as in MODx: [[shortcodename]],
because there is a conflict with md parsing
(there links look like name)
Parameters:
id is the ID of a YouTube video
Parameters:
code - if this is a link, then we will get the content that is located on the link