Resource icon

xF2 Add-on [FF] Showcase Enhancements 1.2.12

No permission to download
Properly sets prefix when using publish as draft.
Added two new permissions to items:

1691603250310.png




This allows you to separate item editing from attachment editing.

Error shown if "Delete own item attachments" is No/Never

1691603257817.png




Error shown if allowed, but time limit expired

1691603264956.png
The new version of Showcase brought in some new templates which needed to be modified for this add-on to correctly work.

The minimum Showcase version is now : 3.2.28
Changed "Item Quick Reply" from a checkbox to a dropdown.

1685077956691.png



"Bottom of item page" will appear above where the built in SC comments would be if you had them enabled.
"Directly below item" is as it sounds ;)

Bug Fix - Drafts weren't being cleared properly on submission.
Fixed bug where you couldn't disable cover image generation (size wouldn't accept 0).
Fixed bug where rebuild could throw error on invalid cover attachments.

Changed default cover size to 0 (so disabled on first install)
Ok so I shouldn't have been lazy yesterday, I've now updated this to use template replacements so cover image thumbnails are now linked directly in the page (no 301 redirects anymore) - this will speed things up.

This means you can still go to the /cover-image url to show the original full size one (which I think is quite useful)

Also added a new CLI job xf-rebuild:ff-se-xa-sc-items-cover-image so you can rebuild them all from the command line - thank to @Mouth.

Oh and if you are enabling the cover thumbnails on an existing site, you will need to run one of the rebuilds (CLI or admin area) otherwise Showcase will be linking to un-generated images.
Sorry about this, in my haste to copy and paste from the old addon, I missed an important part of code - yikes!

So this update fixes that (basically if you posted an item with no prefix at all it would fail)

As a bonus though and to say sorry about that, I've integrated another one of my addons into it.

Navigation Block Prefixes

If you enable this feature, the item assigned prefixes will appear in the navigation block, underneath the relevant category where the child categories go.

In this example "Ford Cars" is the real category, whereas "Fiesta", "Puma" and "Ranger" are just links to show only those prefixes in the "Ford Cars" category.

1672139251163.png



You can choose how they are sorted (or to turn them off entirely) in the admin option:

1672139355250.png

Note: As it works from cache which is updated when an item is added/edited - you'll need to edit an existing item and switch the prefix to something else then back again to build it the first time around. After this it will update automatically :) Yes I could have put that code in a repository and run on install, but I was tired ok!
731Threads
2,287Messages
63,845Members
maxmaxyameLatest member
Back