Next 2.2 Creating component classes Prev
package Podius::Component::Page;

use base 'Podius::Component::Publishable';

sub get_own_property_types {
	return [
		[ title       => 'Scalar' ],
		[ phrase      => 'Scalar' ],
		[ keywords    => 'BigScalar' ],
		[ description => 'BigScalar' ],
	];
}

sub get_name {
	my $self = shift;
	return $self->phrase || $self->name || $self->title;
}

1;
package Podius::Component::ItemPage;

use base 'Podius::Component::Page';

sub get_own_property_types {
	return [
		[ abstract    => 'BigScalar' ],
		[ body        => 'Text' ],
		[ active      => 'Boolean' ],
	];
}

1;

Next Content Management with Podius Prev