Hi, first time post here.
I've been a PHP dev for a number of years - mostly using a variety of MVC or custom frameworks.
I've recently taken on a project using Drupal for the first time.
It's seems to me that I am duplicating an awful lot of code / work just to get things done. A lot of what I do kind of feels like I am hacking the code to make things work.
I have a kind of mentor who has worked in Drupal for a long time but even his code / answers just leave me feeling something must be wrong.
Does everyone else have to add lots of little hacks just to make themes work correctly?
For example I have the following:
/news - View of all pages with content type news.
/news/my-first-article - Page of content type news.
A menu item that points to /news has a class of active when in /news but if I click into an article it is no longer active.
To hack this I was told to hardcode a css class into the body of pages that have content type news.
Another example:
A page with a 3 level menu.
E.g.
Men's Clothes
---Jumpers
-------Wool
-------Fleece
---Hats
---Coats
-------Jackets
-------Winter
-------Smart
Selecting the top level page I want to display the entire menu, but if I select Jumpers I only want that branch to show (hats & coats are hidden).