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

franckdg’s picture

Status: Active » Patch (to be ported)

To 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.

nattyweb’s picture

Excellent - thank you - exactly my requirement too, and it worked (Drupal v7.25)