Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When "If enabled, a Mobile Codes pseudo field will be available on the Manage display page for this content type." is enabled in the content type I only got the path of the url (ex: /content/my_article) and not the full URL (http://www.mysite.com/content/my_article).
I found how to set it to the block but not for this. Could you help me please ?
Thanks
Comments
Comment #1
franckdg CreditAttribution: franckdg commentedTo get an absolute URL : in mobile_codes > includes > node.inc ( 7.x-2.x-dev )
line 87
replace
'#data' => url("node/{$node->nid}"),
by
'#data' => url("node/{$node->nid}", array("absolute" => TRUE)),
A new field in the parameters of presets will be welcome.
Regards.
Comment #2
nattyweb CreditAttribution: nattyweb commentedExcellent - thank you - exactly my requirement too, and it worked (Drupal v7.25)