How do I - setup a Forum

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 年 前
Hello,

I want Forum to show in my top menu.  I'm using ver 3.5 with the DefaultClean and Forums shows in the footer and Forums is enabled.

I looked at TopMenu.cshtml ...

            if (Model.ForumEnabled)
            {
                <li><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></li>
            }
        
            <li><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></li>
            <li><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></li>

I added the above line but Forums still doesn't show (cleared the cache).

What am I missing on this?
8 年 前
You also have to add some forum groups AND forums by going to admin area > content management > forums
8 年 前
Thanks for the quick reply!

I did add topics to the Forum and it shows in the Admin

When I click on Forums in the footer all looks good but I can't get the Forums to appear in the top menu.  From the Footer menu the Forums works like I expect it too.

What am I missing?
8 年 前
Ohh, I see now. By default additional items are displayed in the top menu only when you don't have any categories. You can customize this logic in the \Views\Catalog\TopMenu.cshtml file. You can move

        
@if (Model.ForumEnabled)
        {
            <li><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></li>
        }


outside of the following code:

@if (rootCategories.Count == 0 && Model.Topics.Count == 0)
    {
        //no categories or topis to display? in this case let's diplay some default menu items (should we?)
        <li><a href="@Url.RouteUrl("HomePage")">@T("HomePage")</a></li>
        if (Model.NewProductsEnabled)
        {
            <li><a href="@Url.RouteUrl("NewProducts")">@T("Products.NewProducts")</a>
            </li>
        }
        <li><a href="@Url.RouteUrl("ProductSearch")">@T("Search")</a></li>
        <li><a href="@Url.RouteUrl("CustomerInfo")">@T("Account.MyAccount")</a></li>
        if (Model.BlogEnabled)
        {
            <li><a href="@Url.RouteUrl("Blog")">@T("Blog")</a></li>
        }
        if (Model.ForumEnabled)
        {
            <li><a href="@Url.RouteUrl("Boards")">@T("Forum.Forums")</a></li>
        }
        <li><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></li>
    }
8 年 前
Awesome!!

Thanks Andrei, I'll try this
3 年 前
Hello, how do i setup the 30 days free trial for NopCommerce prepaid
3 年 前
Please clarify " free trial ...  prepaid".  They seem contradictory.

(And what does it have to do with the topic of this post "setup a forum"?  Please create new topics for new questions.)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.