Ticket #469 (closed enhancement: fixed)
error404Success.php -- add an Area and RichText with fixtures
| Reported by: | johnnybenson | Owned by: | johnnyoffline |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5 |
| Component: | apostrophePlugin | Version: | trunk |
| Keywords: | error404, 1.5rc2 | Cc: | rickybanister, jake, johnnyoffline, agilbert, geoffd, dordille |
| Symfony version: | 1.4 |
Description
When Spike visited, he mentioned a great idea about having a 404 page that uses an Area for editing the message it displays.
I went ahead and tested it in our error404Success.php.
It works great, I just had to add the a helper to the template.
The problem is that the content in there currently has been graciously I18N'd.
I don't want to outright delete it from the error404Success, but I think it should be loaded into a richtext slot as a fixture when we do a build --all --and-load.
This isn't necessary for 1.4.x, we can just create this file in the client projects for now and move on.
But it should absolutely be a part of our 1.5 release, right? This is easy and makes sense.
<?php use_helper('a','I18N') ?>
<h2><?php echo __('Error 404 — The page you are looking for could not be found.', null, 'apostrophe') ?></h2>
<h3><a href="/"><?php echo __('Go Home.', null, 'apostrophe') ?></a></h3>
<?php a_area('body', array(
'global' => true,
'allowed_types' => array(
'aRichText',
'aSlideshow',
'aVideo',
'aImage',
),
'type_options' => array(
'aRichText' => array('tool' => 'Main'),
'aSlideshow' => array("width" => 480, "flexHeight" => true),
'aVideo' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'),
'aImage' => array('width' => 480, 'flexHeight' => true, 'resizeType' => 's'),
))) ?>

