1

I have made a custom page layout in which I have added the following fields (these are my custom fields)

  • title
  • summary
  • detail

So basically when a user creates a new page based on this page layout he has to enter the above fields.

I want to show "created" date on that page? I mean when user creates a page, it should automatically get "created" date and show on page.

Or if it cannot be done automatically, is there any other way to do that?

  • Add created, modified fields to your page layout content type and add those fields in layout. Find the fields code snippet in design manager and place it. – Nag1987 Jun 7 '17 at 12:30
2

You can use

<SharePointWebControls:FieldValue id="CreatedOn" FieldName="Created" runat="server" />

But most often people use the publishing start date like this:

<PublishingWebControls:PublishingScheduleFieldControl FieldName="PublishingStartDate" InputFieldLabel="Scheduling Start Date" runat="server" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.