Closed (fixed)
Project:
Location
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2011 at 11:22 UTC
Updated:
7 Jan 2012 at 16:11 UTC
Hello,
I have an issue with using Location CCK and Automatic Nodetitles 7.x-1.0. I am trying to set the title to the location name using the code below but it fails and I get the error message below, seems like the location is not saved when automatic node titles is calling in. My location is well saved in the node tho and I do see it in my Gmap. I originally used the location core module in the node instead of the CCK and it worked fine.. Any idea?
<?php
print $node->field_location[0]['city'];
?>
Notice: Undefined offset: 0 in eval() (line 2 of C:\inetpub\vhosts\fussyfrenchy.co.uk\httpdocs\sites\all\modules\auto_nodetitle\auto_nodetitle.module(211) : eval()'d code).
Comments
Comment #1
svidot commentedup
Comment #2
ankur commentedI think you might need to use
It's a fields API thing for having separate values per field. LANGUAGE_NONE is the default that assumes that the values for your field are language neutral. I think its a macro for the string
'und'Comment #3
svidot commentedThanks dude!! can't imagine how much time I spent on this..