Code development

Latest techniques in site development; simpletests, coding practices, scalability, deployment and so on.
antoniomanco's picture

Schema and Microdata: How to add field content = myurlimage and Itemid = id_url in slideshow.tpl.php file?

Hi there

I'm adding directly in code: Schema Microdata and my website, but I have two problems:

1- I want to show the URL of my images in the slideshow.tpl.php module. I need only include the URL of the image in "content = url my first picture

As shown below:

I tried these codes php but without success:

<?php
print render($content['field_image']);
?>

<?php
echo render(file_create_url($node->field_image['und'][0]['uri']));
?>

thanks for your help

Read more
phparchitect's picture

php[world] 2015

Start: 
2015-11-16 08:00 - 2015-11-20 13:00 America/New_York
Organizers: 
Event type: 
Related event (ie. not Drupal specific)

From everyone at php[architect], we welcome you to this year’s php[world] conference. We strive to create an amazing experience for the greater PHP community that brings together developers from Drupal, WordPress, Joomla!, Magento, Zend Framework, Symfony, Laravel, CakePHP and more.

We invite you to explore the website to learn more about the conference, and if you have any questions for us, please don’t hestitate to contact us for more information.

Read more
frankgil's picture

Expert in Drupal 7 online course – Try it free for a week!

Only local images are allowed.
What are you waiting for join the most comprehensive training program in Drupal 7? Now you can try it free for a week!

And if you want to continue with the entire course, you can get a 10% off using the coupon code TRAINING10.

The Expert in Drupal 7 course includes Site Building and Development and is made up of 60 units and divided into 3 modules: Beginner, Intermediate and Advanced, with a total of 420 certified hours in 7 months.

Read more
aks22's picture

How to create Book based search in drupal 7.

Hi I want to know is there any way to create book based search.
If i have two books of content type book and want to set up a search which should be book based that is it should have filter where we can select book1 and book2.
As this need comes because in both the books there are some similar content and when
user is searching then the results are showing from both the books.
I tried several modules but all are Content Type based search provider and not book based.

Read more
plettster's picture

Drupal 7 Module Development - 2 day Online Course!

Start: 
2013-05-08 09:00 - 2013-05-09 16:30 America/Chicago
Organizers: 
Event type: 
Training (free or commercial)

Can't travel for training, but need to figure out how to build custom functionality into your Drupal 7 site? Join us via Webex for a 2 day course. Module Development will teach you how to get custom functionality using Drupal's hook system, as well as how to extend or alter contributed module functionality. 'plettster', our own Margaret Plett, will be the instructor. Cost is $800 per student, ask about group discounts.
May 8th and 9th from 9-4:30 both days.

http://www.nxtteam.com/drupal-7-module-development
Call John Zilligen with questions - 847.715.2927

Read more
no_longer_active_13's picture

Setting Clean URL's with SSL (https) for the backend and http for the front end when Drupal is in a subdirectory/ subdomain?

After reading various documentation on the subject I figured out how to possibly do this. I started a write up in the documentation, and placed it under technical review. Are there people with knowledge on the subject who want to take a look at it? This to ensure that there are no mistakes.

The url is:
http://drupal.org/node/1804604

Read more
sydneyDK's picture

Dynamic Redirects

I'm working on a module that needs to create dynamic redirects. For starters, I've installed the Redirect module, which allows me to create static redirects via the admin panel (and API for further development). I'm finding that although it does redirect to external sites, it only redirects within the current window and I'd like the redirect to occur in a new window. I'm thinking this may require some javascript script as well, but maybe I'm missing something or another module is better suited to my needs.

Seeking thoughts and advice from the group.......

Read more
wipeout_dude's picture

When to use hook_menu vs hook_menu_alter??

Hi,

Can someone tell me when its correct to use hook_menu vs hook_menu_alter??

Quite simply I am wanting to create a local action on a view to add content.. In the past I have used Page Manager to do this but looking at the code it doesn't seem logical to load a whole module when this is all I want to do.. I am just not sure on the correct way to do it..

Any help appreciated..

Thanks..

Read more
wipeout_dude's picture

How do I create a static block in code?

Hi,

Hopefully someone can help me out here.. Firstly I am not a coder but I have a problem that needs code to be resolved..

I am creating a feature using "features" and I need to create a static block where the content is a simple HTML table.. Features doesn't export blocks so my plan is to add it in code to the .module file of the exported feature..

I haven't been able to find any code examples for a simple block to start from so if anyone can give me a pointer and perhaps a sample that would be great!!

TIA

EDIT: I am using Drupal 7 if that makes any difference..

Read more
cithukyaw's picture

Drupal hook menu and node form

I have a content type 'leg'and this hook_menu :


$items['leg'] = array(
'title' => t('Choose Leg'),
'page callback' => 'drupal_get_form',
'access arguments' => array('create leg content'),
'page arguments' => array('mymodule_leg_select_form'),
'type' => MENU_NORMAL_ITEM,
'weight' => 0,
);

$items['leg/select'] = array(
'title' => t('Choose an existing leg'),
'page callback' => 'drupal_get_form',
'access arguments'

=> array('create leg content'),
'page arguments' => array('mymodule_leg_select_form'),

Read more
Subscribe with RSS Syndicate content

Drupal Dojo

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week