class BlogEntry extends Page { static $default_parent = array('BlogHolder'); static $can_be_root = false; static $icon = "blog/images/blogpage"; static $db = array( "Date" => "Datetime", "Author" => "Text", "Tags" => "Text" ); static $casting = array( "Date" => "Date" ); static $defaults = array( "ProvideComments" => true ); static $allowed_children = "none"; /** * overload so that the default date is today. */ public function populateDefaults(){ parent::populateDefaults(); $this->Date = date("d/m/Y H:i:s",time()); } /** * Ensures the most recent article edited on the same day is shown first. */ public function setDate($val){ $datepart = date("Y-m-d",strtotime($val)); $minutepart = date("H:i:s",time()); $date = $datepart . " " . $minutepart; return $this->setField("Date",$date); } function getCMSFields() { Requirements::javascript('blog/javascript/bbcodehelp.js'); Requirements::css('blog/css/bbcodehelp.css'); $firstName = Member::CurrentMember() ? Member::currentMember()->FirstName : ''; $codeparser = new BBCodeParser(); $fields = parent::getCMSFields(); $fields->removeFieldFromTab("Root.Content.Main","Content"); $fields->addFieldToTab("Root.Content.Main", new TextareaField("Content", "Content", 20)); $fields->addFieldToTab("Root.Content.Main", new CalendarDateField("Date", "Date"),"Content"); $fields->addFieldToTab("Root.Content.Main", new TextField("Author", "Author", $firstName),"Content"); $fields->addFieldToTab("Root.Content.Main", new LiteralField("BBCodeHelper", "
By linking up the CurveMenu and the SimpleLoader, we created Galerie 02 for web design beginner.
Galerie 02 is a simple and amazing photo gallery. Netvigate the photos in CurveMenu and the display the full size photo in SimpleLoader.
With our extremely "easy-to-use" interface. Designer can build up there photo album in few steps. No script or programming skill is needed.
Extremely Easy-to-Use
Adding the gallery in your web with few clicks. No script or programming skill is needed even a HTML code.
All features can be customize in the properties inspector. Ready for beginner!
Minimum Workflow Time
Save a lot of workflow time when use with Adobe PhotoShop. Galerie 02 supports build gallery from PhotoShop. Use the Export Web Gallery function in PhotoShop and use the gallery with Galerie 02.
Javascript support
Control Galerie with external javascript. Simply create your own control buttons!
Fully cumtomizable with Dreamweaver Interface
Authoring environment:
Dreamweaver 8.02 or CS3 for authoring (Windows or Mac).
Publishing environment:
Flash Player 9 for client