This is a simple technique which should work on ALL hosts to allow ExpressionEngine to handle URLs without index.php in them. Hopefully EllisLab will add this as a built-in option soon.
IJR
var a = [ | |
'a', 'aa', 'aaa', 'aaaa', 'aaaaa', | |
'b', 'bb', 'bbb', 'bbbb', 'bbbbb', | |
'c', 'cc', 'ccc', 'cccc', 'ccccc' | |
]; | |
var b = [ | |
'Z', 'ZZ', 'ZZZ' | |
]; |
{!-- Controller --} | |
{exp:channel:entries channel="events" dynamic="off" show_future_entries="yes" order_by="entry_date" sort="asc" } | |
{!-- group into lists by day of the week --} | |
{exp:stash:append_list name="events_list" context="{entry_date format='%D'}" } | |
{stash:entry} | |
<li><a href="{page_url}">{title}</a> {entry_date format="%d/%m/%y"}</li> | |
{/stash:entry} | |
{/exp:stash:append_list} | |
{/exp:channel:entries} |
## | |
## SCM info | |
## | |
scm_info() { | |
local bzr_info=`bzr revno --tree 2> /dev/null` | |
if [ ${bzr_info} ]; then | |
if [ "$(bzr st -S)" ]; then | |
local bzr_color='\033[1;31m' | |
else | |
local bzr_color='\033[1;36m' |
<?php | |
public function settings() | |
{ | |
$this->EE->cp->set_right_nav(array( | |
'← Back to Schemas' => $this->cp_url('schemas'), | |
)); | |
$fields = array( | |
'settings' => array( |
//##console.log bubble for nested iframes | |
//##by [Kyle Phillips](http://haptic-data.com) | |
//find each iframe recursively and bubble its logs up to the current window.console | |
(function( d, w ){ | |
function bubble( doc, win, msg ){ | |
Array.prototype.forEach.call(doc.getElementsByTagName('iframe'), function( frame ){ | |
if( !sameOrigin(frame.src) || !frame.contentWindow || !frame.contentWindow.console ){ | |
w.console.log('console of iframe ', frame.src, ' is unreachable'); | |
return; | |
} |
{preload_replace:preload_trick="preload_replace"}
{embed="group/template" preload='{{preload_trick}:pre_url_title="special"}'}
if called via embed you can override the preload_replace once more.
It will insert the embed-variable and parse it early.
{embed:preload}
{if segment_3==""}{preload_replace:pre_url_title="fallback"}{/if}
{!-- Wrapper template --} | |
{embed="wrappers/page_full_width"} | |
{!-- Meta data --} | |
{exp:stash:set name="meta_title"}Our projects{/exp:stash:set} | |
{exp:stash:set name="meta_description"}Projects of the International Polar Foundation{/exp:stash:set} | |
{!-- Navigation --} | |
{exp:stash:set name="nav_current"}projects{/exp:stash:set} |
{!-- | |
> Awesome. Just had an Ah-ha! moment. Build small blocks, then add | |
> multiple Block fields to a channel with specific blocks in. | |
-- @JayHealy, https://twitter.com/JayHealey/status/598668322301837312 | |
--} | |
{cf_page_content} |
<snippet> | |
<content><![CDATA[ | |
/** | |
* Get $1 | |
* | |
* @return ${2:[type]} \$$1 | |
*/ | |
public function get${1/(.*)/\u$1/}() | |
{ | |
return \$this->${1:$SELECTION}; |