error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
macroScripts\635072569961203807_DealerPagination.cshtml(61): error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
\macroScripts\635072642210605166_DealerPagination.cshtml(3): error CS0234: The type or namespace name 'TypedContent' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
Thank... but the problem is this: error CS0234: The type or namespace name 'TypedContent' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
Hi, looks like you are using a Razor macro rather than MVC which is why you don't have TypedContent. However you can do something similar in a Razor macro by using uQuery (Umbraco 4.8+):
Sort by price razor
Hey guys!
I want to do a sort by price whose format is:
12,000
31,500
1.500,300
(to cite one example).
The field is called "price", but tengoe ste c'dogio and does not work:
and the problem rests solely with the "OrderBy".
Help please!.
Regards!.
probably something like
Thank bro. Look, to save it, show this error:
error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
Oh right think you using dynamic model instead of IPublishedContent, no worries, try using price as a dyanamic field.
ie.
I have this code:
@inherits umbraco.MacroEngines.DynamicNodeContext
@using EasyTumb;
@using umbraco.MacroEngines;
@using umbraco.NodeFactory;
@using Refactored.UmbracoViewCounter;
But... donĀ“t work!
I get this error:
macroScripts\635072569961203807_DealerPagination.cshtml(61): error CS1977: Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
yeah... using dynamic causes problems with linq.
I'd go for something like the following so you have properly typed objects
Thank you bro for you time. :D
With this:
I getting this:
\macroScripts\635072642210605166_DealerPagination.cshtml(3): error CS0234: The type or namespace name 'TypedContent' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
Change this
to
Thank... but the problem is this: error CS0234: The type or namespace name 'TypedContent' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
Hi, looks like you are using a Razor macro rather than MVC which is why you don't have TypedContent. However you can do something similar in a Razor macro by using uQuery (Umbraco 4.8+):
is working on a reply...