Skip to Content

Drupal

HTTPS Node

New Drupal Modules - 9 October 2014 - 2:59am

Allows to set HTTPS per node. When set, node view page automatically redirected to HTTPS.

Categories: Drupal

Clemens Tolboom: The state of ReST in Headless Drupal 8

Planet Drupal - 9 October 2014 - 12:37am

One of the Drupal 8 initiatives was to make "headless" Drupal core work out of the box. Drupal now has a ReST API.

This allows you to use all the Drupal 8 features to edit your content but present the content not only on a Drupal frontend but also on mobile apps or anything else that can work with JSON data.

Categories: Drupal

Cocomore: Field collections exposed

Planet Drupal - 9 October 2014 - 12:03am

Field collections is a nice contributed module that extends the default Drupal entity functionality by creating a new entity field that can be composed by other fields. With this module we solve problems like creating complex entities where we want to store multiple different values into one single field.

read more

Categories: Drupal

Deeson: Drupal Panels setup for clean markup

Planet Drupal - 9 October 2014 - 12:00am

It’s a fact that you get a hideous amount of markup with the Panels module straight out-of-the box, even if you use it to create a single column page without changing any of the options.

This is because each layer of the rendering process brings its own markup to the party. 

Panels and layers

Panels are structured in layers, which is what makes them so flexible for any given requirement. Within a layout sit the regions and inside these are panes.

Each of these panes are configurable by providing CTools plugins. You can render panes and regions with style plugins and the layout with a layout plugin.

Each of these layers have their own wrapping markup and things can get excessive quickly. 

Help is at hand

Luckily for us, there’s quite a lot of help for Panels straight out-of the-box. Firstly, there’s a ‘naked’ style plugin which drops all the wrapping markup and can be applied to your panes and regions. While this is a good start, the layout will still need markup specific to the site’s theme.

You can override each Panels layout as it’s presented by a theme hook. It’s literally as simple as copying a template to your site. 

For most simple panels, it’s just a case of copying the panels-onecol.tpl.php file into the theme and customising it. 

If you’re using a CSS framework or grid system (we use Bootstrap at Deeson) then this file is where you can re-work the markup to be specific to the system you are using.

My Panels page

Keeping all this in mind, I’ve created a simple Panels page which lists recent content to authenticated users. It’s built from a bean, a view (with an access rule) and some custom markup. It uses the one col layout.

Here’s my oh-so-simple panels-onecol.tpl.php file in my theme:

<div class="panel-display panel-1col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>> <?php print $content['middle']; ?> </div>

And here’s the markup you’ll get when viewed as an unauthenticated user:

<section id="block-system-main"> <div class="panel-display panel-1col clearfix"> <div class="panel-pane pane-block pane-bean-recent-content-header"> <h2 class="pane-title">Recent content</h2> <div typeof="" about="/block/recent-content-header" class="entity entity-bean bean-editable clearfix">[...]</div> </div> <div class="panel-pane pane-custom pane-1"> <p>Login or create an account to view this content...</p> </div> </div> </section>

Let me know what you think!

Categories: Drupal

Acquia honored by Belgian-American Chamber of Commerce

Dries Buytaert - 8 October 2014 - 11:57pm

My company Acquia was honored this week by BelCham, the Belgian-American Chamber of Commerce, as the "Company of the Year". I'm proud of this honor, which speaks to the great work that our team of more than 500 Acquians from around the globe do for our customers everyday.

BelCham is an organization dedicated to helping Belgian entrepreneurs navigate the complexities of Belgian-American trade. Companies like Acquia, InBev, Brussels Airlines, and restaurant chain Le Pain Quotidien support BelCham's work.

If you want to build a big company, then at some point you have scale globally. Scaling a business globally is challenging. I try to give back some of my experience by advising Belgian entrepreneurs that want to move or expand to the US. I often recommend they get in touch with BelCham because they can help entrepreneurs find the resources they need to extend their network and grow globally.

Categories: Drupal
Syndicate content


Google+
about seo