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']).
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:
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.
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 ?
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.