This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Peanut Documentation | {title}</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" type="text/css" media="screen" href="/assets/css/documentation.css"> | |
</head> | |
<body> | |
<div id="container"> | |
<h1><a href="/" title="Peanut CMS">Peanut</a>: <a href="/documentation/">Documentation</a>: {title}</h1> |
This file contains hidden or 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
$config = array( | |
'system_folder' => 'peanut', | |
'default_layout' => 'main.html', | |
'text_parser' => 'textile' | |
); |
This file contains hidden or 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
layout: | |
documentation.html | |
-- | |
title: | |
Layouts | |
-- | |
summary: | |
h2. Layouts |
This file contains hidden or 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
octopus:peanut.intranet greg$ ls -l peanut/pages/ | |
total 8 | |
drwxr-xr-x 7 greg staff 238 26 Apr 20:09 documentation | |
-rw-r--r-- 1 greg staff 127 26 Apr 11:17 index.txt |
This file contains hidden or 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
octopus:peanut.intranet greg$ ls -l pages/documentation/ | |
total 40 | |
-rw-r--r-- 1 dry staff 1920 26 Apr 22:55 configuration.txt | |
-rw-r--r-- 1 dry staff 983 26 Apr 22:55 index.txt | |
-rw-r--r-- 1 dry staff 1022 26 Apr 01:00 install.txt | |
-rw-r--r-- 1 dry staff 1499 26 Apr 22:55 layouts.txt | |
-rw-r--r-- 1 dry staff 834 26 Apr 22:55 pages.txt |
This file contains hidden or 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
layout: | |
documentation.html | |
-- | |
title: | |
Page Custom Fields | |
-- | |
summary: | |
h2. Page Custom Fields |
This file contains hidden or 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
<?php | |
class Person { | |
private $mixins = array(); | |
private $instances = array(); | |
public function __construct() | |
{ | |
if (func_num_args()) |
This file contains hidden or 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
RewriteCond %{HTTPS} off | |
RewriteCond $1 ^(section|othersection) [NC] | |
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L] | |
RewriteCond %{HTTPS} on | |
RewriteCond $1 ^(anothersection|anothersection|anothersection) [NC] | |
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains hidden or 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
knife node configure my_node.example.com |
This file contains hidden or 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
<?php | |
/** | |
* Modifying the final CP Output | |
* | |
* This extension demonstrates how you can access and modify the final ExpressionEngine | |
* CP output. It is not a hack, but it is a new technique that to my knowledge has not | |
* been used before in an EE addon. | |
* | |
* This has not been road tested and its side effects are unknown, so use this at your own risk. |
OlderNewer