rightplanetspaceüber rightplanetKontaktAnmeldenRegistrieren
  • space
  • über rightplanet
  • Kontakt

  • Registrieren

Manual Title

This is the collection's tagline.
  • Startseite
  • Latest pages
  • Latest comments
  • About this manual
  1. Manual Title
  2. Introduction
  3. Child Post Example

Child Post Example

This post has a special post type called "Child Post". This allowed to specify a parent post ID. Consequently, this child post is linked to: Another Custom Fields Example (https://www.rightplanet.net/index.php/manual/introduction/another-custom-fields-example-2).

This also allows us to access the custom fields of the parent post:

Image 1
First numeric field123.45
First string fieldabcdef
Second numeric field456
Multiline HTML fieldThis is an HTML field.
Multiline plain text fieldThis is a sample text field.
It can have multiple lines.
This is an extra line.
URL fieldhttp://b2evolution.net/
USD Price$ 17.50
EUR Price14.95 €
Checkmark fieldn/a
Numeric Average289.725

It is also possible to selectively display only a couple of these fields:

First numeric field123.45
First string fieldabcdef
Second numeric field456

Finally, we can also display just the value of a specific field, like this: abcdef.

We can also reference fields of any other post like this: abcdef or like this: abcdef.

It is also possible to create links using a custom field URL from the parent post: Click me!

Replicated fields

By using the same field names, it is also possible to automatically replicate some fields from parent to child (recursively).

This child post has the following fields which automatically replicate from its parent:

Image 1
First numeric field123
First string fieldabc
Checkmark field

Another way to show this, is to use b2evolution's [compare:...] short tag:

Child Post ExampleAnother Custom Fields Example
Image 1
First numeric field123123.45
First string fieldabcabcdef
Checkmark fieldn/a
Second numeric field456
Multiline HTML fieldThis is an HTML field.
Multiline plain text fieldThis is a sample text field.
It can have multiple lines.
This is an extra line.
URL fieldhttp://b2evolution.net/
USD Price$ 17.50
EUR Price14.95 €
Numeric Average289.725
Created by dave • Last edit by irittler on 05/10/22 04:43 pm

1 comment

Comment from: mary Member

Hi!

This is a sample comment that has been approved by default!
Admins and moderators can very quickly approve or reject comments from the collection dashboard.

04/11/22 @ 06:47 am

This post has 1 feedback awaiting moderation...


Form is loading...

Tags: custom fieldsdemo

Anhänge:

  • monument-valley-road.jpg (233 KB)
Image 1:
First numeric field:
123
First string field:
abc
Checkmark field:

Search this manual:

Inhaltshierarchie

  • Introduction
    • First Post
    • Second post
    • Custom Fields Example
    • Another Custom Fields Example
    • Child Post Example
    • Featured post
    • About widgets...
    • About skins...
    • Apache optimization...
  • Getting Started
  • User Guide
  • Reference

Neueste Posts

  • Extended post
  • Post with Images
  • Mongolian Beef
  • Stuffed Peppers
  • Custom Fields Example
  • Another Custom Fields Example
  • Child Post Example
  • Extended post with no teaser
  • This is a multipage post
  • Featured post

Neueste Kommentare

  • dave am Post with Images
  • dave am Extended post
  • dave am Mongolian Beef
  • Larry Smith am Stuffed Peppers
  • Kate Adams am Custom Fields Example
  • jay am Another Custom Fields Example
  • Larry Smith am Extended post with no teaser
  • mary am Child Post Example
  • dave am This is a multipage post
  • Paul Jones am Featured post
  • mary am Markdown examples
  • Larry Smith am About widgets...
  • dave am Wiki Tables
  • mary am About skins...
  • Larry Smith am Apache optimization...
  • jay am Second post
  • Larry Smith am First Post
  • dave am Chapter Intro

Recent photos

Extended post
Extended post
Post with Images
Post with Images

Sidebar 2

This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".

Online manual generator

This collection ©2022 by David Miller • Kontakt • Hilfe • Content Mangement System

Cookies are required to enable core site functionality.