Re: [nkerschgens] force image same name
Hi,
We could certainly look into creating a custom plugin for you.
You can limit the number of files that can be uploaded to an upload field by editing that field. In this way you can guarantee that there would never be more than one image per record. Then, instead of always having to use the same name, you could create a dynamic url to your image by pulling the information directly from cms builder.
The code would look similar to this:
<?php if($record['image']): ?>
<?php $banner = $record['image'][0];?>
<img src="http://<?php echo $_SERVER['HTTP_HOST'];?><?php echo $image['urlPath'];?>" height="<?php echo $image['height'];?>" width="<?php echo $image['width'];?>" alt="<?php echo $image['info1'];?>" />
<?php endif ?>
Using a method like this, you could dynamically create a path to the image regardless of what it was called. Would this work for you?
If you're still interested in a custom plugin, please send an email to consulting@interactivetools.com with a list of requirements and we can make a quote for you.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/