How are you able to find out what other properties you can call?
I have tried - @result.pageTitle which is a property I have created in the Document Type but I get an error -
1: 'Umbraco.Core.Models.IPublishedContent' does not contain a definition for 'pageTitle' and no extension method 'pageTitle' accepting a first argument of type 'Umbraco.Core.Models.IPublishedContent' could be found (are you missing a using directive or an assembly reference?)
Examine Search
I have created a simple Examine Search facility using the tutorial https://our.umbraco.org/documentation/Reference/Searching/Examine/quick-start
I want to know how I can pull in further information about the different results -
Currently there are two properties being pulled in -
@result.Name
@result.Url
How are you able to find out what other properties you can call?
I have tried - @result.pageTitle which is a property I have created in the Document Type but I get an error -
1: 'Umbraco.Core.Models.IPublishedContent' does not contain a definition for 'pageTitle' and no extension method 'pageTitle' accepting a first argument of type 'Umbraco.Core.Models.IPublishedContent' could be found (are you missing a using directive or an assembly reference?)
You should be able to do this:
From there, you can access all the properties from the node.
is working on a reply...