0

I'm trying the following code blog in a definition for a Widget:

    {
    name: '_page',
    type: 'joinByOne',
    withType: 'apostrophe-page',
    label: 'Internal Page',
    idField: 'pageId',
  }

I did expect to receive kind of graphical chooser to select the specific page (e.g. like I could do it with files, images or users). But it doesn't work. I already tried a lot. But I don't get it.

Would be nice if anyone has ideas or help for this problem.

Florian Nitschmann
  • 351
  • 1
  • 3
  • 3

1 Answers1

0

If you're using a joinByOne field, it will by default come loaded up with a typeahead behavior so that you can select the item to create the join to. Pages are handled the same way as other item types.

As an example, if you following the custom widgets tutorial the page join field will behave this way.

Alex Gilbert
  • 143
  • 5