How to create topic view page outside of master pages

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 anos atrás
I am wanting to be able to view "topics" in pages that use iframes as well as some modal popups.
I created a simple blank test aspx page within my site(seen below).
The page renders without error, but the topic content is not displayed.
Any suggestions?   Is there something that loads within one of the master pages to facilitate the display of topic info?
  

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Packages_Default2" %>
<%@ Register TagPrefix="nopCommerce" TagName="Topic" Src="~/Modules/Topic.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <nopCommerce:Topic ID="topicPackNopCommerce" runat="server" TopicName="PackNopCommerce">
    </nopCommerce:Topic>
    </div>
    </form>
</body>
</html>
14 anos atrás
Looks like it should be working. Please be sure that you specify a correct name of topic and the topic has been localized to your working language. Also you can check that the topic is loading successfully by setting a breakpoint in BindData method of TopicControl class.
14 anos atrás
It was something even more embarassing...
Had created topic in different dev instance of NopCommerce.

Thank you for the prompt reply though!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.