Search

A new extension, “Image Index Preview” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

I got a feature request! :-)

The extension would work with the Unique Upload Field as well if the jQuery selector would be replaced by

$('table td.field-upload a, table td.field-uniqueupload a').each(function() {
...

Well, I know that this creates some sort of dependancy, so we might discuss this…

I don’t think this is a real dependency, I see no problem in adding it.

Excellent Mr Nils!

Image Index Preview updated to version 1.1 on 6th of February 2011

  • Support for other upload fields beside the default one.
file = href.replace(Symphony.Context.get('root') + '/workspace/', '');

Why is the path hard coded?

What exactly do you mean?

What exactly do you mean?

I don’t use the workspace for public data, e.g. images, PDF, … I have a directory with name “media“.

  • css
  • extensions (Access is blocked with a htaccess rule, with exceptions for css and js)
  • images
  • js
  • manifest (Access is blocked with a htaccess rule)
  • media
  • symphony
  • workspace (Access is blocked with a htaccess rule)

Which upload field are you using? I wasn’t aware that any of the available ones allowed uploading files outside workspace.

Which upload field are you using?

Yes, this is a problem. I create my own extensions. I hope in future there is a nice solution.

I prefer:

- library
- public (domain ends here)
-- css
-- js
-- media
- symphony
- workspace

it should be noted to future users that the upload/uniqueuploadfield field cannot be the first field in the section for this to work correctly.

nils, have you considered extending this to work with entry detail pages? would you accept a pull request if i made this a reality?

If it cannot be used as first field, something is buggy.

would you accept a pull request if i made this a reality?

Of course! Feel free to fork and extend the extension.

If it cannot be used as first field, something is buggy.

i haven't looked at it since yesterday, but off the top of my head, the jquery selector wants an href that ends in jpg/png/etc, and if the upload field is first, the link points to the entry's detail page rather than the image.

Okay, in this case it's a misunderstanding: this is intended behaviour because otherwise you wouldn't be able to access your entries anymore :)

that's kinda what i figured :)

Could this be used to display a preview of the image on the entry editing page?

Image Index Preview updated to version 1.2 on 13th of June 2011

  • Added preview to the edit pages (thanks, Adam!).

I should think of a different extension name now ...

you might want to make it vague. i had a couple beers this weekend and thought to myself "i should add video and audio clip support!"

you might want to make it vague

"General everything preview"?

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details