Close

Place slider on specific Topic page

Oakstone
10 years ago
#7866 Quote
Avatar
  • 29
Just FYI. I had to update the TopicDetails.cshtml file to add the widget. It worked fine.
simonsag
10 years ago
#8235 Quote
Avatar
  • 2
Hi,

what if user create a new topic from the admin area and assign a particular slider to that new topic from the admin area, specifically only for that topic?

How can you achieve this?
simonsag
10 years ago
#8236 Quote
Avatar
  • 2
Basically, I want that when a user create a new topic , how can I add the name of the widget, which can be created as a concatenation of the topic system name, such as topic_aboutus, but add it automatically to the widget zones xml file in order to be able to assign a slider to it?

Appreciate any help..
Thank you
Tommy
6 years ago
#14223 Quote
Avatar
  • 21
Hi

After 4.00 this seems not to work anymore:
@Html.Widget("custom_widget_zone")

How to add in 4.00?

Br
Tommy
SDobrev
6 years ago
#14224 Quote
Avatar
  • 283
Hi Tommy,

In version 4.0 the code for adding widget zone is changed. Use this:
    @await Component.InvokeAsync("Widget", new { widgetZone = "custom_widget_zone" })

Best Regards,
Stoyan Dobrev
Nop-Templates.com
kyboci
6 years ago
#14576 Quote
Avatar
  • 1
simonsag wrote:
Hi,

what if user create a new topic from the admin area and assign a particular slider to that new topic from the admin area, specifically only for that topic?

How can you achieve this?


I add a new button in tinyMCE editor which implements a new custom slider.