Exporting feed with replaced strings
- Tan Nguyen
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
8 years 6 months ago #3899
by Tan Nguyen
Exporting feed with replaced strings was created by Tan Nguyen
Hi,
I am using a CCK component for Joomla. Users can upload images, but the
CCK stores the internal path for the images and I need to export the
web URLs via vData Feed.
Source records e.g.:
"/home/xxx/public_html/etc/xxx.jpg"
"/home/xxx/public_html/etc/xx2.jpg"
Need to export:
" www.xxx.com/public_html/etc/xxx.jpg "
" www.xxx.com/public_html/etc/xx2.jpg "
In "Profiles" I experimented with the column field with "As defined"
and tried several @vdsql and @vdphp functions with substr_replace etc to replace
the string "/home...", but failed to have the expected result, as the string
would be completely replaced.
Any help for the right function would be so much appreciated.
cheers
I am using a CCK component for Joomla. Users can upload images, but the
CCK stores the internal path for the images and I need to export the
web URLs via vData Feed.
Source records e.g.:
"/home/xxx/public_html/etc/xxx.jpg"
"/home/xxx/public_html/etc/xx2.jpg"
Need to export:
" www.xxx.com/public_html/etc/xxx.jpg "
" www.xxx.com/public_html/etc/xx2.jpg "
In "Profiles" I experimented with the column field with "As defined"
and tried several @vdsql and @vdphp functions with substr_replace etc to replace
the string "/home...", but failed to have the expected result, as the string
would be completely replaced.
Any help for the right function would be so much appreciated.
cheers
Please Log in to join the conversation.
8 years 6 months ago #3901
by Daniel
Thanks
Daniel
Replied by Daniel on topic Exporting feed with replaced strings
Hello,
Please check the following threads:
www.wdmtech.com/support-forum/vdata/vdlocal-vdsql-vdphp#2987
www.wdmtech.com/support-forum/vdata/some...import-from-csv#2549
Please check the following threads:
www.wdmtech.com/support-forum/vdata/vdlocal-vdsql-vdphp#2987
www.wdmtech.com/support-forum/vdata/some...import-from-csv#2549
Thanks
Daniel
Please Log in to join the conversation.