Code for Post View Only

Topics: Controls, Themes
Oct 18, 2007 at 10:04 PM
Is there any way to add code for a post page only? Right now Postview.ascx renders repeatedly on the blog list so the post and postfooter repeat X number of times per page.
I basically need to display something on the post page itself only - in the postfooter. Is there a way to do this?
Oct 18, 2007 at 11:14 PM
Edited Oct 18, 2007 at 11:15 PM
You could add code to post.aspx, which will only display on the post pages. Or if you want to add something inside the contents provided by postview.ascx, make a new file postview2.ascx to be used only for the post page. Then in post.aspx.cs, change line 44 to refer to PostView2.ascx.