Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > populating and displaying a list of content with a new doc type View modes: 
User avatar
Member
Member
dcollins-marketwired - 1/27/2014 11:15:26 AM
   
populating and displaying a list of content with a new doc type
Maybe I'm on the wrong track. I cannot see my new doc type.

First, let's see if I'm going about it right. I want to display a list of speakers for an event. The Kentico Author should be able to add or subtract speakers as needed. Speakers should flow onto the page three-abreast, then wrap to next line, like this:

Speaker1pic Speaker2pic Speaker3pic
title1 title2 title3
blah blah blah blah blah blah

Speaker4pic
title4
blah blah

I figure what I should do is
1] Switch to Site Manager/Development/Document Types and create a New Document Type called "Speaker", to which I add a speaker's info fields.
2] add 4 documents of type Speaker to my "Events" page, filling in the forms with the data for each speaker (pic, name, title, blurb, link).
3] drop a repeater on my page, that will pick up doc type Speaker.
4] write a transform to take the data and display it, one div per speaker
5] put the repeater inside a container div with a fixed width, forcing the speaker divs to wrap after 3 speakers

Assuming this is a good way to do it, I'm stumped between step 1 and 2. I created a new doc type with a bunch of fields I want per speaker, but the doc type does not show up in the results when I try to "New... Create New Document" within my Events page of the Content Management tree.

I thought I'd done it right based on the tutorial but no. Does it have something to do with improperly specifying Document type display name or Document type code name within the Document Properties when creating the new doc type?

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 1/27/2014 11:25:27 AM
   
RE:populating and displaying a list of content with a new doc type
Make sure you specify a parent doc type, and that the document that you have your specific docs under is of that type. The parent doc type allows you to specify what you want to allow the document to be added under.

User avatar
Member
Member
dcollins-marketwired - 1/27/2014 11:34:29 AM
   
RE:populating and displaying a list of content with a new doc type
josha-bpstudios wrote: Make sure you specify a parent doc type, and that the document that you have your specific docs under is of that type. The parent doc type allows you to specify what you want to allow the document to be added under.

I recall seeing a parent doc type field go by when going through the create new doc type wizard, but now that I'm reviewing it, I don't see anywhere where I can specify it.


(Also, I think I've mucked up the transform. I saw a 'default' transform, which will do for now. So I selected it, and, so as not to overwrite it, I saved it as 'speaker'. Now neither 'default' nor 'speaker' show up as transforms.)

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 1/27/2014 11:46:00 AM
   
RE:populating and displaying a list of content with a new doc type
Go into the site manager and click development. Then click document types. Select your custom doc type and then click the child types tab and follow those instructions. As far as your transformation, when you are selecting it, make sure you choose your document type in the repeater under transformations. There is an option to select your transformation, edit it, or create it. If you find your doc type and create a new one, then you can generate the default transformation.

Otherwise, if you can't figure that out, take a field name from your document type and create a new transformation. Include that field like this

<% Eval("field") %>

Set your transformation as whatever you just created and then that field should show.

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 1/27/2014 11:31:19 AM
   
RE:populating and displaying a list of content with a new doc type
Just for clarification under your doc type, go into the child types tab, on the right side you can specify what doc type you want for it to be available under. If you select page(menu item) your doc type can be inserted under the page doc type.


User avatar
Member
Member
dcollins-marketwired - 1/27/2014 11:53:33 AM
   
RE:populating and displaying a list of content with a new doc type
josha-bpstudios wrote: Just for clarification under your doc type, go into the child types tab, on the right side you can specify what doc type you want for it to be available under. If you select page(menu item) your doc type can be inserted under the page doc type.

OK, I found that and was just playing with it (even though it makes no sense - why would I go to a child types tab to set its parent types? I would think I'd be setting child types).

Oh wait. I don't go to my NEW 'speaker' doc type, I go to my original 'Events' page doctype and add 'speaker' there. Got it.

OK thanks!