Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Browser displays no images #13

Open
lewiswharf opened this issue May 15, 2012 · 3 comments
Open

File Browser displays no images #13

lewiswharf opened this issue May 15, 2012 · 3 comments

Comments

@lewiswharf
Copy link

After clicking "Browse Server" button I see my section that has a file upload field, but when I click on it nothing happens. I'm using Firefox 12, Windows 7, Symphony 2.3, and the extension version is 1.3.2.

I expect entries/images to display after clicking on the section.

@renansantos
Copy link

Me too! Last Firefox and Chrome - Mac

@renansantos
Copy link

Is your website installed in a subdirectory (e.g. localhost/myWebsite)?
The problem is that the Image Browser creates links with relative paths. And relative paths to the root will point to localhost/ and not to localhost/myWebsite/

So, in line 77 of content.filebrowserajax.php i have changed this:
$value = '<a href="/workspace'.$info['file'].'">';
To this:
$value = '<a href="'.URL.'/workspace'.$info['file'].'">';

Be aware that your text fields will store the entire url. So if you change from dev server to production you will have to change all your entries urls.

@andrewminton
Copy link

Or you could use the ninja technique to string replace the dev url for production url on all links and img elements that match...

Due to thw new path changes in 2.3.3 there is further work required to sort out the thumbnails in the filebrowser.. will send PR this weekend with local fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants