[Day 7] Adding global site settings
This is it. This is the last day of 7 Days of Wagtail. You've gotten so far and have learned a lot!
Today we're going to add a global site setting to our Wagtail website.
Global site settings are useful for things like social media links in the footer of your page. But you want them on EVERY page and probably don't want to copy-and-paste the same code onto every page template.
With global site settings in Wagtail you can define and set custom fields and then access them globally.
Why use this?
Well.. because your website is dynamic. And so are things like Facebook links, YouTube links, Twitter handles and Instagram account names. And when those change, and surely they do, you'll want an easy way to change them across your entire website.
Let's get started by adding a global instagram link to our Wagtail admin and base.html template.
P.S. If you would like to join our Wagtail community, we have a free Slack you can join. Head on over to https://wagtail.io/slack to sign up. You can ask ANY Wagtail related question in our support channel, too.
Видео [Day 7] Adding global site settings автора Вячеслав Эм.
Видео [Day 7] Adding global site settings автора Вячеслав Эм.
Показать
Похожие видео
[Day 3] Creating a new page type with a custom template[Day 5] How to create snippets and make them selectable on your page[Day 6] Adding StreamFields to your pageВажность понимания источников дохода[Day 5] How to create snippets and make them selectable on your page[Day 4] How to add images to your pages with auto-thumbnailingПОДРАБОТКА В ОРЛЕ В СВОБОДНОЕ ⚪ КАК ЗАИМЕТЬ ДЕНЬГИ[Day 2] Adding custom model fields to your Home PageИ я тоже[Day 6] Adding StreamFields to your page50 ЛУЧШИХ САЙТОВ ДЛЯ ЗАРАБОТКА ДЕНЕГ ⚠ ЗАРАБОТОК НА ДОМУ НЕ В ИНТЕРНЕТЕ 💯Welcome to 7 Days of Wagtail[Day 4] How to add images to your pages with auto-thumbnailingWelcome to 7 Days of WagtailКомпас + металлический штырь На какой глубине залегание воды на участкеОбучение диалогической речи[Day 3] Creating a new page type with a custom templateПрактическое занятие №44: Углубление в паттерн MVVMОбучение повороту со спины на брассАпперкот (удар снизу) в боксе — Урок 3, работа на лапах от Андрея Басынина