By ash.agrwal on
Hi..
I want to create a custom content-type. I know that CCK is available for this. But it is not able to fulfill my needs. I think I am going to have to write a module (not sure). Can someone plss.. point to a gud tutorial for this. I have searched and havent succeeded in finding a tutorial yet.
Thnx.. :)
Comments
References
There are two things to look at
the info file: this is the spec on how to write the node_example.info file.
http://drupal.org/node/171205
example node: this is the 'nuts and bolts' of setting up the new content type form.
http://api.drupal.org/api/drupal/developer--examples--node_example.modul...
You may also want to point
You may also want to point out how CCK does not meet your needs, someone may have some useful feedback.
The reason why CCK does not
The reason why CCK does not do the job is...
bcoz i need one custom content to contain multiple another custom content!
As far as I know, CCK does not have this or either i dont know which other modules are needed for this functionality!
have a look at the Panels
have a look at the Panels module. It lets you create pages (panels) that contain other nodes.
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
This book walks one through
This book walks one through creating a custom node type quite explicitly:
http://www.amazon.com/Learning-Drupal-Module-Development-practical/dp/18...
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
Hi.. I followed the
Hi..
I followed the node_example tutorial and it really helped me a lot.
I first copied the code and installed the module on my drupal installation just to see how it does.
Later on, i copied the module into another dir and began editing it so that I could understand better.
But then when i installed this new module, my submit buttons return empty pages (everywhere.... ). But if i press Back on my browser, I am able to see the changes. And the moment I disable this module, everything works fine. Can someone tell me what the problem might be ?
Thnx..
You'll commonly see the empty
You'll commonly see the empty pages referred to as WSOD (White Screen of Death). They are caused by any number of hundreds of possible errors in your code, so tracking down what is wrong requires some effort...
I use three things to help me debug:
1) I've installed xdebug for my local machine's php, which gives be a "traceback" dump of the function call stack when an error occurs.
2) I use this routine to place debug messages into a log file, with messages like "here 0", "here 1" and so on throughout the code to identify what logic is about to be called. When I've added log messages "here 0" thru "here 25", and the log stops at "here 16", I know the error is somewhere between "here 16" and "here 17".
3) I've downloaded and made a local version of this site: http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/ (see the download link middle of the page). This allows me to check my module code for php syntax errors before attempting to run it. I use it every time I've made edits to the php. You get surprized how many simple errors you can make, expecially if you often work in multiple programming languages.
Note that I've wasted around 12-14 hours trying to get the Komodo IDE to work, which claims the ability to single step through php, even on a remote server. Trying to set that up is how I got xdebug installed on my machine. However, unless they make radical improvements to their documentation, I don't recommend trying to get Komodo IDE to work, it's a Time Vampire. I gave up on it.
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
Hi... thnx for the tip.. but
Hi...
thnx for the tip..
but i used the php command line interpreter (phpcli) to check for syntax errors and it did not return any errors..
i wonder where the prob is !
BOOKMARKING!!
BOOKMARKING!!
---~~~***~~~---
aac