Replies: 5 comments
-
You might be looking for relationships.
|
Beta Was this translation helpful? Give feedback.
-
Hmmm... Well OK that works but it's not an obvious route to the content and in this case not very user friendly. What was really nice about the content types on the Content tab was that it followed the flow of definitions. If these matched how the page template was laid out then it is really nice and easy for a non-technical user to work out the flow of the page from top to bottom when making edits. Now we have chucked in another tab for them to look at that has no positional reference to the page layout. There is no visual representation of media content in this case, just tags of file names which, for a lot of image files, may have zero to do with the content of the image, 20200119_150019.jpg for example. Is there a way of templating the dropdowns to show a thumbnail? Also is there a way of getting the relationship onto the content tab in a position that relates to the page layout? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is not correct: testimage:
type: testtype
label: Test Type For the type, you can only use the actual existing types. One solution is what @technicallyerik mentioned, but a simple |
Beta Was this translation helpful? Give feedback.
-
Many thanks @bobdenotter, using a select makes it possible but I still feel that being able to use a collection here would be a great advantage, it would make the UI an awful lot more intuitive if you could create your custom objects where you want to use them. What about my previous comment 'Do I have to add some template or view somewhere to do this with a custom content type?'. I'd really like the collection type to show the correct form from a custom component type just like it does with an image.
Using the above you get a nice form when you use a image and the type and just a text box with the custom content type. |
Beta Was this translation helpful? Give feedback.
-
If a custom content type is added to a page definition, you cannot select any of the records.
Details
Reproduction
Create a simple content type in contenttypes.yaml as follows:
Create a few records for the new content type and then add the content type to the 'homepage' definition in contenttypes.yaml as follows:
Now edit the homepage and scroll to the Test Type section, all you get is an edit box and no selection of the records that were previously created.
If you add a collection of the new content type:
You get the facility to add to the list but again, the list of content type records are not available, all you get a simple edit box.
Beta Was this translation helpful? Give feedback.
All reactions