Forum

Thread tagged as: Problem

2 small issues with repeaters

Hi,

Not the end of the world, but I can't find how to fix them:

1 Removing an image from a repeater won't work in gallery app

Simple code for the example:

<perch:gallery id="image" type="image" key="main"  width="1000" height="800" crop="false" />
<perch:gallery id="image" type="image" key="thumb" width="300" height="300" crop="true" />
<perch:gallery id="image" type="image" key="small" width="600" height="300" crop="false" />
<perch:repeater id="MyHotspots" label="Hotspot">
<perch:gallery id="hotspot" type="image" label="Hotspot" width="100" height="100" crop="false" bucket="hotspots" />
</perch:repeater>

2 To save upon adding 2 or more repeater's entries will only save the first if using Redactor editor while it works fine using Markitup. ie I must save right after the first entry before adding the following ones.

Would you have any suggestions to fix these problems?

Thanks in advance.

Hugues

Hugues Mertens

Hugues Mertens 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

We need to see your Diagnostics Report with each post to the forum - thanks!

Sorry, There it is: Perch: 2.8.29, PHP: 5.5.34, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_gallery (2.8.6), asveyou_imagesinteractives (2.8.6), asveyou_memorygame (2.8.6) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/asveyou_memorygame/runtime.php'); include(PERCH_PATH.'/addons/apps/asveyou_imagesinteractives/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php'); ?> PERCH_LOGINPATH: /gestion PERCH_PATH:*** PERCH_CORE: /core PERCH_RESFILEPATH:/ressources Image manipulation: GD PHP limits: Max upload 64M, Max POST 64M, Memory: 128M, Total max file upload: 64M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are these repeaters working within Perch itself? The Gallery app is quite old and predates repeaters and blocks.

Yes, they are. Repeaters are working fine in Gallery and in my other apps as well except for the file/picture removal.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you describe the process for picture removal that you're following?

Just by checking the remove box and saving

Drew McLellan

Drew McLellan 2638 points
Perch Support

Not removing the repeater item itself?

It could be, but in complete version, the repeater contains many other informations such as hotspot coordinates, options presets for the design of the hotspot point along with the ability to use a custom image as a point, inline informations linked to the point, and so on… Sometimes the editors want to go back from a custom image to a preset image that's why it's better to remove the image without deleting to the repeater.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll log it and see if we can reproduce the issue.

Thank you!