theming

Foundation is one of the latest and most popular responsive frameworks available on the Web nowadays, quite easy to use, fast to learn, the documentation section is really useful and there is also a Drupal version of this framework included as a base theme so you can take good advantage of Foundation in Drupal.

Zurb Foundation is the Drupal base theme that implements this nice framework and offers a lot of advantages for example, creating Modal windows with Foundation is a pretty straight forward task and the base theme makes this task way easier on Drupal by providing a

Read more...
Wednesday, November 5, 2014

Yesterday, I was working on a new requirement on a website I'm currently working on and the idea of it is make Drupal provide a Widget so anyone can copy/paste a single piece of HTML code inside a iframe and embedded that code anywhere, so providing ans iframe is not a big deal but of course the iframe will display inside it whatever comes from the source url you set for it, example:

<iframe frameborder="0" height="480" src="http://www.mysite.com/widget/"; target="_blank" align="center" width="360" scrolling="Auto"; bgcolor="#C9D3DE"> </iframe>

In this case "src" retrieves whatever content that url has, of course, this should be a single piece of html.
In order to do so with Drupal, you have to create a menu callback that will act as the provider of this piece of HTML code, something like this:

function my_module_menu(){
  $items['…

Read more...
Thursday, June 9, 2011