This project is read-only.

Stand Alone List of Posts?

Topics: Controls
Mar 18, 2011 at 3:40 PM

I want to create a stand alone list of posts without any theme, widgets, or decorations.

Reading through the site, I found code to create a "Custom List"

<%@ Control Language="C#" %>
<%@ Import Namespace="BlogEngine.Core" %>
<%@ Register Src="~/User controls/PostList.ascx" TagName="PostList" TagPrefix="uc1" %>

<script runat="server">

	protected void Page_Load(object sender, EventArgs e)
		PostList1.Posts = Post.Posts.ConvertAll(new Converter<Post,
			IPublishable>(delegate(Post p) { return p as IPublishable; }));


<uc1:PostList ID="PostList1" runat="server" />

I then used the control as follows

<%@ Page Language="C#" AutoEventWireup="true"  %>
<%@ Register Src="~/User controls/CustomList.ascx" TagName="CustomList" TagPrefix="Foo" %>
		<Foo:CustomList ID="PostList1" runat="server" />

That did not seem to work, all I get is 

�`I�%&/m�{J�J��t��`$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h�����O��6���Η�<]Vm��m�Vi�L�e�f�:ǟ�?�+/{К�:� �T����W�v�<[��~2�g�2��?�ʋ�y�hYՋ������t� 

By the way, what is that?


Mar 19, 2011 at 6:08 AM

Hi Abel,

Can you tell me which BE version you are using and where do you want to display this post custom list ? Also how many post you want to display ? it would be a Random post list, Resent post list ?

follow this link -

may be is this what you want to implement.



Mar 19, 2011 at 3:12 PM

Hi Jitendraapi,

I am running the latest version, downloaded last week. 

My question is as follows, I want to be able to list posts (5 would be enough) on a custom page that I build. I do not want themes. I simply want to list posts on a stand alone page. 

What are the minimal references, includes, that I need to create my own page where I list posts?

I imagine this question has been made before but I could not find it.