Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a Widget via Content > Widgets - Error #9

Open
kestraly opened this issue Jan 8, 2025 · 0 comments
Open

Creating a Widget via Content > Widgets - Error #9

kestraly opened this issue Jan 8, 2025 · 0 comments

Comments

@kestraly
Copy link

kestraly commented Jan 8, 2025

Creating a Widget via Content > Widgets

It doesn't pick up the identity in the _construct() and so just picks up the most recent banner ID.

To fix in Block/Widget/Slider.php

Change

protected function _construct()

to

public function getBannerSlider()

Add the following

protected function _construct()
    {
        parent::_construct();
    }

To activate in magicslider.phtml

Add to the top of the file

<?php $block->getBannerSlider();

This then allows you to create widgets via the wysiwyg and also via Content > Widgets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant