Upload Paths & URL not working since upgrade to 2.09

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 4, 2011   (RSS)

Re: [pcolvin] Upload Paths & URL not working since upgrade to 2.09

By Jason - July 4, 2011

Hi,

CMSB 2.09 and above use relative paths to store uploads. When you retrieve your records from CMS Builder using getRecords, the filePath and urlPath will be populated automatically.

If you're not using getRecords to get records out of the uploads table, you can manually append it using the global $SETTINGS array. For example if you had a variable called image that was retrieved directly from the uploads table:

<img src = "<?php echo $SETTINGS['uploadDir'];?><?php echo $image['urlPath'];?>" />

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/

Re: [Jason] Upload Paths & URL not working since upgrade to 2.09

By pcolvin - July 4, 2011

Jason,

This make sense now. The site that I had the problem with generates the URLs on the menu system a bit differently. I will add that variable to the site's menu code. I'm sure that will fix it.

Thanks

Phil