new to drupal
i thought i better get that out of the way first.

i downloaded drupal 6 today and installed it on the localhost. i then proceeded to build a simple image gallery to gain experience with views + cck
i wanted
1. a page displaying all of the galleries and thumbnails for the galleries in a "list view"
2.When clicked will take you to a grid view of the images within the gallery
3. When you click an image in the gallery it will take you to the full image/node

so far i have succeeded .

I have done everything, right down to clean URLS pathauto and taxonomy redirect .

however i have a problem with comments

problem

the problem is the actual image node itself, basically if i attempt to display the actual image node by leveraging views and creating the proper paths and arguments to actually create the image/node view with "fields" , i am unable to enable comments,

however if i just leave the original node alone (dont try and create a view for it) the comments show up just fine, i done get it?????

if i go to views and create a new view for that node and enable every single field possible , the comments still dont show up.

Question

How can i use views to create that node's view and have that node's comments show up ??????

Comments

radical3’s picture

Bump

radical3’s picture

Bump

Seriously how do i customize the node with views and still keep the comments on the node ????

radical3’s picture

Bump

WorldFallz’s picture

You don't customize the node display through views. You can approximate a node display with views, but ultimately it's still a view and you'd have to do a lot of unnecessary gymnastics to get it to behave otherwise (if it's even possible).

You're best bet is to theme the node display the way you want (you can use the contemplate module or edit the node.tpl.php file). Another option is to create a node override with the panels module.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

radical3’s picture

You don't customize the node display through views. You can approximate a node display with views, but ultimately it's still a view and you'd have to do a lot of unnecessary gymnastics to get it to behave otherwise (if it's even possible)

so how would i customize a node/ content type, with cck?
with views (im not sure if im using it right) but it allows you to put fields into the node and it gives you quite a lot of choices, so i can put things in there like, username, online status, taxonomy etc etc, i havent got a clue how to do that with cck.
when creating/editing the content type it gives you choices like check box and auto complete text box, (???)

if im using views + cck wrong then how do i use it??? is there some documentation on this , because what ive found is basic and outdated (drupal 5 & 4.x)

how do i get stuff onto the node??

You're best bet is to theme the node display the way you want (you can use the contemplate module or edit the node.tpl.php file). Another option is to create a node override with the panels module.

i wasnt really talking about the way it was displayed(theme ) i was talking about getting things onto the node , like user status, or stats, like how many nodes that user has created, etc etc, i saw that i could do it with views but i ddnt see anny of those things available when creating the content type, do need extra modules for those kind of things ?

if so can you point me in the direction of any modules that can add extra stuff to nodes/content types

WorldFallz’s picture

You can add all sorts of fields to nodes with any of the many cck field types. For the ultimate in flexibility you can use the http://drupal.org/project/computed_field to pretty much pull in any info you want with php and sql. Add the fields you want to appear on the node in the edit content type add field tab.

To style the appearance of those nodes I recommend the http://drupal.org/project/contemplate module. You can then edit the appearance of the node on the content type template field. You can also pull various pieces of info into the node there as well (with php and sql) if you don't want to use a computed field.

Then, you can use the views module to create various lists of nodes in several different formats.

hope that makes it a little clearer....

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

radical3’s picture

I think i understand CCK now , if im not wrong
CCK = the node itself, whats on it and where
Views = How you actually access the node/taxonomy/other widgets, grid view, list view, filter it and show certain nodes belonging to certain taxonomies, under certain content types , etc etc
taxonomy = categorization , tagging, categories, hierarchy , basically how everything is organized

Everything else is simply an enhancement geared towards a specific functionality which may or may not use or hook into these three things

but these three things are how "stuff" becomes "content" right???

Thanks WorldFallz

WorldFallz’s picture

One minor point-- views creates lists of items (a 'list' can consist of only one node). There's also some ability to summarize the lists in an index like format. In D5 views was restricted to nodes, but views2 in d6 can list any first class drupal object (users, files, nodes, comments, etc). It's incredibly powerful-- combined with the panels module you can alter the appearance and functionality of your site without touching any code. afaik, there's no analog to it in any other CMS.

Otherwise, yes you got it!

And you're welcome ;-)

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz