You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But instead I get: True True and the entire content from the blog item.
Apparently it returns some boolean variable, but isn't .Remove method supposed to remove some body parts of the Model?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How would the filename look like so that the template engine will pick it up?
I am trying to convert the blog template from liquid to razor and I am stuck at this two lines (for now):
I have
BlogPost-Category.cshtml
andBlogPost-Tags.cshtml
but I still get this error:I also tried
BlogPost.Category.cshtml
andBlogPost.Tags.cshtml
but without result.This is the object if it helps:
Or is it something else that is causing the error?
Edit 1:
Also I am trying to remove some parts same as from the liquid template:
But instead I get:
True True
and the entire content from the blog item.Apparently it returns some boolean variable, but isn't
.Remove
method supposed to remove some body parts of the Model?Beta Was this translation helpful? Give feedback.
All reactions