Difference between revisions of "Extensions:Alternate Character View"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
m
Tag: 2017 source edit
Line 4: Line 4:
  
 
== Installation ==
 
== Installation ==
- php artisan migrate
+
* php artisan migrate
- php artisan add-site-settings
+
* php artisan add-site-settings
 
== Configuration ==
 
== Configuration ==
 
'''longest side default'''
 
'''longest side default'''

Revision as of 12:01, 18 November 2023

Alternate Character View
Description Adds the ability to adjust the character view depending on if an image has a larger height or width
Author(s) moif
Status stable
Github AW0005/lorekeeper-extensions/extension/alt-character-views
LK Version 2.1.3
Contains a Migration






Adds an attribute on character images that will measure for the longest side of a character image (and store it for efficiency) to allow for alternate displays on the character image pages.

Installation

  • php artisan migrate
  • php artisan add-site-settings

Configuration

longest side default There's a new site setting called "default_side" that lets you pick what the extension defaults to when it comes across an image that is square. It can default to "square" or "width" or "height" as specified on the site settings description.

Using the attribute By default this extension only uses the measurement in "resources/views/character/character.blade.php" to adjust the classname for the column width the image takes up so that wide images take up the whole width, and long images take up the same as default lorekeeper. If you want more complex adjusted views, you'll have to do that yourself.

Troubleshooting

I'm (moif) pretty much chronically in the LK server so I'll see any questions there!