Determine what changes were made to the neverland drupal theme to support the years menu system used in the Akademy website
Upstream neverland details https://community.kde.org/KDE.org/Neverland
Determine what changes were made to the neverland drupal theme to support the years menu system used in the Akademy website
Upstream neverland details https://community.kde.org/KDE.org/Neverland
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | ognarb | T9313 Adapt core Akademy pages for a mobile and tablet friendly formats | ||
Resolved | ognarb | T9537 Determine what changes there are in neverland for Akademy website |
Here are the rough instructions on what happens each year to drupal
add term for new year to http://akademy.kde.org/admin/structure/taxonomy/akademy_year
configure term alias to be YYYYadd term for new year to http://akademy.kde.org/admin/structure/taxonomy/akademy_news_year
configure term alias to be YYYY/newsset default frontpage to YYYY on http://akademy.kde.org/admin/config/system/site-information
create a new menu called "Main Menu YYYY"
http://akademy.kde.org/admin/structure/menu after typing in the Title a link next to it to edit the machine name appears, this should be set to category-YYYY (menu- is prefixed to what you call it)enable the menu in menu settings and set the menu to be the default http://akademy.kde.org/admin/structure/types/manage/page
set YYYY in Public file system path http://akademy.kde.org/aode/171/edit?content_lock_token=s25vFTkJlfy125dFo1tYMihzXTnzMoTIDfTFU6MAPL8dmin/config/media/file-system
set DEFAULT VALUE to YYYY
http://akademy.kde.org/admin/structure/types/manage/page/fields/field_akademy_year_page https://akademy.kde.org/admin/structure/types/manage/news/fields/field_akademy_year_news https://akademy.kde.org/admin/structure/types/manage/file/fields/field_akademy_year_fileset DEFAULT VALUE to YYYY http://akademy.kde.org/admin/structure/types/managode/171/edit?content_lock_token=s25vFTkJlfy125dFo1tYMihzXTnzMoTIDfTFU6MAPL8e/news/fields/field_akademy_news_year
header logo is set in http://akademy.kde.org/admin/appearance/settings/neverland and is hardcoded to be in default filesystem location so careful when changing file year
update footer as appropriate http://akademy.kde.org/admin/structure/block/manage/block/1/configure?destination=node/6
add YYYY to http://akademy.kde.org/admin/structure/menu/manage/main-menu
From another task Carl wrote:
I'm not sure that is the problem with T9537 the code for the menu can be found in these three functions:
https://invent.kde.org/carlschwan/neverland/-/blob/master/themes/drupal7/template.php#L101 https://invent.kde.org/carlschwan/neverland/-/blob/master/themes/drupal7/template.php#L138 https://invent.kde.org/carlschwan/neverland/-/blob/master/themes/drupal7/template.php#L179
This is the called from here: https://invent.kde.org/carlschwan/neverland/-/blob/master/themes/drupal7/templates/page.tpl.php#L37
There was an attempt to build an aether drupal theme: https://invent.kde.org/websites/aether-drupal7 and with a preview version of the Akademy website here: https://akademy-dev.kde.org/.
I was hit by a limitation in drupal:
Unable to configure the output of the link in theme_menu_tree I get <li><a href="link">title</a></lI> and we need <li class="nav-item"><a class="nav-link" href="/link">title</a></li> instead to work with bootstrap 4. This completely break the display of the the menu. I tried looking for code in internet but the only Bootstrap 4 theme available for Drupal is a Drupal 8 theme totally incompatible with Drupal 7 sinse it use a new theming API and engine.
Just as an example this is how a modern templating engine would solve the problem: https://invent.kde.org/carlschwan/akademy-kde-org/-/blob/master/layouts/partials/navbar_nav.html