::Validator;
use App::Office::CMS::Database;
use App::Office::CMS::View;
use Data::Session;
use JSON::XS;
use Text::Xslate;
# We don't use Moo because we ias CGI::Application.
our $VERSION = '0.9
:Office::CMS::Util::Validator;
use File::Path 'make_path';
use File::Slurper 'write_text';
use JSON::XS;
use Path::Class; # For file().
use String::Dirify;
use Try::Tiny;
# We don't use Moo bec
ssage_div is on screen (under the Edit Content tab)
# because we're displaying content.
return JSON::XS -> new -> utf8 -> encode({results => $result});
} # End of backup.
# ----------------------
aying a page with an Edit button.
# It appears there by virtue of being within page.tx.
return JSON::XS -> new -> utf8 -> encode({results => $result});
} # End of display.
# ---------------------
S::Controller::Backup;
use parent 'App::Office::CMS::Controller';
use strict;
use warnings;
use JSON::XS;
use Try::Tiny;
# We don't use Moo because we isa CGI::Application.
our $VERSION = '0.93';
ssage_div is on screen (under the Edit Content tab)
# because we're displaying content.
return JSON::XS -> new -> utf8 -> encode({results => $result});
} # End of run.
# -------------------------
CMS::Controller::Site;
use parent 'App::Office::CMS::Controller';
use strict;
use warnings;
use JSON::XS;
use Try::Tiny;
# We don't use Moo because we isa CGI::Application.
our $VERSION = '0.93';
p the displayed site
# and the displayed search results, because that data is obsolete.
return JSON::XS -> new -> utf8 -> encode
({
results =>
{
message => $message,
target_div => 'se
reen (under the Edit Site tab).
# It appears there by virtue of being within search.tx.
return JSON::XS -> new -> utf8 -> encode
({
results =>
{
message => $self -> param('view') -> site
S::Controller::Design;
use parent 'App::Office::CMS::Controller';
use strict;
use warnings;
use JSON::XS;
use Try::Tiny;
# We don't use Moo because we isa CGI::Application.
our $VERSION = '0.93';
reen (under the Edit Site tab).
# It appears there by virtue of being within search.tx.
return JSON::XS -> new -> utf8 -> encode
({
results =>
{
message => $message,
target_div => 'se
reen (under the Edit Site tab).
# It appears there by virtue of being within search.tx.
return JSON::XS -> new -> utf8 -> encode
({
results =>
{
message => $message,
target_div => 'up
CMS::Controller::Page;
use parent 'App::Office::CMS::Controller';
use strict;
use warnings;
use JSON::XS;
use Try::Tiny;
# We don't use Moo because we isa CGI::Application.
our $VERSION = '0.93';
on screen (under the Edit Pages tab),
# because we're displaying a page using page.tx.
return JSON::XS -> new -> utf8 -> encode({results => $result});
} # End of add_child.
# -------------------
on screen (under the Edit Pages tab),
# because we're displaying a page using page.tx.
return JSON::XS -> new -> utf8 -> encode({results => $result});
} # End of add_sibling_above.
# -----------
package App::Office::CMS::View::Search;
use strict;
use warnings;
use JSON::XS;
use Moo;
extends 'App::Office::CMS::View::Base';
our $VERSION = '0.93';
# ----------------------------------------
lt]};
}
else
{
$output = {results => [{site_name => "No names match '$name'"}]};
}
return JSON::XS -> new -> utf8 -> encode($output);
} # End of display.
# ----------------------------------