I've done this before with a web control, but I can't seem to get it to work with a sublayout. On the Presentation Details for a particular item I'm assigning my Sublayout and then in the additional parameters section specifying the parameter. Here's the code that's in the code-behind for my sublayout. When I run the debugger, RenderPageTitle is just null.
public partial class PageContent : System.Web.UI.UserControl
{
public String RenderPageTitle { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
if (RenderPageTitle.ToLower().Equals("false"))
{
TitleFieldRenderer.Visible = false;
}
}
}