Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pages - The new CMS system from Notice
This creates flat-files for the public part of your site. It uses a templating system that requires no template, (though if you hand it pages.html marked up with id="menu" you will get a lot done.) Pages leverages the power of ckeditor 4.0 and HTML::TreeBuilder
- Loading branch information
Alexx Roche
committed
Jan 6, 2013
1 parent
0e7eea3
commit cae11d5
Showing
269 changed files
with
14,875 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
use utf8; | ||
package Notice::DB::Result::Page; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
|
||
=head1 NAME | ||
Notice::DB::Result::Page - mostly html, but can be raw text | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use base 'DBIx::Class::Core'; | ||
|
||
=head1 TABLE: C<Pages> | ||
=cut | ||
|
||
__PACKAGE__->table("Pages"); | ||
|
||
=head1 ACCESSORS | ||
=head2 pa_id | ||
data_type: 'integer' | ||
is_auto_increment: 1 | ||
is_nullable: 0 | ||
=head2 pa_name | ||
data_type: 'varchar' | ||
is_nullable: 0 | ||
size: 255 | ||
=head2 pa_title | ||
data_type: 'varchar' | ||
is_nullable: 1 | ||
size: 255 | ||
=head2 pa_link | ||
data_type: 'varchar' | ||
is_nullable: 1 | ||
size: 255 | ||
How the link to this page from others will look | ||
=head2 pa_published | ||
data_type: 'integer' | ||
is_nullable: 1 | ||
Is it live? | ||
=head2 pa_lang | ||
data_type: 'char' | ||
is_nullable: 1 | ||
size: 6 | ||
en_GB fr zn | ||
=head2 pa_added | ||
data_type: 'datetime' | ||
datetime_undef_if_invalid: 1 | ||
is_nullable: 1 | ||
date written or published | ||
=head2 pa_updated | ||
data_type: 'datetime' | ||
datetime_undef_if_invalid: 1 | ||
is_nullable: 1 | ||
date updated | ||
=head2 pa_owner | ||
data_type: 'integer' | ||
is_nullable: 1 | ||
peid | ||
=head2 pa_template | ||
data_type: 'varchar' | ||
is_nullable: 1 | ||
size: 255 | ||
overide from the pages.html template | ||
=head2 pa_change | ||
data_type: 'integer' | ||
default_value: 0 | ||
is_nullable: 1 | ||
how different is this from the last version, as a percentage | ||
=head2 pa_ge | ||
data_type: 'blob' | ||
is_nullable: 1 | ||
=cut | ||
|
||
__PACKAGE__->add_columns( | ||
"pa_id", | ||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
"pa_name", | ||
{ data_type => "varchar", is_nullable => 0, size => 255 }, | ||
"pa_title", | ||
{ data_type => "varchar", is_nullable => 1, size => 255 }, | ||
"pa_link", | ||
{ data_type => "varchar", is_nullable => 1, size => 255 }, | ||
"pa_published", | ||
{ data_type => "integer", is_nullable => 1 }, | ||
"pa_lang", | ||
{ data_type => "char", is_nullable => 1, size => 6 }, | ||
"pa_added", | ||
{ | ||
data_type => "datetime", | ||
"datetime_undef_if_invalid" => 1, | ||
is_nullable => 1, | ||
}, | ||
"pa_updated", | ||
{ | ||
data_type => "datetime", | ||
"datetime_undef_if_invalid" => 1, | ||
is_nullable => 1, | ||
}, | ||
"pa_owner", | ||
{ data_type => "integer", is_nullable => 1 }, | ||
"pa_template", | ||
{ data_type => "varchar", is_nullable => 1, size => 255 }, | ||
"pa_change", | ||
{ data_type => "integer", default_value => 0, is_nullable => 1 }, | ||
"pa_ge", | ||
{ data_type => "blob", is_nullable => 1 }, | ||
); | ||
|
||
=head1 PRIMARY KEY | ||
=over 4 | ||
=item * L</pa_id> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->set_primary_key("pa_id"); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07015 @ 2013-01-04 13:20:18 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5hXQzSKXhdlQjvexNpHpDg | ||
|
||
|
||
# You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
use utf8; | ||
package Notice::DB::Result::PageTag; | ||
|
||
# Created by DBIx::Class::Schema::Loader | ||
# DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
|
||
=head1 NAME | ||
Notice::DB::Result::PageTag - which tags to match | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use base 'DBIx::Class::Core'; | ||
|
||
=head1 TABLE: C<PageTag> | ||
=cut | ||
|
||
__PACKAGE__->table("PageTag"); | ||
|
||
=head1 ACCESSORS | ||
=head2 pt_id | ||
data_type: 'integer' | ||
is_auto_increment: 1 | ||
is_nullable: 0 | ||
=head2 pt_paid | ||
data_type: 'integer' | ||
is_nullable: 0 | ||
Pages.pa_id | ||
=head2 pt_ag | ||
data_type: 'varchar' | ||
is_nullable: 1 | ||
size: 255 | ||
page tag id="menu" name="footer" | ||
=head2 pt_order | ||
data_type: 'integer' | ||
extra: {unsigned => 1} | ||
is_nullable: 0 | ||
if there is a list this determins the order, smallest left/top largest right/bottom | ||
=head2 pt_inc | ||
data_type: 'integer' | ||
is_nullable: 1 | ||
do we include this page or just its link | ||
=cut | ||
|
||
__PACKAGE__->add_columns( | ||
"pt_id", | ||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
"pt_paid", | ||
{ data_type => "integer", is_nullable => 0 }, | ||
"pt_ag", | ||
{ data_type => "varchar", is_nullable => 1, size => 255 }, | ||
"pt_order", | ||
{ data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, | ||
"pt_inc", | ||
{ data_type => "integer", is_nullable => 1 }, | ||
); | ||
|
||
=head1 PRIMARY KEY | ||
=over 4 | ||
=item * L</pt_id> | ||
=back | ||
=cut | ||
|
||
__PACKAGE__->set_primary_key("pt_id"); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07015 @ 2013-01-04 13:20:18 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6tY4p/e7HgYStIgbJNodow | ||
|
||
|
||
# You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CKEditor 4 Changelog | ||
==================== | ||
|
||
## CKEditor 4.0 | ||
|
||
The first stable release of the new CKEditor 4 code line. | ||
|
||
The CKEditor JavaScript API has been kept compatible with CKEditor 4, whenever | ||
possible. The list of relevant changes can be found in the [API Changes page of | ||
the CKEditor 4 documentation][1]. | ||
|
||
[1]: http://docs.ckeditor.com/#!/guide/dev_api_changes "API Changes"" |
Oops, something went wrong.