Resource icon

xF2 Add-on [FF] Showcase Enhancements 1.2.11

No permission to download
Added two new permissions to items:

[FF] Showcase Enhancements


This allows you to separate item editing from attachment editing.

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

[FF] Showcase Enhancements


Error shown if allowed, but time limit expired

[FF] Showcase Enhancements

Attachments

  • [FF] Showcase Enhancements1.png
    [FF] Showcase Enhancements1.png
    14.1 KB · Views: 122
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
  • Like
Reactions: BattleKing
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.
  • Like
Reactions: BattleKing
  • Fix report assigned label being a raw phrase string instend of being rendered
  • Improve UI when issuing a warning on content which does not have a report
  • Like
Reactions: BattleKing
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)
  • Like
Reactions: BattleKing
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.
  • Like
Reactions: BattleKing
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.

1.png


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

2.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!
  • Like
Reactions: BattleKing
Top