topic URL

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anni tempo fa
Is there a way to connect a topic url to the category menu?

Chad
13 anni tempo fa
do you mean adding a link in beside all the categories ?

you can add it manually to

CategoryNavigation.ascx


either above or below the category list
13 anni tempo fa
No. I was asking if topic links could be tied dynamically to the category module. What I am looking for is an easy way for my Mom to make content pages.  I bought VS2008Pro for her and made a nice site using templates but she doesn't get VS at all.  So,  I am trying to make a NopCommerce site for her that will be simple to make content without the worry of any coding.  One thing that I think might work is using parent and child categories but to do that I would need the menu to maintain state as the pages are opened like it is on the site I made for her already.  I would also like to remove the Parent category link so it would bypass the category summary page but still maintain function by opening. If you have any ideas please let me know.  

Thanks,
Chad
13 anni tempo fa
You could add in a checkbox to the topic pages 'Include in navigation' - with this create a method called GetTopicNavigation which would return a topic collection, you could then bind this to a list. Then whenever you Mum added a topic all she would have to do is tick the checkbox.

Alternatively you could have a .txt file in which your Mum could list items she wanted to list like so:

Page 1, http://www.someurl.com
Page 2, http://www.someurl.com
Page 3, http://www.someurl.com
Page 4, http://www.someurl.com

You could then create a method to read the text file and output the html to the page. All your mum would have to do in this case is add in items in the txt file and upload it to a specified location.

One final thing I have done in the past is to store information in the Localised Strings table. I.E I put the complete html of a menu in to a localised field like so:

<ul>
<li>Link here</li>
etc
</ul>

Then I just got the localised string using the nop calling code. In this case your Mum could edit the html direct in the admin system.
13 anni tempo fa
thought wrote:
You could add in a checkbox to the topic pages 'Include in navigation' - with this create a method called GetTopicNavigation which would ...


All great ideas! Thank you.  However, I do not know how to implement these wonderful ideas.  I tried for a couple hours to add a check box, but all I managed to do was lose all the tooltips on the page... I did get the checkbox in there but my text from the resource string did not show up.

Chad
13 anni tempo fa
there's an easy to implement workaround here:

https://www.nopcommerce.com/boards/topic.aspx?topicid=3053

but it will not be so easy for the end-user as thoughts solution
13 anni tempo fa
When clicked, the parent category name in the category menu generatres a page showing links to child categories.  How can I disable the parent category URL so when the Parent category name is clicked...the page is not redirected?

Any help will be greatly appreciated,
Chad
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.