modmore community forum - Latest posts https://forum.modmore.com Latest posts User download of entire gallery We have request form customer to enable download of entire gallery (as a single zip). Anybody tried this? It seems to be quite simple write snippet that zips directory content of that gallery to a temp file and return link (using ajax). But there need to be some kind of garbage collection of long time unused zips, on the other side reuse already created zips. Any ideas?

]]>
https://forum.modmore.com/t/user-download-of-entire-gallery/2689#post_1 Wed, 18 Mar 2026 14:40:04 +0000 forum.modmore.com-post-5419
Shipping fee based on a TV value Custom shipping methods are powerful in Commerce but because of that also a little complicated the first time.

You need to start building your own module (extension). https://docs.modmore.com/en/Commerce/v1/Developer/Guides/Bootstrapping_a_Module.html

Once you have that, you can extend the comShippingMethod class through the xPDO model in the extension to create your custom shipping method. https://docs.modmore.com/en/Commerce/v1/Developer/Custom_Shipping_Methods.html

Once you have that, you can take your example code and put it in the getPriceForShipment method. I see some minor issues you’d need to fix:

  • It’s $shipment->getItems(), or $order = $shipment->getOrder() and then $order->getItems() to get the items.
  • It’s $product->getTarget(), not $product->getResource().
  • Careful using strict type matching for TV values. Those typically come through as strings, so I suspect your $profit match would not work.
]]>
https://forum.modmore.com/t/shipping-fee-based-on-a-tv-value/2688#post_2 Mon, 16 Mar 2026 13:37:34 +0000 forum.modmore.com-post-5418
Rebuild Content is not working for all pages If you look at the rebuild log for the page in question, what does it say about the page?

]]>
https://forum.modmore.com/t/rebuild-content-is-not-working-for-all-pages/2686#post_2 Mon, 16 Mar 2026 13:29:51 +0000 forum.modmore.com-post-5417
Any way to hide modx-resource-content field with form customisation? That works! Great, thanks!

]]>
https://forum.modmore.com/t/any-way-to-hide-modx-resource-content-field-with-form-customisation/2685#post_3 Mon, 16 Mar 2026 11:29:25 +0000 forum.modmore.com-post-5416
Shipping fee based on a TV value If anyone is familiar with the commerce plugin, could they tell me about 2 things :

  1. if there is a way where I can add shipping fee on a product based on a TV value.
  2. to then there to be no shipping cost if they have more than 1 product in the cart.

This is a sample snippet with the logic:

<?php
/**
 * Custom shipping calculator for Commerce
 * Returns £8 if:
 * - There is exactly one ink product (total quantity of inks = 1)
 * - AND that ink product has product_profit < 8
 * Otherwise returns 0 (free shipping).
 */

// Get the cart
$cart = $modx->commerce->getCart();
$items = $cart->getItems();

$totalInkQuantity = 0;
$lowProfitExists  = false;

foreach ($items as $item) {
    // Get the product object (comProduct)
    $product = $item->getProduct();
    if (!$product) {
        continue;
    }

    // Get the linked resource (MODX resource) to access the TV
    $resource = $product->getResource();
    if (!$resource) {
        continue;
    }

    // Retrieve the product_profit TV value
    $profit = $resource->getTVValue('product_profit');

    // If the TV is not equal to -1, we consider this an ink product
    if ($profit !== -1) {
        $quantity = $item->get('quantity');
        $totalInkQuantity += $quantity;

        // Check if this product has low profit (<8)
        if ((float)$profit < 8) {
            $lowProfitExists = true;
        }
    }
}

// Rule 1: If total ink quantity > 1, shipping is free
if ($totalInkQuantity > 1) {
    return 0.00;
}

// Rule 2: If exactly one ink product (total quantity = 1) and it has low profit, charge £8
if ($totalInkQuantity === 1 && $lowProfitExists) {
    return 8.00;
}

// All other cases: free shipping
return 0.00;
]]>
https://forum.modmore.com/t/shipping-fee-based-on-a-tv-value/2688#post_1 Mon, 16 Mar 2026 03:52:51 +0000 forum.modmore.com-post-5415
Rebuild Content is not working for all pages I have a strange issue. If I rebuild the content, not all pages will be updated properly. Some will be ignored, but no error is shown. I need to edit and save the page to rebuild.

If the page is once “manually” rebuilt it will get newer changes.

]]>
https://forum.modmore.com/t/rebuild-content-is-not-working-for-all-pages/2686#post_1 Sun, 15 Mar 2026 18:03:38 +0000 forum.modmore.com-post-5413
Any way to hide modx-resource-content field with form customisation? You need a custom property to disable Content-Block for the related template. Than the default content section can be hidden in the form customisation.

]]>
https://forum.modmore.com/t/any-way-to-hide-modx-resource-content-field-with-form-customisation/2685#post_2 Sun, 15 Mar 2026 17:57:20 +0000 forum.modmore.com-post-5412
Any way to hide modx-resource-content field with form customisation? In a resource that uses contentblocks it does not seem to be possible to disable the modx-resource-content region. Is this a bug or is there a way to hide it completely for special templates?

Using MODX-3.2.0 and CB 1.15.0-rc2

]]>
https://forum.modmore.com/t/any-way-to-hide-modx-resource-content-field-with-form-customisation/2685#post_1 Tue, 10 Mar 2026 18:24:30 +0000 forum.modmore.com-post-5411
Feature suggestion: show usage # of blocks I thought that this should be a routine that is only triggered when needed, just like the rebuild content function.

It’s also not that bad. My crude snippet takes 0.4s to create two HTML tables for fields and layouts with sum and links to every resource on a page with 800 resources. (only problem is that fields in a repeater are registered as a regular fields)

]]>
https://forum.modmore.com/t/feature-suggestion-show-usage-of-blocks/2126#post_4 Tue, 10 Mar 2026 18:16:39 +0000 forum.modmore.com-post-5410
Bugs with Image input type
mhamstra:

This is very broken, conceptually that seems like it’s supposed to be checking for absolute files and let those through, but it only let’s an empty string through - meaning it just checks /.

Yes, this part of code probably never runs and is probably not needed.

Looking few lines above I wander what would happen if somebody starts regular file name with ‘http’?
if (substr($src, 0, 4) != 'http')
This is very poor check for http protocol. Should be someting like
if (substr($src, 0, 7) != 'http://' && substr($src, 0, 8) != 'https://')
or some regex.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663?page=2#post_22 Wed, 25 Feb 2026 08:22:04 +0000 forum.modmore.com-post-5409
Bugs with Image input type
mhamstra:

Correct - that’s basically the first thing I do in a typical site, configuring specific sources for specific uses, but I suppose not everyone does that with a new source.

I would consider this a very specific setup, we never needed media source from web root. It might be convenient for admin. But other users must not have access to it. We only create specific sources for editors.

Maybe it never really worked, just nobody noticed. You didn’t because of your webroot default media source. We didn’t either because for years and many sites always using image crops, which works fine. This is first time page design let users decide if they want crop.

To me it seems that all you need to do is:

  • return source parameter back to phpthumb call
  • if basePathRelative and url starts with MODX_BASE_PATH, strip that path
  • if url starts with basePath, strip that path
  • call phpthumb with this relative path and source number

Basically, you need to do inverse logic to prepareSrcForThumb($src) function:

            if (strpos($src, DIRECTORY_SEPARATOR) !== 0) {
                $src = !empty($properties['basePath']) ? $properties['basePath'] . $src : $src;
                if (!empty($properties['basePathRelative'])) {
                    $src = $this->ctx->getOption('base_path', null, MODX_BASE_PATH) . $src;
                }
            }

Or you can call phpthumb directly like phpthumof does, without any MediaSource stuff. But not sure what happens with S3 sources.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663?page=2#post_21 Wed, 25 Feb 2026 08:13:34 +0000 forum.modmore.com-post-5408
HTML in contentblocks descriptions escaped I think Mark just added this in the newest version!

]]>
https://forum.modmore.com/t/html-in-contentblocks-descriptions-escaped/2487#post_3 Wed, 25 Feb 2026 07:25:57 +0000 forum.modmore.com-post-5407
Bugs with Image input type This is very broken, conceptually that seems like it’s supposed to be checking for absolute files and let those through, but it only let’s an empty string through - meaning it just checks /.

Same code in 3.x.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_20 Tue, 24 Feb 2026 23:41:47 +0000 forum.modmore.com-post-5405
Bugs with Image input type
hrabovec:

This also means creating another Source replacing original one, and use that Source everywhere: image TVs, default media source in core system setting, CB system settings, Formit system settings etc.

Correct - that’s basically the first thing I do in a typical site, configuring specific sources for specific uses, but I suppose not everyone does that with a new source.

That’s basically how it was before - we were passing the url and either the fields’ source or the contentblocks.image.source system setting value. But then apparently that stopped working for whatever reason…

I guess we’re going to have to build our own phpthumb endpoint that tries to parse out the base url of whatever media source and hope for the best. Don’t think we can do that client-side which is where most of this logic is at.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_19 Tue, 24 Feb 2026 23:29:11 +0000 forum.modmore.com-post-5404
Bugs with Image input type @mhamstra I can confirm reconfiguring Media Source ID 1 to website root resolves issue. Ordinary users must not have access to this Source, it might be dangerous.
This also means creating another Source replacing original one, and use that Source everywhere: image TVs, default media source in core system setting, CB system settings, Formit system settings etc.
I consider this as emergency workaround, while it requires Media Source ID 1 to be configured for website root. That Media Source is not needed in any other way and can be even security risk.

Please think about it again: you said we store full url without Media Source ID. This is not exactly true: Media Source ID is stored in contentblocks.image.source and can be overwritten per Image CB Field. You use that Media source each time uploading or choosing existing one. So why not using the same info to construct Media Source relative url in manager thumb?

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_18 Tue, 24 Feb 2026 21:35:17 +0000 forum.modmore.com-post-5403
Bug When Pasting Text with Link Following more information through our support email, I’ve just released v3.4.2 with additional fixes around the manager url being added and making sure it is removed.

Please try it out and let me know if you continue to encounter issues with that!

]]>
https://forum.modmore.com/t/bug-when-pasting-text-with-link/1950#post_6 Tue, 17 Feb 2026 16:43:17 +0000 forum.modmore.com-post-5402
Bugs with Image input type Well, that explains everything. If you always have Media source with ID=1 at site root, this works fine. But you need to be carefull and restrict normal users from that source.
We are always creating only media sources needed for users, so they are not from root. As admins, we have other means to access all files on server.

In theory I can try to reconfigure server as you have, it’s probably not too difficult. But this should be mentioned somewhere in docs to spare us from such headache. I don’t think this is specific to MODX2 in general, but to introduction of Media sources. Due to your default setup you didn’t found this glitch until now. Neither we did because of using crops.

Thinking about it further: inspiration might be popular phpthumbof: it’s doesn’t care about Media source, because it’s mostly used as output filter to processed TV (that already include base path). Looking into code, (when useResizer is off) it uses modPhpThumb class directly to generate thumbnail, which also manages caching. It doesn’t call PhpThumb processor that makes things complicated due to Media sources. This would only affect manager thumbnails. It has nothing to do with CB template parsing or front end. So it’s won’t break any site.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_17 Fri, 13 Feb 2026 19:12:21 +0000 forum.modmore.com-post-5401
Bugs with Image input type
hrabovec:

What I am saying is that TV doesn’t store full url, just part relative to media source. Also in manager, you only see that part:

I understand, but we can’t do that. We store the full url. We haven’t reliably stored the right media source ID when people have selected images to use in the past, plus users can also add images just by entering a URL, or uploading directly which then gets saved somewhere, so moving to the model that uses the media sources API would be tricky for the thousands of existing sites and that existing content.

Did you perhaps change the source with ID 1 to a different base path? On my site(s), that’s always the root one (typically for admin one) which would be consistent with what I’m seeing and what’s different for you.

Development is mainly done on MODX 2 here as well so that could be something that explains the difference, worth reviewing.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_16 Fri, 13 Feb 2026 18:39:10 +0000 forum.modmore.com-post-5400
Bugs with Image input type Investigating further:

Processor PhpThumb.php

  1. on line 64 sets Media source from request source param:
    $this->getSource($this->getProperty('source'));
  2. getSource() sets requested or default Media source:
    $this->source = modMediaSource::getDefaultSource($this->modx, $sourceId, false);
  3. on line 70 calls Media source to process $src param:
    $src = $this->source->prepareSrcForThumb($src);
    If this returns empty, php thumb quetly exits. This is what is happening.

Class modMediaSource.php

  1. function prepareSrcForThumb($src) uses FileSystem class to check if file exist
    if (!$this->filesystem->fileExists($src)) { return ''; }
    It does not, because of how filesystem works and filesystem adapter is initialized

Class modFileMediaSource.php

  1. in initialize() function creates LocalFileSystemAdapter($this->getBasePath(), ... )
  2. getBasePath() returns absolute path for this source
  3. so adapter is doing all operations relative to this base path

Class LocalFileSystemAdapter.php

  1. in constructor creates PathPrefixer using base path that is used later in all operations of this FileSystem instance

All this is consistent with my observations of how it works. So question really is how can be this working differently for Mark?

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_15 Fri, 13 Feb 2026 17:51:30 +0000 forum.modmore.com-post-5399
Bugs with Image input type What I am saying is that TV doesn’t store full url, just part relative to media source. Also in manager, you only see that part:

images/image.jpg is also what is stored in modx_site_tmplvar_contentvalues db table.
When MODX renders [[*myTV]] on front-end, it adds media source base path, from media source defined in TV Media Sources tab for each context. So one TV can behave differently in different contexts.
One must be carefull when using raw db values of image TVs and not processed values from parser.

Full url in our setup described above is /_user/images/image.jpg
Manager call for thumbnail doesn’t contain media source base /_user/:
/connectors/system/phpthumb.php?w=400&h=400&aoe=0&far=0&f=png&src=images%2Fimage.jpg&wctx=web&source=1&version=28d95d9b

Is the full URL it generates when selecting an image not correct?

Full URL is correct, but it must not be full url to work properly.
When playing with direct calls to phpthumb, ti works like I have written before: src must not contain media source base and source if not specified is defaulted to 1.

So the question is why it works differently in your setup?

The funny thing here is that we use CB for years with pretty large and complex sites and we found this bug only recently. It’s because design of those sites required fixed aspect ratios for images, so we made users use crops. Crops works fine for manager previews. Now client requires mostly uncropped images so we are in trouble.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_14 Fri, 13 Feb 2026 11:25:35 +0000 forum.modmore.com-post-5398
Bugs with Image input type Yes, the point is that we’re using the full URL just like an image TV would use. So that phpthumb can get to it regardless of what source it was selected from, as we don’t always know reliably what source an image came from. We just know the full URL.

So the question I don’t have an answer to yet is why passing the full URL does not let phpthumb create the thumbnail for you. That works here, regardless of which source I select an image from.

Is the full URL it generates when selecting an image not correct? If so, that could point to a misconfigured media source. Or maybe there is another variable we’re overlooking here.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_13 Thu, 12 Feb 2026 23:13:35 +0000 forum.modmore.com-post-5397
Bugs with Image input type When I saw that you have removed source from phpthumb call, I thought it will be fine, but it’s not. Seems that default media source base path is added anyway.

I even tried to clear default_media_source system setting, didn’t help. Seems that media source 1 is always default one. Can see this in modMediaSource:
$defaultSourceId = $xpdo->getOption('default_media_source', null, 1);

I tried calling phpthumb on image from another media source and to make it work I had to add source=3 to make it work. But for images from media source 1 (which is also default one) it doesn’t matter if you add source param or not.

Image template variables store path relative to media source. This is why you see correct preview in manager, it doesn’t contain media source base.
But when TV is used (processed), it returns complete path including base, so front end is fine.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_12 Thu, 12 Feb 2026 14:22:28 +0000 forum.modmore.com-post-5396
Bugs with Image input type
hrabovec:

Unfortunately, #3 is still the same bug. The only difference I can see is missing &source=1 parameter from manager php thumb call. But the media source basePath is still there, resulting in error. Seems that phpthumb is still adding basePath, even if it’s not explicitely defined in call.

The fix was to remove the source parameter, to make phpthumb look from the project root. The problem we had trying to run it with the source, is that we don’t store the source-relative URL - only the full URL, as determined by the media source, which does indeed include your media source base url/path and is what the front-end renders too.

Without the source parameter phpthumb should be looking in MODX_BASE_PATH + provided path for the file. So your MODX base path + /_user/images/_contentblocks/image.jpg which should be correct. :thinking:

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_11 Thu, 12 Feb 2026 13:09:07 +0000 forum.modmore.com-post-5395
Bugs with Image input type Another point: based on changelog, there is a new setting “Open to Directory” that when choosing from existing images should open Media browser in defined Directory. This is not working for me, always opening Media browser in Media source root. Also not remembering last used directory.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_10 Wed, 11 Feb 2026 19:50:07 +0000 forum.modmore.com-post-5394
Bugs with Image input type Hello Mark, thanks for your effort.
I can confirm #1 and #2 as resolved.

Unfortunately, #3 is still the same bug. The only difference I can see is missing &source=1 parameter from manager php thumb call. But the media source basePath is still there, resulting in error. Seems that phpthumb is still adding basePath, even if it’s not explicitely defined in call.

Now the manager call is:
https://myhost/connectors/system/phpthumb.php?src=/_user/images/_contentblocks/image.jpg&w=150&h=100&zc=1

Should be:
https://myhost/connectors/system/phpthumb.php?src=images/_contentblocks/image.jpg&w=150&h=100&zc=1&source=1

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_9 Wed, 11 Feb 2026 19:37:24 +0000 forum.modmore.com-post-5393
Bugs with Image input type Also fixed for 1.15.0-rc2. Will get that released soon.

Edit: released!

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_8 Wed, 11 Feb 2026 17:47:21 +0000 forum.modmore.com-post-5392
Bugs with Image input type @mhamstra Any chance of solving #3, please?

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_7 Tue, 10 Feb 2026 16:48:29 +0000 forum.modmore.com-post-5391
Feature suggestion: show usage # of blocks As the data is not indexable in its current form, trying to add that in v1 would grind sites with 1000s of resources to a halt or require significant effort to build some sort of separate index.

In v2 which already has the structured data model, this is easy and optimized already and definitely something we’ll add to the UI.

]]>
https://forum.modmore.com/t/feature-suggestion-show-usage-of-blocks/2126#post_3 Mon, 09 Feb 2026 14:01:33 +0000 forum.modmore.com-post-5390
Feature suggestion: show usage # of blocks Just replying to myself to renew this suggestion. If you have a site with a lot of editors it’s important to keep track of which ContentBlock is used where when you change or update blocks.

With the help of AI built myself a snippet that lists all Blocks, how often they are used and provides links to the manager page of each resource that uses it. It has become very helpful when upgrading sites. Such info should be integrated in the CB-CMP, too.

]]>
https://forum.modmore.com/t/feature-suggestion-show-usage-of-blocks/2126#post_2 Sun, 08 Feb 2026 04:57:46 +0000 forum.modmore.com-post-5389
Use @SNIPPET Binding in Dropdown This works with just some small changes:

return $modx->runSnippet('getResources', [
    'parents' => 13,
    'limit' => 0,
    'sortby' => 'pagetitle',
    'tpl' => '@INLINE [[+id]]==[[+pagetitle]]'
]);
]]>
https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657#post_4 Sat, 07 Feb 2026 18:06:47 +0000 forum.modmore.com-post-5388
Possible to use base_url setting in a directory path? That works! Thanks!

]]>
https://forum.modmore.com/t/possible-to-use-base-url-setting-in-a-directory-path/2683#post_3 Fri, 06 Feb 2026 16:20:26 +0000 forum.modmore.com-post-5387
Possible to use base_url setting in a directory path? Media sources typically are already relative to the base url, so that directory is too. There’s no placeholder for that implemented.

Assuming you might be doing something multi-context here, what about using [[+context_key]]?

]]>
https://forum.modmore.com/t/possible-to-use-base-url-setting-in-a-directory-path/2683#post_2 Fri, 06 Feb 2026 09:17:49 +0000 forum.modmore.com-post-5386
Possible to use base_url setting in a directory path? I’d like to set the Directory field for file uploads to files/{{base_url}}/ but this doesn’t seem to work. I tried [[++base_url]] as well but no luck. Is there a way to do this?

]]>
https://forum.modmore.com/t/possible-to-use-base-url-setting-in-a-directory-path/2683#post_1 Thu, 05 Feb 2026 20:16:05 +0000 forum.modmore.com-post-5385
Bugs with Image input type Okay it looks like #2 is a 2.x vs 3.x issue. On 2.x, the image_width and image_height would return the original image size. On 3.x, that changed and now returns the filemanager size.

3.x does add a new original_width/height so we need to use that. It looks straightforward enough to use that and fall back to the image_width/height if it’s not set (on 2.x), so consider that fixed in 1.15.0-rc2 as well.

Still need to research why the media source thing doesn’t work (#3)… will review that hopefully tomorrow.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_6 Thu, 29 Jan 2026 18:09:32 +0000 forum.modmore.com-post-5384
Bugs with Image input type @mhamstra could you please help with bugs mentioned above? We need to go live with customer site relying on CB and this is showstopper for us.

]]>
https://forum.modmore.com/t/bugs-with-image-input-type/2663#post_5 Thu, 29 Jan 2026 16:41:43 +0000 forum.modmore.com-post-5383
Can't download Magic Preview Yes, it was a problem with a firewall. Now it’s fixed.
Thanks again.

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_8 Thu, 29 Jan 2026 16:20:54 +0000 forum.modmore.com-post-5382
Can't download Magic Preview Thanks for the hints. I will check this and contact my server provider.

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_7 Thu, 29 Jan 2026 14:38:26 +0000 forum.modmore.com-post-5381
Can't download Magic Preview provider_err_nf means the provider can’t be found (nf = not found) so it might not be assigned correctly. Sometimes you can fix that by clicking View Details and then reassigning the provider.

The 403 forbidden suggests to me there might be a firewall/WAF on the server blocking that request.

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_6 Thu, 29 Jan 2026 14:14:33 +0000 forum.modmore.com-post-5380
Can't download Magic Preview That’s crazy. Last year I could download some extras from modx. Now it doesn’t work. If I check for updates on existing and installed extras I get an error message “provider_err_nf” and I don’t know why.

The browser’s console shows an error:

ext-base.js:21 POST https://my_problematic_domain.de/connectors/index.php 403 (Forbidden)

||i|@|ext-base.js:21|
| --- | --- | --- | --- |
||request|@|ext-base.js:21|
||request|@|ext-all.js:21|
||onDownload|@|package.browser.panels.js?mv=312pl:277|
||onClick|@|package.browser.panels.js?mv=312pl:236|
||A|@|ext-all.js:21|
]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_5 Thu, 29 Jan 2026 12:08:34 +0000 forum.modmore.com-post-5379
Can't download Magic Preview Hmm, that’s odd. I just tried to download v1.5.1 and that worked fine so I don’t immediately see any issues on our side.

Do you see any errors in the browsers’ developer console perhaps when you try to download? Can you download other extras, from modmore or modx, just fine?

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_4 Thu, 29 Jan 2026 11:29:15 +0000 forum.modmore.com-post-5378
Can't download Magic Preview The error protocol is empty!

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_3 Sun, 25 Jan 2026 17:02:19 +0000 forum.modmore.com-post-5377
Can't download Magic Preview Can you check your modx error log for details?

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_2 Sun, 25 Jan 2026 13:31:04 +0000 forum.modmore.com-post-5376
Can't download Magic Preview Hi all, i have an API key, choosed the package provider modmore and tried many times to download Magic Preview. Nothing happens except a persistent message saying “Please wait… Downloading.”

What can I do to get Magic Preview?

System: MODX Rev 3.1.2-pl
PHP 8.3.25 on Linux server
mysql DB
Provider dogado.de

Cleared cache via MODX and manually multiple times.

Thanks for hints and help.

]]>
https://forum.modmore.com/t/cant-download-magic-preview/2682#post_1 Sat, 24 Jan 2026 09:46:15 +0000 forum.modmore.com-post-5375
Alpacka deprecation messages on PHP 8.4 Thanks, would be nice, although is not critical, of course :slight_smile:

]]>
https://forum.modmore.com/t/alpacka-deprecation-messages-on-php-8-4/2679#post_3 Thu, 15 Jan 2026 19:40:22 +0000 forum.modmore.com-post-5372
Alpacka deprecation messages on PHP 8.4 Moved your report to GitHub: Deprecation warning · Issue #8 · modmore/Alpacka · GitHub

Will take a look, should be an easy fix.

]]>
https://forum.modmore.com/t/alpacka-deprecation-messages-on-php-8-4/2679#post_2 Thu, 15 Jan 2026 14:40:58 +0000 forum.modmore.com-post-5371
Alpacka deprecation messages on PHP 8.4 Body:

Hello,

I’m experiencing deprecation warnings with MoreGallery in my MODX installation running on PHP 8.4. The warnings appear to be coming from the Alpacka dependency.

I have some PHP CLI scripts that include MODX object (use MODX\Revolution\modX;), and that is enough to raise this erorr message in every output of this script.

Error Message:

Deprecated: modmore\Alpacka\Alpacka::getBooleanOption(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/core/components/moregallery/vendor/modmore/alpacka/core/components/alpacka/src/Alpacka.php on line 541

Environment:

  • MODX Revolution: 3.1.2
  • PHP Version: 8.4
  • MoreGallery: 1.18.0-rc1

Request:
Could you please update the Alpacka package to remedy this issue?

And thank you for your excellent work on MoreGallery!

]]>
https://forum.modmore.com/t/alpacka-deprecation-messages-on-php-8-4/2679#post_1 Thu, 15 Jan 2026 14:24:28 +0000 forum.modmore.com-post-5370
Bug When Pasting Text with Link Not sure why I never replied, sorry.

This should’ve been fixed with v3.2, released november 2023. Are you still seeing it in that release or newer?

(Internal issue 540)

]]>
https://forum.modmore.com/t/bug-when-pasting-text-with-link/1950#post_5 Mon, 22 Dec 2025 21:33:13 +0000 forum.modmore.com-post-5366
Support Snippet Props with Options From what I can tell, when you use the Snippet input type it picks up the default props but only renders textfield inputs on the canvas and does not render other field types that may be used in the target Snippet’s props. Is that correct? If so, it’d be nice to mirror the field types of a given Snippet’s props on the cb canvas (especially the boolean and single-select combos).

]]>
https://forum.modmore.com/t/support-snippet-props-with-options/2674#post_1 Thu, 18 Dec 2025 20:09:10 +0000 forum.modmore.com-post-5364
Use @SNIPPET Binding in Dropdown It’d be great to have support for the json params; any plans for that being added?

Also useful would be having an @CHUNK binding, which could more easily implemented (maybe ?). I sometimes use a chunk just to make list-specific calls that pass params to a general-purpose list getter snippet I created.

]]>
https://forum.modmore.com/t/use-snippet-binding-in-dropdown/2657#post_3 Tue, 09 Dec 2025 17:02:25 +0000 forum.modmore.com-post-5363
Optional crop for image Hello Sebastian,
thanks for your ideas, but any combination of chunks and output filters won’t work. As I have mentioned, we are using output filter on [[*content]] field. This is moment when not all placeholders are parsed, so you are working with unparsed strings instead of parsed values.

But I have found quite an elegant way using newly added CB events.
Consider this field template (simplified use case):

<img class="mx-cb-field-image-cropped" src="proxy.php?url=[[+crops.Free.url]]" width="[[+crops.Free.targetWidth]]" height="[[+crops.Free.targetHeight]]">

If “Free” crop is not defined, you need to switch to a different template. So I used plugin for ContentBlocks_BeforeParse:

<?php
$tpl = $scriptProperties['tpl'];
$phs = $scriptProperties['phs'];
if (strpos($tpl, 'mx-cb-field-image-cropped') !== false) {
  if(!$phs["crops"] || !$phs["crops"]["free"]) {
    $modx->log(modX::LOG_LEVEL_ERROR, "changing template");
    $modx->event->output('<img src="proxy.php?url=[[+url]]" width="[[+width]]" height="[[+height]]">');
  }
}
return null;

We have it more complicated than this, rescaling with phpthumbof etc, but the basic idea work just fine.

Unfortunately this doesn’t solve bugs mentioned here: Bugs with Image input type

]]>
https://forum.modmore.com/t/optional-crop-for-image/2662#post_8 Mon, 08 Dec 2025 14:34:55 +0000 forum.modmore.com-post-5360