Added topic but there is no link

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 năm cách đây
Hi guys. I am very new with nopcommerce but I know more than asp.net. I installed nopCommerce 1.7  on my localhost and works everything good.

I wanted to add a new topic and I did it by adding topic button. but I filled all inputs on page then pressed save button. An it is just saved and there is no link appeared.

I also noticed that there is no Topic folder in my root directory. I gave all permisions to write in the directory in IIS.

please help me!! thanks.
13 năm cách đây
ozersenol wrote:
Hi guys. I am very new with nopcommerce but I know more than asp.net. I installed nopCommerce 1.7  on my localhost and works everything good.

I wanted to add a new topic and I did it by adding topic button. but I filled all inputs on page then pressed save button. An it is just saved and there is no link appeared.

I also noticed that there is no Topic folder in my root directory. I gave all permisions to write in the directory in IIS.

please help me!! thanks.

There is no Topic folder because topics are accessed through a rewritten URL. For the format, see Administration > Configuration > Global Settings > SEO/Display tab > "Topic url rewrite format:". Using the url rewriting format, topics are accessed with the url as: http://www.example.com/topic/4-privacy-policy.aspx, but are loading the topic to display in the format of http://www.example.com/topic.aspx?topicid=4. Topics can be displayed in other pages as well (http://www.example.com/privacyinfo.aspx).

You will need to insert the links for new topics. As an example of how you can include a link to a topic page in the Information box on the home page, edit file: Modules\InfoBlock.ascx and insert the following after line 45:

<li><a href="<%=SEOHelper.GetTopicUrl(4, "Your SEO url text")%>">Your Link Text</a></li>

Replace the 4 with the topic id of your topic and replace the underlined text with text for your url and link respectively.

Or if you need to have multiple languages supported for the topic link, use the following:

<li><a href="<%=SEOHelper.GetTopicUrl(4, GetLocaleResourceString("Content.NewTopicText"))%>">
    <%=GetLocaleResourceString("Content.NewTopicText")%></a></li>

Also replace the 4 with the topic id of your topic and insert new localization strings for the resource name "Content.NewTopicText"(change the underlined portion for your topic) for all the languages your site supports. Localization strings can be added at Administration > Content Management > Localization > (Select your language) > "Add New" button.

.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.