Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am trying to create function in Drupal 8 .theme file that it will show me the sidebar only when clicking on the children links of my parent menu link. I will access those links through a main navigation on the top of my theme. Right now my sidebar always shows when click on the parent menu link and I am trying to make it show only when accessing its children. Can somebody put on the right direction? Thanks in advance.
FYI: I'm currently trying to learn more about Drupal, and hopefully fix issues left for us to deal with by an abandoned developer.
I have a content type for Frequently Asked Questions that I'm having trouble displaying properly in a block view.
The fields are:
Title: Question goes here
Body: Answer goes here
Department (taxonomy term: Used for filtering faq's in order to show only the faq's we want on a specific page
FAQ Order: Basically just a numerical value for giving a weight value to sort the faq's.