I added a custom field in the ‘article‘ content type.
I am using bootstrap as a theme.
I want to print that field value as a css class in the h1 element of every node of type : article
So I duplicated the page.tpl.php in my subtheme template folder and changed the h1 code from :
Notice: Undefined index: page_1 in views_content_get_display_label() (line 212 of E:\UserSites\cr-feasibility\sites\all\modules\ctools\views_content\views_content.module).
Notice: Trying to get property of non-object in views_content_get_display_label() (line 212 of E:\UserSites\cr-feasibility\sites\all\modules\ctools\views_content\views_content.module).
I'm trying to accomplish something that I hope is quite trivial, but can't quite seem to find the best way to achieve it.
I have a module which builds some JSON. I want to expose this a single custom endpoint, which should only be available to an autheticated 'user' (a third party service) via a POST request with username and password.
Slightly weird issue on a few drupal 7 sites at the moment - when they upgrade to the latest version they run fine for 24 hours then without any warning revert to a 403 error page. Each time I have to restore a backup of the web server then they work fine again.