Skip to content

Support multi-image comics #15

@simonwo

Description

@simonwo

In addition to new template variables (dicussed at https://comicfury.com/forum/viewthread.php?id=53023#p1424336) this will also require some way to identify them, potentially using directories to group images together?

It's a similar story for comicimageurl, you can use [l:comicparts]...[/]:

[l:comicparts]
    [v:l.html] - the html contents of this loop iteration. this includes stuff like a surrounding link to the next page
    [v:l.imageonlyhtml] - an <img> tag containing the image, without surrounding link
    [v:l.imageurl] - url to the image file
    [v:l.width] - width of the image
    [v:l.height]
[/]

This loop also exists for non-image pages, though some stuff like imageurl may of course be missing. I recommend using it with a condition on [v:comicimagetype], like so:

[c:comicimagetype=multiimage]
    [l:comicparts]
        ...
    [/]
[/]
[c:comicimagetype!=multiimage]
    [v:comicimage]
[/]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions