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
ezpublish: | |
... | |
system: | |
... | |
ftswps_user__com: | |
anonymous_user_id: 503 | |
languages: | |
- eng-US | |
ftswps_user__uk: | |
anonymous_user_id: 504 |
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
<div class="jvembed jvembed-youtube"><iframe width="560" height="315" src="//www.youtube.com/embed/MfOnq-zXXBw" frameborder="0" allowfullscreen=""></iframe></div> |
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
public function indexAction( $locationId = 2 ) | |
{ | |
$response = new Response; | |
$response = $this->cacheResponse( $response, $locationId, 10 ); | |
/** @var $repository \eZ\Publish\API\Repository\Repository */ | |
$repository = $this->getRepository(); | |
$contentService = $repository->getContentService(); | |
$locationService = $repository->getLocationService(); |
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
{# check if a field is not defined or empty #} | |
{% macro is_empty(content, field_name) %}{% spaceless %} | |
{{ content.fields[field_name] is not defined or ez_is_field_empty(content, field_name) }} | |
{% endspaceless %}{% endmacro %} |
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
#!/bin/sh | |
# purge image variations | |
# | |
# run this script when parameters in image.yml are changed as eZ 2014.11 does not purge invalid | |
# variations automatically | |
readonly variations="reference | |
article_full | |
article_line |
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
$searchText = $request->query->get('SearchText'); | |
$sort = array( 'modified' => 'false' ); | |
$contentTypeIdenfiers = array( 31 ); | |
$searchResult = $this->getLegacyKernel()->runCallback( | |
function () use ( $searchText, $sort, $contentTypeIdenfiers ) | |
{ | |
// eZFunctionHandler::execute is the equivalent for a legacy template fetch function | |
// The following is the same than fetch( 'content', 'search', hash(...) ) | |
return eZFunctionHandler::execute( |
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
/** | |
* Renders sub-items of the current location | |
* | |
* TODO: add content type filtering, and possibly more | |
* TODO: add template to be used for rendering | |
* | |
* @param int $locationId | |
* @return \Symfony\Component\HttpFoundation\Response | |
*/ | |
public function subItemsAction( $locationId ) |
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
imports: | |
- { resource: parameters.yml } | |
- { resource: security.yml } | |
framework: | |
esi: ~ | |
translator: { fallback: %locale_fallback% } | |
# The secret parameter is used to generate CSRF tokens | |
secret: %secret% | |
router: |
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
# We explicitly prepend config for "ezpublish" namespace in service container extension, | |
# so no need to repeat it here | |
system: | |
drucknatuer_user: | |
location_view: | |
full: | |
full_ps_produkt: | |
template: WebmanufakturSiteDruckformBundle:full:ps_produkt.html.twig | |
match: | |
Identifier\ContentType: ps_produkt |
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
{* File - List embed view *} | |
<div class="content-view-embed"> | |
<div class="class-file"> | |
{if $object.data_map.file.has_content} | |
{def $file = $object.data_map.file} | |
<div class="content-body attribute-{$file.content.mime_type_part}"> | |
<a href={concat("content/download/", $file.contentobject_id, "/", $file.id, "/file/", $file.content.original_filename)|ezurl}>{$object.name|wash("xhtml")}</a> {*$file.content.filesize|si(byte)*} | |
</div> | |
{undef $file} | |
{else} |
OlderNewer