I did what you suggested and got another compilation error..
*Compilation Error Description:
An error occurred during the compilation of a resource required to service this request.
Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1929:
'object' does not contain a definition for 'Url' and the best extension method overload 'PublishedContentExtensions.Url(IPublishedContent, string, UrlMode)' requires a receiver of type 'IPublishedContent'*
Source Error:
Line 146: <div class="partners-item partners-item1">
Line 147:
Line 148: <img src="@(Model.Value("whyDsgFirstCardImage").Url())" alt=""/>
Line 149: <h1>@Model.Value("leftColumnHeader")</h1>
Line 150: </div>
Allowing editor to update image
Hello All, I need some help adding images to my site,
I have I doctype where the editor can select an image and that doctype has a template with code similar to the code below:
this does not work..... I get a compilation error saying there is no method for Url
But when I use this:
it obviously works, but this is static and not very efficient,
I want the editor to select an image they want and it will update accordingly,
I'm an intern dev in need of help :\
Hi Kyle
Try this:
Best regards Frank
Hi again Frank! Thanks for you assitance,
I did what you suggested and got another compilation error..
*Compilation Error Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1929: 'object' does not contain a definition for 'Url' and the best extension method overload 'PublishedContentExtensions.Url(IPublishedContent, string, UrlMode)' requires a receiver of type 'IPublishedContent'*
Source Error:
Okay, try this:
You're a lifesaver, Frank! Really appreciate it you have no idea...
Have a good day!
is working on a reply...