Close

Columns manage?

jakubz
8 years ago
#10211 Quote
Avatar
  • 182
Hi! i don't remember where I change it. I want on topic pages 2 columns (left menu, and content).
Actually in smart theme, I have only one column on topics page. Where can i change it?
Deni
8 years ago
#10213 Quote
Avatar
  • Moderator
  • 389
jakubz wrote:
Hi! i don't remember where I change it. I want on topic pages 2 columns (left menu, and content).
Actually in smart theme, I have only one column on topics page. Where can i change it?


Hi, 

To show the topic details page in two columns you need to follow these steps:

1. Since the TopicDetails view is not overridden in the Smart theme, you need to do it - copy the Topic folder and the TopicDetails.cshtml file from the Default Clean theme Views folder and paste it in the Smart theme views folder.


2. You should get this structure:

/Themes/Smart/Views/Topic/TopicDetails.cshtml.


3. Now open the TopicDetails view and in its beginning you will find this row:
Layout = "~/Views/Shared/_ColumnsOne.cshtml";


Modify it like this:
Layout = "~/Views/Shared/_ColumnsTwo.cshtml";



4. Save the file. That is all.


I hope it helped !
Best Regards,
Mladen Staykov
Nop-Templates.com