Creating+a+New+View

I created a new Content Type called 'Contact' and want to make it a View.

I get to this point in the instructions:

"Make sure that 'filter Criteria' is set to show content of type 'Employment' (see above screenshot) and 'Sort Criteria' is set to 'Content: Post date (desc)' (reverse chronologically) our view already kind of makes sense. If you look down at the bottom of the interface, a rendered preview should be visible. Click on 'Save' in the top right corner and your view block is ready to place on your CV page."

Under Filter Criteria, I cannot select a content of type 'Contact'. So I can't progress beyond this point.

I would be helpful for any direction to get un-stuck.

Thanks

--

Hi, if you cannot set a content type of 'contact' in the filter criteria that means it doesn't exist. Are you sure you made a content type called contact? (maybe it was a page or block). All content types will be available as a filter, look for 'Content Type (= > 'Content Types and if 'Contact' is not there that is the source of the problem, not anything you are trying to do in views.



Regarding the above view: Is the views fields still set to include 'Content:Title'? If so, that means it is only displaying the title of the contact node (of contact content type) that you've created. You should be able to change it to 'content: Title'? If you change it to 'content: body' that should put the information on the contact node into that field (the linked 'contact field' in the above screenshot). Remember, views are dumb and will do exactly what you tell them to so the 'fields' section is where we build the query and say what fields will be appearing, in what order and also setting their various configurations. Hopefully that works, if it does not... post a screenshot of your views configuration like you did earlier. As stated through email, your page is looking really good. :)



Above are my settings. Below is my fabulous new result. Where have my fields gone?



Hi, Is that your views setup for education or contact?- Delaney

If the content type you are trying to enter is 'Contact' than what you have under filter criteria ('Content Type (=Education)') is incorrect. If you want to show the body (text) from your 'contact' content type node... Your Fields should be:
 * Content: Title (maybe – if you want it included)
 * Content: Body

Your Filter Criteria should be:
 * Content:Published (Yes)
 * Content: Type (=Education)

This is telling the view to show the title and body of all posts of content type education that are published. I'm assuming you only have one, that page you shared earlier. An alternative approach:

Fields:
 * Content: Title (maybe – if you want it included)
 * Content: Body

Filter Criteria:
 * Content: Nid (Node ID, the number [node/#] of the contact page you've made.

This is telling the view to show the title and body of a specific node. One of these strategies should work... note the preview content at the bottom of the views configuration you can experiment with the filters and fields to test your potential output right rather than bouncing back and forth from the CV page to the views interface. Hopefully one of these strategies should do the trick – Greg

Thanks, Delaney. I've switched everything to this:

and achieved *drum roll* this:

an empty spot. It's getting worse!!!

Hi Maeve, I think your view is empty because you have not assigned a node ID in the 'Content: NID (=)' field. Click on that and set it to the node ID of your contact node (you can check what this value is by editing the node and checking the URL). – Greg

Thank you. These settings:



Result in this:



So, I went into Add Content > Contact and added some info into the fields Telephone, eAddress, and Address. Hit 'Save' and got this:



Maeve, node/16 is your CV page. You are telling your view to show fields that don't exist on your CV page on your CV page... so that is why it is blank. Remember the filter criteria is where you select which content shows, not the page on which it is shown. So, if you enter the value of the page you want to show on the CV page in the 'Content: Nid (= )' field it should work. – Greg

How do I edit the node to check the URL.

You can check the node ID through the Content link, mouseover your node in that page that lists all the content and you'll see the node #. Alternatively, click 'edit' on it and look at the URL in the address bar.

How do I get line breaks recognized within a field? Right now I have a text blob. I tried adding which just appeared as text.



In the contact node, note the 'input filter' for each field... you should be able to change it from 'filtered HTML' to 'Full HTML' – that should do the trick. By default Drupal makes almost all text-related fields 'filtered HTML' and you have to set fields to render in full HTML. Also, as a fallback plan, you could try clicking on the fields within the view configuration interface, there are related options in there as well. – Greg