Predefine custom fields
blackbasket opened this issue · 1 comments
blackbasket commented
Hi,
is it possible to predefine some custom fields, so they can be filled in every new article?
Regards,
Marcel
farzindev commented
Yes there is:
// custom/themes/standard/PostView.ascx
<%
var pass = "";
if (Post.CustomFields != null && Post.CustomFields["pass"] != null)
{
pass = Post.CustomFields["pass"].Value;
}
%>
<div>This is a custom post field: <%= pass %></div>
We are working on a new project similar to BlogEngine, please check it out:
https://github.com/blogifierdotnet/Blogifier