Replies: 1 comment
-
this is in fact bug, related to this: it is caused with : $sc->getVars(); in renderView() method |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I have a plugin that displays the latest downloads menu. It works correctly if I copy download shortcodes to the plugin itself.
But I tried to avoid this and I used in the menu:
$sc = e107::getScBatch('download', true);
and used download shortcodes in the template. Everything (menu) worked nicely.
Nothing more, just shortcodes from the download plugin are used.
Problem is that wrong download data were displayed on the download view page.
I checked the query and it was correct, but it rendered data from the latest (5th) download from the latest download menu.
I think it is because menu uses
e107::getScBatch()
andsetVars()
Additional Context
If this is normal, how I can use the download shortcode file in the menu? Without getScBatch() ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions