• Resolved squibs

    (@squibs)


    I’ve been looking at the theming capabilities, and am trying to inject a link that contains the page title and the gallery index number in the url:

    e.g <a href=”/form?param1=<pagetitle>&param2=<index>”>Link</a>

    Looking at the template tags, it doesn’t look like the page title is exposed, and I’m not sure how I could have php code execute when the HTML template is loaded. The starter theme main.php doesn’t seem to facilitate anything like that.

    Similarly, I tried to use javascript to append it to the slb_group_status span, but I can’t figure out how to hook into the javascript that’s run to populate the when an image is clicked to populate the slb_viewer_wrap div with image details.

    I wonder if there’s any code I can reference? I couldn’t find anything on your site or github to help.

Viewing 1 replies (of 1 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, something like this would likely need to be handled by a custom lightbox template tag.

    You can refer to the native template tags for details on how they are structured.

    Tags are initialized via the slb_template_tags_init action hook. You can refer to the initialization of the native template tags for more details.

    Note: SLB’s official template tag API is currently in development and is not currently considered a “public” API. As such, the above may change in future updates.

Viewing 1 replies (of 1 total)
  • The topic ‘Change theme to include page title’ is closed to new replies.