Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @amddtim,
    You actually cannot access those in Repeater Templates.

    The only way I have discovered is found here.
    https://connekthq.com/plugins/ajax-load-more/docs/code-samples/passing-variables/

    Hope this helps.

    Thread Starter amddtim

    (@amddtim)

    Thanks, I saw this too. The sticky part is I need access to a variable that’s getting set with javascript, which is then filtering the alm instance. So I can’t set a session variable in the parent page template file and just be okay. If I’m using sessions, I have to set a session variable each time a button is clicked that toggles the filter. Does that make sense?

    How is it that you have 4 variables available in the repeater templates and no more? Couldn’t I conceivably edit the plugin to pass something else along? I tried looking through the plugin files and couldn’t find where I might do that.

    Plugin Author Darren Cooney

    (@dcooney)

    The reason not all page variables are available is because Custom Repeater, Theme Repeaters and the Default Repeater all run through various filters/hooks and by the time they are loaded the variables are no longer accessible.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variable Access in Template Loop’ is closed to new replies.