I'm having a problem with adding Html.AddTitleParts to the view of my plugin. I followed the instructions of creating a simple plugin witch is working fine, showing "Hello world" after installing. (Nop version 3.8 - visual studio 2015) Now I want to add some of the Html.- and Append Parts. e.g. //title Html.AddTitleParts(T("PageTitle.Account").Text);
No matter what I try Html and T do not exist in the current context.
I have referenced: Nop.Core Nop.Data Nop.Services Nop.Web Nop.Web.Framework System.Web System.Web.Mvc
I'm having a problem with adding Html.AddTitleParts to the view of my plugin. I followed the instructions of creating a simple plugin witch is working fine, showing "Hello world" after installing. (Nop version 3.8 - visual studio 2015) Now I want to add some of the Html.- and Append Parts. e.g. //title Html.AddTitleParts(T("PageTitle.Account").Text);
No matter what I try Html and T do not exist in the current context.
I have referenced: Nop.Core Nop.Data Nop.Services Nop.Web Nop.Web.Framework System.Web System.Web.Mvc
The only Delta I can see with the other plugins, is that all other plugins are marked as "Checked in" (this is from visual studio) and my plugin is "pending add"
The error is also there when I run the code. I already tried the intellisense posts because at first I thought this was the issue...
I'm very much stuck in this. As I mentioned earlier it looks like the plugin is not "acting" like the others. When I hoover over the new plugin it shows "Pending add" while the other plugins show "Checked in"
Would you post the actual run-time error that you are getting (in the browser)? (Because it's not clear to me if you see the error during Build, or run-time)
"Pending add" and "checked in" are source control things and should not impact how it compiles or runs.
Serverfout in toepassing /. Compilatiefout Beschrijving: Er is een fout opgetreden bij het compileren van een bron die vereist is om aan deze aanvraag te voldoen. Controleer de volgende details van deze fout en pas waar nodig de broncode aan.
Foutbericht van compiler: CS0103: De naam T bestaat niet in de huidige context
Fout in bron:
Regel 4: Regel 5: //title Regel 6: Html.AddTitleParts(T("PageTitle.Account").Text); Regel 7: //page class Regel 8: Html.AppendPageCssClassParts("html-account-page");