View and CCK are great for doing a lot of cool things on Drupal sites. However, at the same time there are a few things beginners should beware of when using View and CCK.
1) Filter out those 'not published' contents -- this is probably mentioned in every tutorial, book and video... yet once in a while someone will forget to do it. If something is not set to 'published' you should avoid showing it on your live site.
2) Save that view or you will lose it -- Sometimes beginners will mix up the 'update' button with the actual 'save' button at the bottom. Update is for applying the current changes in your field, filter etc. Nothing is actually saved until you press that 'save' button. Even if you can see the changes in the preview it doesn't mean your changes are saved.
3) Which view are you editing? -- After you saved a view the focus shifts back to default view. If you have a page and a block view under the default view and only want to edit one of them then make sure you select the right one before making changes again.
4) Rename your page views -- If you have more than one page view then make sure you rename each so you know which one you are editing. If everything is called 'page' you might get confused later.
5) "<? php " in CCK import and export -- when you manually import a CCK type from copying content from a .cck file then make sure you omit the "<? php" line at the beginning of the file. On the other hand, make sure you add the "<? php" line when you export a CCK type when creating a .cck file with it. So simple yet so easy to forget the first few times.
6) Some characters are not CCK import friendly -- Characters like backtick (`) are not import-friendly. If you have one of those characters in your import data then part of the content might not get imported correctly. No error message will be given during the CCK import if that happens, so always double check your new imported content type after each import.
7) Multi-step order missing -- If you a have problem importing then you might see multi-step setting missing after the import. Remember that even if all the fields show up under 'Manage Fields' in the right order the multi-step settings can still be missing.
8) Double check the group type -- If you use multi-group with CCK3 in your CCK type then you might notice the group type will change from multi_group to normal_group if there is an import problem.

Comments
#6 sounds like a bug to me. It might be worth digging into the code and reporting an issue.
Nice work on this article. Simple. And important. Great website too!
I am a Drupal developer in Victoria BC with over 10 years experience, if you are interested in any partnerships :)
Here's another tip: Views2 defaults to not using a pager and only showing 10 items. If you don't change this default, your view will never show more than the first 10 items. I've been bitten by this little gem more than once.
Thank you for the very useful information in brief.
Post new comment