We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Adding new view to existing custom widget

Received Response
11
Views
4
Comments
edited Feb 3, 2017 3:44PM in Customer Portal 4 comments

Content

Hi all,

We have a custom widget that extends the standard ProductCategorySearchFilter widget. Up until today, our custom widget only had a controller file and was using the standard widget's view  and logic files. We now have a need to edit the view, so we created a view.php and placed it in our custom widgets folder. We quickly found out we need to use OverrideViewAndLogic in the yml file and could not override just the view. So we then created a logic.js file in our custom widgets folder to basically refer back to the standard widgets js, but are getting all sorts of errors when we try to load the page the widget is on. (see code below) Is there an easier way to add a new view file to an existing custom widget that does not involve overriding the logic?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!