Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How do I create a CT within a CT as shown in the image?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

To complete James's answer, the lookup is probably used for "linking" the list.

In order to get such display, the easiest and quickest way is to use SPD to create a custom dispform that contains an aggregated data source and a XsltViewWebPArt (I said easy, but it'sz actually a source of headache to understand how this works).

Another way is to create a custome template in 14Hive\controltemplates, and set the parent content type to use this template. Within the template, you can add the "child" view.

A last way (but I don't think it's a good idea to use it), is ti create a custom field type, to implement the display like this.

share|improve this answer

You can actually add related lists views to list forms directly from the SharePoint UI.

1 - Open a List (e.g. Tasks.

2 - Select the List tab from the Ribbon

3 - In the Customize List Group, select "Default Display Form" from the Modify Form Web Parts menu.

4 - Highlight the main form control (the area around the web part zones)

5 - From the Page Tools > Insert tab, use the Related Lists command from the Relationships group.

Pretty nice - you don't even need SharePoint Designer anymore to add relationship views to list forms...

share|improve this answer

Looks like there's a lookup to a task list in your image. The Task List has a column of type "Lookup" which connects to the Reservations list, so one reservation can have many tasks.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.3.4.2355\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">SharePoint Stack Exchange works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r"], "copyright__copyright__copyright": ["rePoint Designer anymore to add relationship views to list forms...\n\nshare|improve this answer\n\nLooks like there's a lookup to a task list in your image. The Task List has a column of type \"Lookup\" which connects to the Reservations list, so one reservation can have many tasks.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}