Home
TeamSite
Please Help: How to import MediaBin images to a sepcific directory in Teamsite
abiondo
I am trying to import media bin images to a specific directory. I am using Teamsite 6.7.2
I want to tell mediabin to drop the files in the root of my workspace/
Example:
images/jpgs/filename.jpg
Currently MediaBin is importing the files to the following location:
imported\images\teamsite\internet\site-name\images\jpg
This is what I am doing in the DCT.
[PHP]
Image
This is an image related to the paragraph
Import Location
The directory to import files from Media Bin
/
File
The path for the image
true
/Media Database/teamsite/internet/performrx
Format
Select the format of the image.
Width
The width for the image.
Height
The height for the image.
Label
The label for the image, used for alt value.
Alignment
Select the position for the image.
[/PHP]
thanks,
Anthony Biondo
Manager, Web Services
AmeriHealth Mercy Family of Companies
Find more posts tagged with
Comments
Slabrador
We're doing something similar. Each of our sites need the images from MB in a different directory, so we set a text field to have the correct path for the branch (and then hide it from the user) with FormAPI, I guess your method should work, but you're giving your users a bit too much scope to screw thing up for my taste...
A few things I've noticed about your code that could be stopping it working:
1. your arearelpath parameter has two input values - arearelpath is where the image will be in TeamSite, so the input and output parameters should be the same field;
2. asset-id is the MB asset ID, as you're using immediate import, it's only use here is to make the MB browser open in the right place if you've previously selected an image from MB, but it looks like you're going to try to use it to reference the image in your PT;
3. destinationDirectory is miss-capitalised as DestinationDirectory - I'm pretty sure the parameter names are case-sensitive;
HTH
abiondo
Here is the solution I came up with from your suggestions and taking a look at the import mediabin pl file. Thanks for all of your help.
thanks much,
Anthony
Anthony Biondo
Manager, Web Services
AmeriHealth Mercy Family of Companies