Difference between revisions of "Extensions:Sales Image"
m (→Images) Tag: 2017 source edit |
m (→Images) Tag: 2017 source edit |
||
Line 21: | Line 21: | ||
File:Sales Image One.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and no attached characters|The default setting of the extension showing a single focal image on the top of a sales post, beneath the title, with no attached characters visible. | File:Sales Image One.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and no attached characters|The default setting of the extension showing a single focal image on the top of a sales post, beneath the title, with no attached characters visible. | ||
File:Sales Image Two.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and two attached character thumbnails|The alternate setting of the extension showing a single focal image on the top of a sales post, beneath the title, with attached characters visible. | File:Sales Image Two.png|alt=A Lorekeeper sales post with a focal image displaying three different cats and two attached character thumbnails|The alternate setting of the extension showing a single focal image on the top of a sales post, beneath the title, with attached characters visible. | ||
+ | File:Sales Image Three.png|alt=A default sales widget displaying one sales post on top with a character thumbnail and another sales post beneath it with a focal image instead|The sales image and sales widget extension integrated together, showing the sales widget displaying one sales post with an attached character and no focal image and another sales post showing a focal image instead. | ||
</gallery> | </gallery> | ||
== Troubleshooting == | == Troubleshooting == | ||
You can ask for help in the Lorekeeper Discord. | You can ask for help in the Lorekeeper Discord. |
Revision as of 14:52, 23 October 2024
Description | Allows the uploading of a single focal image to sales posts |
---|---|
Author(s) | Min |
Status | stable |
Github | extension/sales-image |
LK Version | 3.0.0 |
Contains a Migration | |
Allows staff to upload a single focal image to sales post that will be displayed on top of the sales's text in it's own box. Handy if you wanted to display a big batch image as a focus rather than multiple character thumbnails and/or having the image be within the sales's body text.
Comes with an additional site setting that allows you to choose if only the focal image (if set) is displayed or if the focal image is displayed along with all attached characters.
Image file type supported for the focal image is PNG.
Installation
Pull the branch and resolve any merge conflicts. Afterwards, you can run the following commands:
php artisan migrate
php artisan add-site-settings
php artisan optimize
(x2)
Configuration
There is a sales_image_display
site setting. Setting it to 0 (default) will only show the focal image if it is uploaded. Setting it to 1 will show the focal image along with all attached characters. If no focal image is uploaded or it is removed, then it will simply display attached characters (if any).
Images
Troubleshooting
You can ask for help in the Lorekeeper Discord.