Closed (outdated)
Project:
Automatic Nodetitles
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2007 at 15:19 UTC
Updated:
3 Aug 2018 at 05:28 UTC
Jump to comment: Most recent
Comments
Comment #1
mydllurth commentedI'm having issue with this combination, but I am successful toward generating a title from locative fields. The following code snippet does work, but the node title is incomplete until I submit the node a second time. I only have "$zip :" as title on the first pass. I have only locations in the US, so the "us-" component of province is not used; only the two-letters state code is relevant.
The gmap API seems to require prior submission. We could peruse there for refinement of procedure and PHP code.
Comment #2
mydllurth commentedI actually found my solution in the location API. The function is slted for deprecation, and seems off-topic here, but I'll post my finding.
After copying my loci array from $node['locations'][0], I defined one array element to reflect my site configuration, and made one location API call.
My automatic nodetitles implementation is happy.
--
A.D.G.
Comment #3
Sinovchi commentedYou can use:
$node->field_lonlat[0][city]It is working without problem
Comment #4
manish-31 commented