hello again, i found i can view individual blogs from the Archive properties links but when ever i try and view the main blog (top level i.e the Articulate) i get this:
Cannot cast source content type Articulate.Models.ListModel to view model
type Articulate.Models.PostModel.
Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details:
System.InvalidCastException: Cannot cast source content type
Articulate.Models.ListModel to view model type
Articulate.Models.PostModel.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
cast issue when viewing blog
hello again, i found i can view individual blogs from the Archive properties links but when ever i try and view the main blog (top level i.e the Articulate) i get this:
Cannot cast source content type Articulate.Models.ListModel to view model type Articulate.Models.PostModel.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Cannot cast source content type Articulate.Models.ListModel to view model type Articulate.Models.PostModel.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
any surgestions what i did wrong ?
nm it was coz the kist has
Layout = "Master.cshtml";
and i had changed the master to
@inherits Umbraco.Web.Mvc.UmbracoViewPage<Articulate.Models.PostModel>
setting it back to
@inherits Umbraco.Web.Mvc.UmbracoViewPage<Articulate.Models.IMasterModel>
fixed the issue, now seeing
on some of the links...but i can fix this with http://stackoverflow.com/questions/81991
just an fyi the config didnt work i had to change the TagCloud.cshtml from
<div class="contained tag-cloud">
<h3 class="typo-heading-sub">Popular Tags</h3>
@Html.TagCloud(tagModel, 5, 50)
</div>
to
@foreach (var tag in tagModel)
{
<a href="@string.Format("{0}/tags/{1}", Model.RootBlogNode.Url, tag.TagName)">@tag.TagName</a>
}
This was extremely helpful. Thank you very much :)
Now to figure out how to prevent each blog image from cropping...
is working on a reply...