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 | |
namespace MyVendor\ImportExport\Command; | |
use Neos\ContentRepository\Domain\Service\ContextFactoryInterface; | |
use Neos\ContentRepository\Domain\Service\ImportExport\NodeExportService; | |
use Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\Cli\CommandController; | |
use Neos\Neos\Domain\Repository\SiteRepository; | |
use Neos\Neos\Domain\Service\ContentContext; |
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
function createAppState(initialState: AppState) { | |
// Define a signal to hold the state | |
const appState = signal(initialState); | |
// Define a function to dispatch events to the reducer and its state machine and update the state with the result | |
const dispatch = (event: AppEvent) => { | |
appState.value = appStateReducer(appState.value, event); | |
}; | |
// Derive readonly selectors for partial state values |
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
UPDATE neos_contentrepository_domain_model_nodedata SET dimensionvalues = '{ | |
"language": { | |
"0": "de" | |
} | |
}' WHERE dimensionvalues = '{}' and path <> '/' and path <> '/sites'; | |
delete t1 FROM neos_contentrepository_domain_model_nodedata t1 | |
INNER JOIN neos_contentrepository_domain_model_nodedata t2 | |
WHERE | |
t1.lastmodificationdatetime <= t2.lastmodificationdatetime AND |
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 | |
declare(strict_types=1); | |
namespace My\Site\ContentRepository\Transformations; | |
use Neos\ContentRepository\Domain\Model\NodeInterface; | |
use Neos\ContentRepository\Domain\Model\NodeData; | |
use Neos\ContentRepository\Migration\Transformations\AbstractTransformation; | |
use Neos\Neos\Controller\CreateContentContextTrait; |
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
prototype(Neos.NodeTypes.ContentReferences:ContentReferences) > | |
prototype(Neos.NodeTypes.ContentReferences:ContentReferences) < prototype(Neos.Neos:ContentComponent) { | |
@context.referenceNodesArray = ${q(node).property('references')} | |
referenceNodes = Neos.Fusion:Collection { | |
collection = ${referenceNodesArray} | |
itemRenderer = Neos.Neos:ContentCase | |
itemName = 'node' | |
} |
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
{ | |
"name": "imagine/test", | |
"require": { | |
"imagine/imagine": "^1.2", | |
"rokka/imagine-vips": "0.12.0" | |
} |
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 | |
declare(strict_types=1); | |
namespace My\Vendor\Security\Authorization\Privilege\Node\Doctrine; | |
use Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\FalseConditionGenerator; | |
use Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\PropertyConditionGenerator; | |
use Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface; | |
/** |
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
# This is a variant of th enormal ContentComponent that already includes | |
# a prop which loads it's children as ContentCollectionRenderer and has the necessary caching configuration | |
# to make everything work like with the standard ContentCollection. | |
# | |
# You can inherit from this prototype instead of ContentComponent for the Schedule and Day types above | |
# and remove the `items` prop from them. | |
prototype(Meetup.Example:ContentCollectionComponent) < prototype(Neos.Neos:ContentComponent) { | |
items = Neos.Neos:ContentCollectionRenderer | |
@cache { |
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
# Modify all image tags and add the attribute | |
prototype(Neos.Neos:ImageTag) { | |
attributes.loading = 'lazy' | |
} | |
# Example on the usage, see https://fusionpen.punkt.de/fusionpen/4e19425fc39184b13790ff00e8ce1c10328fa36d.html | |
prototype(YourVendor:LazyImageDemo) < prototype(Neos.Fusion:Component) { | |
chapters = ${q(site).find('[instanceof Neos.Demo:Document.Chapter]').get()} | |
NewerOlder