2017 © Pedro PelĂĄez
 

neos-carbon link

Link helper for Neos CMS

image

carbon/link

Link helper for Neos CMS

  • Tuesday, May 1, 2018
  • by jonnitto
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,209 Installations
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 20 Versions
  • 23 % Grown

The README.md

Latest Stable Version Total Downloads License GitHub forks GitHub stars GitHub watchers, (*1)

Carbon.Link Package for Neos CMS

This package provides some fusion helper for link editor., (*2)

Installation

Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:, (*3)

composer require carbon/link --no-update

The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilĂ ! Your desired package is now installed correctly., (*4)

Questions

What is the node:// URI conversion requires a context node to be passed error about?

Carbon.Link:Link and the internal Neos.Neos:NodeUri make use of the commonly available documentNode context variable to obtain context information such as language and workspace and to calculate relative links. This variable is provided by default in the \Neos\Neos\View\FusionView, but not, for example, in the \Neos\Fusion\View\FusionView, which is mainly used for Model View Controller applications. Make sure that you manually retrieve the document node and add it to the view, e.g., (*5)

<?php

class ArticlesController extends ActionController
{
    ...

    public function listAction(): void
    {
        $workspaceName = 'live';
        $language = 'en';

        $contextProperties = [
            'workspaceName' => $workspaceName,
            'invisibleContentShown' => false,
            'inaccessibleContentShown' => false,
            'dimensions' => [
                'language' => [$language]
            ],
            'targetDimensions' => [
                'language' => $language
            ]
        ];

        $currentDomain = $this->domainRepository->findOneByActiveRequest();

        if ($currentDomain !== null) {
            $contextProperties['currentSite'] = $currentDomain->getSite();
            $contextProperties['currentDomain'] = $currentDomain;
        } else {
            $contextProperties['currentSite'] = $this->siteRepository->findFirstOnline();
        }

        $contentContext = $this->contextFactory->create($contextProperties);

        $site = $contentContext->getCurrentSiteNode();

        $this->view->assign('documentNode', $site);
    }
}

License

Licensed under MIT, see LICENSE, (*6)

The Versions

01/05 2018

dev-master

9999999-dev

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper carbon link flow neos fusion

01/05 2018

1.0.1

1.0.1.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper carbon link flow neos fusion

27/04 2018

1.0.0

1.0.0.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

01/12 2017

0.4.8

0.4.8.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

20/11 2017

0.4.7

0.4.7.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

07/11 2017

0.4.6

0.4.6.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

02/11 2017

0.4.5

0.4.5.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

21/10 2017

0.4.4

0.4.4.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

12/10 2017

0.4.3

0.4.3.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

11/10 2017

0.4.2

0.4.2.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

11/10 2017

0.4.1

0.4.1.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

10/10 2017

0.4.0

0.4.0.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

10/10 2017

0.3.5

0.3.5.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

29/08 2017

0.3.4

0.3.4.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

28/08 2017

0.3.3

0.3.3.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

28/08 2017

0.3.2

0.3.2.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

24/08 2017

0.3.1

0.3.1.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

11/08 2017

0.3.0

0.3.0.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

24/07 2017

0.2.0

0.2.0.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion

21/07 2017

0.1.0

0.1.0.0

Link helper for Neos CMS

  Sources   Download

MIT

The Requires

 

helper link flow neos fusion