porl Posted June 5, 2012 Share Posted June 5, 2012 Hi guys Just a quick question. When adding an image to an image field inside a repeater, the image gets added to an invisible page (/processwire/repeaters/forfield......). I understand why this is done, but if there is another field (a text block in this case for an article 'body') in the same repeater element the 'insert image' button cannot find it (it defaults to listing images associated with the page rather than the repeater element). Is there an easy way to allow simple insertion of images into blocks within a repeater element? Thanks Link to comment Share on other sites More sharing options...
Soma Posted June 5, 2012 Share Posted June 5, 2012 This "bug" has already been reported by me in the repeater thread, though nobody seems to recognized or understand it. Thx for bringing this up Link to comment Share on other sites More sharing options...
porl Posted June 5, 2012 Author Share Posted June 5, 2012 I guess I could work around it for now with a "page wide" images field at the end of the repeaters, but it would be nice to have some sort of separation between elements. Link to comment Share on other sites More sharing options...
apeisa Posted June 5, 2012 Share Posted June 5, 2012 Soma & porl: what would be best way to handle this in your opinion? I can think few quite a different options how this can be fixed. Link to comment Share on other sites More sharing options...
porl Posted June 6, 2012 Author Share Posted June 6, 2012 Not entirely sure, but when I first tested the image field etc in a repeater I expected the tinymce image button to display images from that by default. The second thing I expected was that the images added to these embedded image fields would be browsable from the image button's dialog. Not to say the current behaviour is 'wrong', just not what I expected. Perhaps making it easier to find images from repeater fields when browsing in the image window would be the primary thing, but the default behaviour to me should be to show images in the related area first and then perhaps an 'other images on this page' option in the dialog. Sorry I'm not wording this very well, my brain seems to have gone for a walk. Link to comment Share on other sites More sharing options...
Michael Murphy Posted October 22, 2012 Share Posted October 22, 2012 I also ran into this problem today. There does not seem to be any way to access a file or image from the TinyMCE insert file / image dialog when using a repeater. The only way to get around this issue is to add a file or image field to the main page (outside of the repeater). I would say the expected behaviour would be to first look for file / image fields within the repeater, then look for files / images outside the repeater (the main page). I am not sure you would ever want to access files / images from another repeater row. Should we add this as an issue to Github? Link to comment Share on other sites More sharing options...
ryan Posted October 22, 2012 Share Posted October 22, 2012 I have gone ahead and added this capability to the dev branch. Now pages with repeaters can access images within the repeaters, and repeater pages can access images from their containing pages. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now