but basically my requirement is that last 3 to 4 posts should be displayed. This blog is specifically for updates say new wallpaper, new magazine updated etc...
instead of showing rss.. I now decided to use uBlogsyListPosts.cshtml on my home page... I modified it a little as below.. as wanted to give different css class (style) and supplied node id (see below .. its 1772) of blog.
</div> } else { // get tag, category, or author from query string var tag = Request.QueryString["tag"]; var category = Request.QueryString["category"]; var author = Request.QueryString["author"]; var searchTerm = Request.QueryString["search"]; var commenter = Request.QueryString["commenter"]; int page = int.TryParse(Request.QueryString["page"], out page) ? page : 1;
I wanted latest posts on home page.. and blog is not child not of my root web site node.. so supplied node id. my problem was I created another macro as I needed different css style on home page.. and in that forgot to create parameters.. so it was throwing error.
want image in rss feed
Hello all
we want to call rss feed on home page of our website but not just title but with thumb image.
So, is it possible? If yes, then guide me further.
Do you want a list of articles on a home page or do you want an rss feed?
Do you have an example?
rss feed... ...
but basically my requirement is that last 3 to 4 posts should be displayed. This blog is specifically for updates say new wallpaper, new magazine updated etc...
If you have any other way you can tell.
So you want to render a post title and a thumbnail image in the xml rss feed when you hit the site with mydomain.com/rss ?
Well I have never needed to do such a thing do this, but if you wanted to, you should do it with CDATA likes this:
<![CDATA[<img src="@imagePath">]]>
I would add a media picker property to the post doctype. I suggest using http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker
where to add this line? <![CDATA[<img src="@imagePath">]]>
You'll have to add it to uBlogsyRss.cshtml
I think you can slide it in the begining of <description>
ok.. will chk and let u know
instead of showing rss.. I now decided to use uBlogsyListPosts.cshtml on my home page... I modified it a little as below.. as wanted to give different css class (style) and supplied node id (see below .. its 1772) of blog.
Error loading MacroEngine script (file: /uBlogsy/uBlogsyListPostsHome.cshtml). What is going wrong?
solved problem...
I'm not sure what you were tring to do.
What was your problem?
I wanted latest posts on home page.. and blog is not child not of my root web site node.. so supplied node id. my problem was I created another macro as I needed different css style on home page.. and in that forgot to create parameters.. so it was throwing error.
is working on a reply...