Dynamic Landingpage/Create custom NodeShortcutResolver

    0
    down vote

    favorite

I want to create dynamic landingpages in neos.
I thought best the way to do it is to create a shortcut und place some
landingpages as children. Now the shortcut should select one of them.
Here is the problem part. How can I tell Neos which child it should
show.

I thought I can write a custom NodeShortcutResolver and a custom
Shortcut Node. but I dont know how to tell neos to use the custom
NodeShortcutResolver.

Hope you can help or give some suggestions to solve it otherwise.

That was my question btw, but now I try to get dimensions to work, but everytime I add them nothing works anymore (backend/frontend)

And i was the one who answered. :slight_smile:

If you need help, post you yaml config/errors and we can try to help.

Page Not Found
Sorry, the page you requested was not found.
1301610453: Could not resolve a route
and its corresponding URI for the given parameters. This may be due to
referring to a not existing package / controller / action while building
a link or URI. Refer to log and check the backtrace for more details.

TYPO3:
Neos:
    nodeTypes:
        groups:
            popup:
                label: 'Popups'
            landingpage:
                label: 'Landingpage'
TYPO3CR:
    contentDimensions:
        'visitor':
            default: 'std'
            defaultPreset: 'std'
            label: 'Visitor'
            presets:
                'all': 
                    label: 'Blablabla'
                    values: ['std']
                    uriSegment: ''
                'std':
                    label: 'Standard für seiten die Keine unterscheidung brauchen'
                    values: ['std','bla']
                    uriSegment: 'std'
                'new':
                    label: 'Neue nicht erkannte nutzer auf spezieller seite'
                    values: ['new','blub']
                    uriSegment: 'new'

But I Simply folowed the translating/dimension guide.

Thats the point, even http://neos.vagrant.dev/neos doesn’t works anymore
and http://neos.vagrant.dev/ neither
Btw I’m working on a Vagrant machine local on my PC

I think it’s because the default dimension doesn’t exist. Plz try ./flow node:repair

Allready tried that, it’s saying “Could not find any site nodes in”/sites" root node".

I made a new installation of Neos and created an empty package and made the standard empty hello world page.
Then added the dimension and pow. Nothing works.

https://github.com/neos/neos-development-collection/pull/392 maybe it’s a bug

Did you import your site?

I created a ne package (no content) then placed my code in there (nodeTypes and styles and so on) but no content.

Okay maybe I’ve found the problem the Sites.xml inside my package seems to be weird. Is there a way to recreate it?
Seems to be an old version.

You can export your site or using the kickstarter to create a new one. The kickstarter will create a valid sites.xml.

1 Like

Oh my god -.-, ist seems to be that it was the Sites.xml, I’m working with vagrant, throught problems with Shared Folders/Neos/Vagrant I synchronize the code throught ssh. And everytime I pushed my code I uploaded a very old and false Site.xml

<?xml version="1.0" encoding="UTF-8"?>
  <language>de</language>
 
 </dimensions>
 <accessRoles __type="array"/>
 <properties>
  <title __type="string">Home</title>
  <uriPathSegment __type="string">home</uriPathSegment>
 </properties>
</variant>
<node nodeName="main">
 <variant workspace="live" nodeType="TYPO3.Neos:ContentCollection" sortingIndex="100" version="1" removed="" hidden="" hiddenInIndex="">
  <dimensions>
  
   <language>de</language>
  
  </dimensions>
  <accessRoles __type="array"/>
 </variant>
 <node nodeName="text1">
  <variant workspace="live" nodeType="TYPO3.Neos.NodeTypes:Text" sortingIndex="100" version="1" removed="" hidden="" hiddenInIndex="">
   <dimensions>
   
    <language>de</language>
   
   </dimensions>
   <accessRoles __type="array"/>
   <properties>
    <text __type="string">&lt;p&gt;This is the homepage&lt;/p&gt;</text>
   </properties>
  </variant>
 </node>
</node>

I deleted the package again and uploaded everything EXCEPT the shitty Sites.xml

How should this work.

But at least, thank you so much now I can get something done I hope.