i am tryin to get ublogsy to pull information from the original landing page into another page, where i have an variant of the script, ( as this is for a mobile version).
i have everything working as expected exept one thing! i need to add nodeid from a field on the contentnode due to 2 language capabilities, so instead of hardcoding a node id like this:
New to Razor ( non programmer editing)
Hi folks!
i am tryin to get ublogsy to pull information from the original landing page into another page, where i have an variant of the script, ( as this is for a mobile version).
i have everything working as expected exept one thing! i need to add nodeid from a field on the contentnode due to 2 language capabilities, so instead of hardcoding a node id like this:
IEnumerable<DynamicNode> postList = uBlogsy.Web.Helpers.NodeHelper.GetPosts(1223);
i am tryin to get this id from a field on the documenttype - content node.
the problem is that this comes out as a string and the GetPosts thingy seems to want int.
i tried playing around with the AsInt() thingy but, no luck...
any, programmer able to help me out here ?
what ive tried is to made the @Model.Fieldname into a variable, and putting it instead of the hardcoded getposts id.
yay fixed, it i think...
var mynode = @Model.ContentNode;
IEnumerable<DynamicNode> postList = uBlogsy.Web.Helpers.NodeHelper.GetPosts(int.Parse(mynode));
is working on a reply...