How to use? #38
Answered
by
bennothommo
VIE-Flamingo
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
bennothommo
Sep 16, 2024
Replies: 2 comments 2 replies
-
@khutachan might need a bit more info here.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
VIE-Flamingo
-
@bennothommo I think I have found the problem, everything of this plugin is running well, I can't render the block because I have booted my theme in Plugin.php Here is the function that I call in public function bootThemeLanguageKey()
{
$activeTheme = \Cms\Classes\Theme::getActiveTheme();
$path = $activeTheme->getPath() . DIRECTORY_SEPARATOR . 'lang';
$nameSpace = 'themes.' . $activeTheme->getId();
$this->loadTranslationsFrom($path, $nameSpace);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@khutachan might need a bit more info here.
blocks
type? Is this in a page or a layout?button
underallow
topages
instead, does this work? It appears our default blocks provided by this plugin use the tagpages
.