sermar wrote:How can I had a slider in a specific topic page?
Hi,
This requires a little bit of customizing the code in the views as currently there is no logic for knowing in which widget zone we are.
You have to open the
/Views/Topic/TopicDetails.cshtml view and find the "page-body" element. In its end add the following code:
@if (Model.SystemName == "YOUR_TOPIC_SYSTEM_NAME")
{
@Html.Widget("custom_topic_body_end")
}
Just replace the YOUR_TOPIC_SYSTEM_NAME with the system name of your topic.
Now go to this file:
/Plugins/SevenSpikes.Nop.Plugins.AnywhereSliders/SupportedWidgetZones.xml and following the xml structure add this row:
<WidgetZone>custom_topic_body_end</WidgetZone>
Now go to the administration and Restart Application.
Then go to the Anywhere Sliders plugin administration and create a slider in the same widget zone.
This is it! Now you will have the slider only in the specific topic!