By kumar654 on
hey guys
i am new to drupal, i was wondering if i could get some help.
1.I am using cck module to make some forms on my website. What I am looking for is a dependent menu where can can select countrie and accordingly its cities. How can I make this form. Will i have to use cck or download any other module. if i have to download any module , then which one?
2. View module, makes a view of the entry from my database. it assigns a path/url, where the view field can be viewed. Is it possible to make changes or edit the very same page or add some more contents on that page.
Thank you very much for your help
Comments
_
For #1: see the http://drupal.org/project/hierarchical_select module.
For #2: i'm not sure I understand-- what do you want to add and/or change? Where do you want to put it?
You can add additional views to the same page by adding an "attachment" display. You can also put content (html and/or php) into the header and footer of the page. if you could be more specific about what you're trying to do I could point you in the right direction.
===
"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
hey
Thanks for answering the first answer. I installed the hierarchical_select module, but unfortunately I am haveing hard time using it, since there are no literature.
Do you have any better solution for making this form.
Once again i am repeating my question
I am using drupal version 6.9. I want to put forms in my website where people can come and post adds.
I have figured out how to make forms using CCK, but I am not able to add childforms.
For Example - i need a tab in the form where a list of countries will be there such as USA, India, Saudi Arabia.
I want it to be in such a way that when I select USA all the cities of US should pop up in the next tab, where as the cites of india and saudi arabis should not be visible.
Correspondingly when i select India, all the list of Indian cities should pop up on the next tab and the cities of USA and Saudi Arabia should not be visible.
Also similarly I should also be able to add more countries and more cities
Once again thank you very much
adi
_
if i understand you correctly, this is precisely how hierarchical_select works, except it doesn't create tabs but dependent dropdowns. You can test it out by clicking on the 'try a demo' link on the project page to see exactly what i mean.
To use it, you just need to setup a hierarchical vocabulary (Country -> City -> Post Code etc) and have it use the hierarchical_select form element on your form.
If you truly want multipage forms, you'll have to google around the site some-- i know i've seen some docs on it but you'll have to use the form api and code it yourself. There may be a multipage form module, but I don't recall one-- might be worth searching for though.
===
"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