new module - storyb...
 
Notifications
Clear all

new module - storybanner

2 Posts
1 Users
0 Reactions
230 Views
(@jimmi)
Posts: 95
Estimable Member
Topic starter
 
This module adds a banner field for stories and series. Simple one-line text field for the full path to the image.

To use it in the skin:

series

Templates:
- listings.tpl
- seriesblock.tpl

{seriesbanner} 

- insert the image with HTML img tag

{seriesbanner_src}

- return only image path

 
{seriesbanner_title}

- return the title of the series in format for the alt tag

Example:
 
<img src="{seriesbanner_src}" class="rounded mx-auto d-block" alt="{seriesbanner_title}">
or
{seriesbanner}

stories

Templates:
- listings.tpl
- storyindex.tpl

{storybanner}

- insert an image with HTML img tag

{storybanner_src}

- return only image path

 
{storybanner_title}

- return the title of story in format for the alt tag

Example:
<img src="{storybanner_src}" class="rounded mx-auto d-block" alt="{storybanner_title}">
or
{storybanner}

 

Repo:

https://github.com/e107-eFiction/modules

 

 

 


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 06/04/2024 11:40 am
(@jimmi)
Posts: 95
Estimable Member
Topic starter
 

Just note. I forgot to add this to pdf printing.  Added to todo list.


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 07/04/2024 3:27 am
Share: