top of page
Custom Post Page

Custom Post Page

Create your own customised blog post page.

Intermediate.png

Intermediate

7K

Published:

January 2, 2020

Girl Enjoying her Drink

by

Anchor 1
Hire a Developer

Example Description

In this example we customise the default post page by adding elements and extra data.

Example Code

Tab 1

.

Tab 2

.

Tab 3

.

This code solution can be complicated.

How We Built It

Collections

For this example we used the database collections automatically added to your site if you have a blog and an additional one of our own:

  • Blog/Posts collection: Contains information about your individual blog posts

  • Blog/Categories collection: Contains information about your blog categories

  • Post Extra Data collection: Contains additional information about your blog posts with references to the original post item in the Blog/Posts collection.

Page Elements

In our site we added the following page elements:

  • Strip: Custom header strip for the post page:

    • Text: Author name 

    • Text: Photographer name 

    • Text: Post title

Code

We added the following code to the Post page:

  • When the Post page loads:

    • Get the current post data using the getPost() function.

    • Retrieve the extra post data using the ID of the current post.

    • Merge the post data with the extra post data using the object.assign() method.

    • Populate the merged data  in the relevant page elements.

APIs We Used

Non-code example.

Non-code example.

Non-code example.

Related Articles

Article Link

Hire a Developer

Velo solutions are powerful tools, but building them on your own can be challenging. Let an experienced Velo development shop build it for you, so you can keep working on your site or business.

Related Examples

Did this help?

Yes

|

No

Thanks for your feedback!

Custom Comments

Custom Comments

Create your own custom post comments section.

Intermediate.png

Beginner

Custom Like Button

Custom Like Button

Create your own custom like button.

Intermediate.png

Intermediate

Related Posts

Related Posts

Display related posts in your blog post page

Intermediate.png

Beginner

Anchor 2
bottom of page