Forum

Thread tagged as: Problem, Addons, Events

Assets not showing correctly in Perch Events default textarea

Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4), perch_events (1.9.5), perch_blog (5.5.1)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_events', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/sslhorgu/public_html/perch
PERCH_CORE: /home/sslhorgu/public_html/perch/core
PERCH_RESFILEPATH: /home/sslhorgu/public_html/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/sslhorgu/public_html
HTTP_HOST: sslh.org.uk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

When we try to use the 'file' button in the default textarea (eventDescHTML) of Perch Events, the system allows the selection and saving of an asset but the output, rather than being a link to the asset on the page, is simply:

[cms:asset 412]

Here's the region code

<perch:events id="eventDescHTML" type="textarea" textile="true" size="s" editor="markitup" encode="false" />

This works correctly in other textarea fields in the same template. It also works correctly in the Blog app, which we're using on the same site.

This is also true for images in the default textarea.

I've tried it on another site and got the same behaviour.

Robert Sinclair

Robert Sinclair 4 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If this is a new build I would advise against using the Events app unless you really need a calendar view.

No these are both established installations. They're just broken by the P3 update.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It's probably worth holding off on upgrading the live version to Perch 3 then.

Too late. This is a feature that gets used sometimes in a larger site that otherwise works fine, so it didn't come to light immediately. I put in a workaround for now.