Correct path to images in the File Manager
Only using this part "files/7113/4859/9461/2a.jpg" worked for the first image in the slideshow but not the rest which showed as missing images.
Very grateful for any help.
By clicking on the images I know where they are but, as on the example I posted above, the path shows to the location on my local drive. What happens when I move the site to a live server? I assume that the path will be broken so I need to know how to write the link in order that when I move it to a web server the link will not break.
Thanks for replying anyway.
Edit: stupid auto correct on my phone
Please see this link on how to include images in a theme http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
I am currently on my phone and will not be back in the office for another 11 hours. If you are still having problems with your slider and the images by then, post back here with your theme and slider code and I can take a loo. If you don't want to put your code up for public display you can send it in a private message to me.
If I want to reference the source of an image that is in a Set in the File Manager what is the correct path to it? Currently, under Properties it shows the absolute URL:
When I upload the site to a web server I assume that this absolute link will be broken. I need to know if it is possible to use a relative URL instead (tried but it didn't work). I have hundreds of images to add and it would be a nightmare to have to relink them all when the site moves to the live server.
<img src="<?php echo DIR_REL ?>/files/7113/4859/9461/2a.jpg>
DIR_REL will output your base url (http://www.your_domain.com)
I once again strongly encourage you _not_ to hard code in your image sources from the file manager but instead create a block from the slider and use that instead. If you don't know how to do it (which is really understandable) then maybe there already is a slider available in the marketplace that meets your needs.
Do you mind sharing a link to the slider?
I must be doing something hugely wrong here but I can't be the first person who has a jQuery slider that needs images put in a folder in the File Manager. Is it possible to put these images directly into a folder in my theme folder and if so how would I access them?
Thanks again for all of your help.
If you don't ask, you will never know. I am happy to answer questions as that helps me keep sharp and find solutions I didn't even know was possible.
To answer your question you could have your images in your theme folder.
Lets assume you have the folder structure below (with any number of subfolders);
You can then call your images with:
<img src="<?php echo $this->getThemePath(); ?>/images/subfolder/image.jpg" width="400px" height="150px" alt="" />
Just to be curious, have you looked at (and presented) the sliders available in the marketplace? You will get a lot for the money buying one (not to mention saving time for you and your client and support from the developer). On the right hand side in the marketplace you can filter on 'image sliders' and make sure you also check '5.5 Ready'. I won't tell you why I consider this a better option, since I have before. It might be one of the already packaged sliders have the functionality of SlideDeck your client is after.
I'm going back to the SlideDeck guys as this is just driving me nuts. The code you gave me is as straightforward as possible and if that doesn't work there must be something else wrong.
I've used sliders from the c5 Marketplace and they work great, installed and working in two minutes. This pile of cr@p cost me $50 and I've spent about $500 worth of time trying to get the damn thing working.
There's got to be an easier way to earn a living... Thanks again though for all your help, really appreciated.
i would point to jpg like: /files/7113/4859/9461/2a.jpg
on actual server/hosting the base url will be / .. domain.com/files......
try with / infront files ... /files/......
all links as images or ahref should be withouth domain as base url takes care of that.
Hope this helps ya