Timeline for Using variables in Drupal
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 2, 2016 at 0:12 | comment | converted from answer | mona lisa | If I understand your use-case properly, as far as I know everybody uses Pathalogic for this. | |
Dec 1, 2016 at 19:53 | comment | added | blu | i believe so, although it may default to /. Anyways it might be better to use something from here: link I would try $_SERVER['SERVER_NAME'] or $_SERVER['SERVER_ADDR'] in a switch statement | |
Dec 1, 2016 at 19:18 | comment | added | mike | even if my domain name for each environment is different? | |
Dec 1, 2016 at 18:58 | comment | added | blu |
print $base_url . 'rest/of/url/here'; I believe $base_url should change automatically assuming you never changed it in settings.php
|
|
Dec 1, 2016 at 18:45 | history | asked | mike | CC BY-SA 3.0 |