Notifications
Clear all
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.
Posted : 06/04/2024 11:40 am
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.
Posted : 07/04/2024 3:27 am
