public static
|
#
on_page_move( Icybee\Modules\Pages\Page\MoveEvent $event, Icybee\Modules\Pages\Page $target )
The callback is called when the Icybee\Modules\Pages\Page::move
event is triggered, allowing us to update content to the changed url of the
page.
The callback is called when the Icybee\Modules\Pages\Page::move
event is triggered, allowing us to update content to the changed url of the
page.
Note that only url within something that looks like a HTML attribute
are updated, the matching pattern is ~="<url>("|/)~
Parameters
|
public static
|
#
invalidate_cache( )
An operation (save, delete, online, offline) has invalidated the cache, thus
we have to reset it.
An operation (save, delete, online, offline) has invalidated the cache, thus
we have to reset it.
|
public static
Icybee\Modules\Pages\Page
|
#
get_page( ICanBoogie\Core $core )
Returns the current page.
Returns the current page.
This getter is a shortcut for the request->context->page
property.
Parameters
Returns
|
public static
|
|
public static
|
|
public static
mixed
|
#
markup_page_content( array $args, Patron\Engine $patron, mixed $template )
Defines an editable page content in a template.
Defines an editable page content in a template.
<p:page:content
id = qname
title = string
editor = string
inherit = boolean>
<!-- Content: with-param*, template? -->
</p:page:content>
The id attribute specifies the identifier of the content, it is
required and must be unique in the template. The title attribute
specifies the label of the editor in the page editor, it is required. The
editor attribute specifies the editor to use to edit the content,
it is optional. The inherit attribute specifies that the content
can be inherited.
Example:
<p:page:content id="body" title="Page body" />
<p:page:content id="picture" title="Decorating picture" editor="image" inherit="inherit">
<img src="#{@path}" alt="#{@alt}" />
</p>
Parameters
- $args
array $args
- $patron
Patron\Engine
$patron
- $template
mixed $template
Returns
mixed
|