Skip to content

Instantly share code, notes, and snippets.

Footnotes plugin 2.0.0-beta.5

Redactor Settings

Add "footnote" to the "plugins" setting. You can optionally define the button's position in the toolbar with the "footnoteAddAfter" setting.

"plugins": ["footnote"],
"footnoteAddAfter": "lists",

Footnotes plugin - new syntax

Redactor Settings

Add "footnotes" to the "plugins" setting.

"plugins": ["footnotes"],
<?php
namespace Craft;
class BusinessLogicPlugin extends BasePlugin
{
public function getName()
{
return 'Business Logic';
}
{% set bread = craft.entries({ section: 'bread' }).limit(null) %}
{#
# Users with bread on 3 days
#}
{% set users3Days = craft.users({
group: 'customers',
relatedTo: [
'and',
{ targetElement: bread, field: 'breadForMonday' },
<?php
/**
* Does a product order.
*
* @param string $name
* @param int $quantity
* @return bool
*/
public function doProductOrder($name, $quantity)