Resource icon

[FF] AMS Enhancements 1.2.6

No permission to download
Properly sets prefix when using publish as draft.
Didn't notice the new version of AMS had some extra templates that needed modification for the cover image code to work.
  • Like
Reactions: TPerry
Updated function call from canViewArticleAttachments to canViewAttachments to be compatible with the latest AMS version.

Now requires AMS 2.2.26
  • Like
Reactions: CedricV and Bob
Same as update to Showcase Enhancements - new option to show the article cover image in place of the user avatar on the forum listing page (against associated discussion threads).

Turned off by default - can be turned on with the toggle in the options page.

Thumbnail can be edited with the ff_amse_threadthumbnail.less template.
  • Like
Reactions: Nuclé
Added feature to generate thumbnails (or reduced size images) from the cover images which are then delivered from the /data folder instead of /internal_data (so can easily be edge cached).

The default AMS method is to show the full size attachment as the cover image, which means possible huge file downloads on the index pages and widgets.

You can now use a new option to set the max size for the generated thumbnail (and still access the full sized attachment by using the original /cover-image url).


Disabled by default (set to 0 pixels) - if enabling you will need to run one of the rebuild methods to get everything up to date :)


Or use CLI job xf-rebuild:ff-amse-xa-ams-articles-cover-image
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 article 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.


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


Note: As this works from cache which is updated when an article is added/edited - you'll need to edit an existing article 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!
Top Bottom