Forum categories

Заметки, инструкции и предупреждения по шаблону "Index36"

"Index36" - это шаблон основной темы сайта на CMF/CMS Cotonti Siena v0.9.26 самой новой версии по состоянию на начало 2026 года. В этой теме будут заметки и инструкции для пользователей и разработчиков, и для меня тоже )).


webitproff
webitproff • 2026-02-17 18:19 #1

Изменен подход в подключении иконок Font Awesome 7.2 - с оглядкой на перспективу обновления старых и создания новых шаблонов для админки - теперь библиотеку иконок грузим сразу в /lib/fontawesome  но не нужно грузить все подряд. 

Нам нужно всего 4 файла поместить их как в списке ниже:

/lib/fontawesome/css/all.min.css 
/lib/fontawesome/webfonts/fa-brands-400.woff2
/lib/fontawesome/webfonts/fa-regular-400.woff2
/lib/fontawesome/webfonts/fa-solid-900.woff2

 

Скачиваем Font Awesome Free Version 7.2.0 (актуальная на момент этого писания), выбираем "Download Free for Web" 

Примечание: при попытке скачать предложит ввести почту. 

Игнорируем все, и в самом низу модального окна справа ссылка:
"Never mind. Continue with downloading Font Awesome Free"
Вот на неё кликаем и забываем!

Распаковываем скачанный архив на компьютере.
На сервере, в корне сайта папка lib, в ней создаем папку fontawesome и дальше создать папки и закачать файлы как показано в списке выше.

 


в шаблоны страниц добавлена разметка для https://schema.org


<script type="application/ld+json">
{
 "@context": "https://schema.org",
 "@graph": [
   {
     "@type": "WebPage",
     "url": "{PHP.cfg.mainurl}/{PAGE_URL}",
     "@id": "{PHP.cfg.mainurl}/{PAGE_URL}#webpage",
     "name": "{PAGE_TITLE}",
       "description": "{PAGE_TEXT|strip_tags($this)|mb_substr($this,0,1999,'UTF-8')|preg_replace('/([\"\\\\])/u','\\$1',$this)|preg_replace('/\\s+/u',' ',$this)}", 
     "headline": "{PAGE_TITLE}",
     "inLanguage": "{PHP.usr.lang}",
     "relatedLink": [
       "{PHP.cfg.mainurl}/{PAGE_CAT_URL}",
       "{PHP.cfg.mainurl}/contact"
     ],
     "isPartOf": {
       "@type": "WebSite",
       "@id": "{PHP.cfg.mainurl}/#website",
       "url": "{PHP.cfg.mainurl}/"
     },
     "breadcrumb": {
       "@id": "{PHP.cfg.mainurl}/{PAGE_URL}#breadcrumb"
     }
   },
   {
     "@type": "BreadcrumbList",
     "@id": "{PHP.cfg.mainurl}/{PAGE_URL}#breadcrumb",
     "itemListElement": [
       {
         "@type": "ListItem",
         "position": 1,
         "name": "{PHP.L.Main}",
         "item": "{PHP.cfg.mainurl}"
       },
       {
         "@type": "ListItem",
         "position": 2,
         "name": "{PAGE_CAT_TITLE}",
         "item": "{PHP.cfg.mainurl}/{PAGE_CAT_URL}"
       },
       {
         "@type": "ListItem",
         "position": 3,
         "name": "{PAGE_TITLE}",
         "item": "{PHP.cfg.mainurl}/{PAGE_URL}"
       }
     ]
   }
 ]
}
</script>

 

Проверять можно например этим инструментом 

Поддерживает ли страница расширенные результаты?

Важно! что бы в исходном коде не было слитно, - перед тем как перейти к новой строке через “Enter”, - всегда перед ним делайте пробел! 

на уровне штатных средств котонти пока не нашел как это решить. Поэтому всегда ставим пробел, прежде чем перейти к новой строке!!! 

 

 

 

 

 

This post was edited by webitproff (2026-02-22 10:12, 4 months ago)
🗿

🧙‍♂️ Well met, good traveler! Fate has guided your steps to our humble realm. Here, wise sages and masters of the coding craft ⚒️📜 gather to unravel the mysteries of the code ✨⚙️, share their knowledge, and add new chapters to our chronicles.
⬅️ To the left lie ancient scrolls 📚 filled with forgotten wisdom. ⬆️ Straight ahead, friendly folk offer counsel 💬 to those in need. ➡️ To the right, you may become a chronicler ✍️ yourself, sharing your craft and leaving words of wisdom for those yet to come.
📝 Delay no longer—tell us the name by which you are known, complete the rite of registration 🛡️, and join our fellowship!
🏰 Our brotherhood holds no secret initiation, yet many halls remain closed to wandering guests, for some knowledge 💎 is reserved for those who choose to walk this path beside us.

Recommended Products in This Topic

Index36: Modern Theme for Cotonti CMF

Index36, a website theme for Cotonti, is a complete website management ecosystem. The main focus is Themes and Templates for Cotonti

Market PRO v.5+ module for Cotonti CMF

Free solution for scalable E-Commerce projects: you can create a showcase of blacksmith's products Modules and Plugins for Cotonti

Invoice Plugin for Cotonti

Manually top up a user's balance on the website upon request, without online payment. Invoicing for Modules and Plugins for Cotonti