How to display a node field value in a template file?

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 :

<h1 class="page-header"><?php print $title; ?></h1>

To :

Notice: Undefined index: views_content_get_display_label()

I am getting the following error using panels.

Can someone help?

  • 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).

Menu is not reachable

Hello,

I've got a problem since a few days within our extranet.

I have to admit I am not a DRUPAL expert - so I am asking here some experts for help.

Our extranet is hosted by a german webhoster named STRATO.

This means that I cannot connect to the VM where it is hosted and restart some services.

When I login into our extranet and get the menu bar of drupal - I can click or try to navigate wherever I want but nothing happens.

URL is changed within browser bar but browser stay's at home - nothing happens.

Adding a JSON endpoint that is the result of code from a module, available to an authenticated user

Hi there,

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.

403 Error 24 hours after upgrade

Hello All,

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.

Any ideas?

Thanks

Jordan

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x