When i choose 1 or more modules to enable and click 'Save Configuration' I get back 'The website cannot display the page' error. the URL in the address bar is http://chandrabhan.com/dp/admin/build/modules/list/confirm. However in the backend it seems the modules actually getting enabled.
I am new to drupal and was wondering how it works in terms of publish content. Now it seems from first glance that the way the system works is your local instance is essentially your site, but how would it be possible to configure such that you have different environments for your end users and your internal users have a different site to login and do their work.
I am talking of such a scenario here:
localhost:8080/drupal ---> Login do work for authors
localhost:8080/somesite --> where end users see their work
I have been working with drupal, recently i have came up with a requirement.
I have created content types in drupal and i was using drupal forms to store the information. But now i have to do it programitically. Means i need to read the information from a file and create nodes for a already created content type all this through a piece of code without any user interaction on the screen, it can also run as a scheduled backgroud task.
I am not able to find apis for it, can someone help me in pointing to the api or some example code snippet.
I have modified the page tpl.php file so that the page title does not appear on the home page by adding this code - if ($title!='Home Page'): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; -
Can anyone tell me how to make it so that the page title does not appear on a series of pages?
I'm working with drupal and some different node types in my site.
I have a unique problem with book nodes-
usually, when editing an existing node, the "theme_node_form" function is called (and then call the rendering function ).
BUT-
when I give a path: node/$nid/edit and the node type is book, I arrived to the rendering function but not through the "theme_node_form" function... when I create new book node - it works o.k (using the "theme_node_form" function)
Do you know what is the different behavior of book???
I'm trying to figure out general HTML generation principles in Drupal core, but it still remains a bit unclear. As a first exercise I'd like to figure out how the "user_login_block" is rendered to HTML and try to change the layout from ...
... to this "user_login_block" layout
-------------------
"Username label" : "Username textfield"
"Password label" : "Password textfield"
-------------------
I have tried to figure out the flow starting from USER MODULE's "user_block" function to FORM.INC's "drupal_render_form" function, but I just can't find the spot where "DIV" tags are inserted to form? I think I understand quite well how the $form array is constructed, but how and where is it rendered to HTML? Although there would be shortcut for achieving this (e.g. installing new theme), I'd really like to understand how the core does this in first place.