Determine what changes there are in neverland for Akademy website
Closed, ResolvedPublic

Description

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

duffus created this task.EditedAug 29 2018, 11:08 AM
duffus triaged this task as Normal priority.

The modified neverland theme currently in use on akademy.ko

duffus removed helio as the assignee of this task.Jun 16 2019, 9:56 AM
duffus added a project: Websites.
ognarb added a subscriber: ognarb.Jul 1 2019, 2:16 PM
duffus added a comment.Jul 3 2019, 9:02 AM

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 YYYY

add term for new year to http://akademy.kde.org/admin/structure/taxonomy/akademy_news_year
configure term alias to be YYYY/news

set 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_file

set 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

duffus added a comment.May 6 2020, 6:45 AM

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

duffus moved this task from Backlog to In Progress on the Akademy Tools board.May 6 2020, 6:46 AM
ognarb closed this task as Resolved.Jul 7 2020, 3:30 PM
ognarb claimed this task.