node_load() and fields with language array index

This is a D7 issue only.

If I do node_load() I get an node object with all its field's "paths" to values like this:

<?php 
$node->field_image['en'][0]['uri']; 
?>

Basically I need to know the language or. if its undefined...

As you know If I want to get that field URI from my tpl file is a bit easier: $field_image[0]['uri'];. So this variable already has selected language (or is undefined ['und']).

Using #ajax in 7.x to load a node using a link.

I'm trying to figure out how to use #ajax for links in drupal 7. Is it possible to use #ajax with links, or is this only possible with forms? Here's my starting code:

Drupal Currency?

Ladies and Gents,

According to Drupal.org today we have "533,925 people in 228 countries* speaking 182 languages [who] power Drupal".

Is this not enough people to populate a country (*Drupaldor)? It's certainly enough for an economy.

What if the Drupal Community had it's own currency? What would we call it?

Any way to sort Views "choose fields" more granularly?

Hey guys-I just got Drupal 7 installed and got Views/Chaos Tools all setup. I added a couple content types with a couple fields. Easy peasy.

When I create a new view, I can add fields like normal. I typically filter by Group: Fields in the UI so I only have to pick through CCK fields to add to my view. Is there a way to sort the Group: Fields on an even more granular basis? Meaning, If I had a content type called Animal, could I somehow sort by Group: Field, Type: Animal? It isn't a problem with 2 content types, but with 20 I could see it being an issue.

cck views infos

Hi everybody,
I am starting with drupal wich is totally new for me.
I am trying to set a field with cck wich load a thumbnail. No problem but i would like the thumbnail not to appear in the page but to be able to retrieve this field via a view. So in the front page i could have a list of the pages i want with each page his thumbnail.... Have you an idea how to do this ?

Install a second language

Hi

I still can't display the language switcher and since nobody is replying i am starting to feel like it is working for most people. Can anybody please tell me if it is working well for them? In that case there might be something wrong with my installation. I have the same problem both locally on my pc and on my server. So my question is is the language switcher block displaying for you guys? Thanks in advance.

Josefina

Hello

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x