2013-06-13, 22:35:50
Hi,
first thank you for this very, very useful plugin!
One question regarding the image type custom field variable.
It works great but returns the full http path to the selected file. I am developing my site on another domain then it will run later, so I have to change all paths manually later. I would prefer to use something like:
I hope you understand what I want to say...
Is there a setting or option to receive relative paths from the image selector?
I could chop the first http-part from the result after fetching the var content, but I think it would be nicer, if it would be stored relative from the start.
Thanks for an answer!
first thank you for this very, very useful plugin!
One question regarding the image type custom field variable.
It works great but returns the full http path to the selected file. I am developing my site on another domain then it will run later, so I have to change all paths manually later. I would prefer to use something like:
PHP Code:
<?php
// I defined a custom variable called "headerimage"
// Type of the variable is image
// Instead of
$myImage = return_custom_field("headerimage");
// I would like to use something like
$myImage = return_site_url() . return_custom_field('headerimage');
echo "<img src='".$myImage."'>";
?>
Is there a setting or option to receive relative paths from the image selector?
I could chop the first http-part from the result after fetching the var content, but I think it would be nicer, if it would be stored relative from the start.
Thanks for an answer!