Hello
I'm trying to teach myself Drupal and I've found something I can't find any tutorials for.
I am trying to generate a form, with a dynamic number of text fields, to populate and edit the contents of my custom table. In regular PHP I would achieve this with:
$count = '0';
while ($row = mysql_fetch_array ($result) {
echo "<input ...
hi,
I'm using path auto module to automatically stores images in the projects subfolder. I'm using the [title] token and I had a unpleasent surprise: the title "abc / dce", creates 2 folders.
I was not expecting this because in the pattern descrition, [title] is clearly distinguished by [title-raw].
[title] Node title
[title-raw] Unfi...
SORTED
http://drupal.org/node/467190#comment-2068324
Hi friends,
I've spent all day to find but can't find :(
How can I display CCK Field value with php in views_customfield? I tried the ones below, but no result
$node->field_homepage_linking[0]["view"]
$node->field_homepage_linking[0]["value"]
value_get('field_homepage_linking...
I am new to drupal, so sorry for this noob question, but I was wondering how to display articles only in the central column. Currently there are also blog entries, etc and I would like to get rid of them. I have a Views plugin installed but I am not sure how to do this.
...
I would like to change the drupal ubercart catalog page from default grid to list. Is there any shortest way?
Thanks & Regards,
Satya
...
hi,
I've tried to change the redirection when I submit my edit-node form, by addming the following line to my template.php file, in my theme
$form['#redirect'] = FALSE;
I'm sure the template.php file works well because I have other lines in which I change, for example, the weights of some elements. But the redirection doesn't work.
...
I want to have a content type namely quote usign CCK. But quotes in general don't have a title. But since the title is a required field, how can I avoid being putting the title while creating a new node.
...
Is there any module in drupal which provides low rating feedback. eg If someone wants to vote a content as <= 2 (out of 5). Before he does so, there will be a pop up window displaying text "Are you sure you want to rate so low?" etc.
If there is no such module then is there any easy way of doing it through coding or otherwise?
EG:
...
I've recently created a very simple CRUD table where the user stores some data. For the data, I created a custom node. The functionality works great for creating, editing, and deleting data in the CRUD table using the basic node functionality (I'm actually amazed how fast and easy it was to program the basic functionality with proper a...
I've got a JS file that I want to add to Admin>Add Content>Certain Content type
After looking at template.php and checking out the function theme_preprocess_node
I tried to add the JS through drupal_add_js(...) but no go.
Now, I know that there's a similar question however my case is about adding
a JS file to a certain page and nothi...
in typical PHP applications I used to use mysql_real_escape_string before I did SQL inserts. However I am unable to do that in Drupal so would need some assistance. And without any sort of function like that, user input with apostrophes is breaking my code.
Please suggest.
Thank You
My SQL is as follows:
$sql = "INSERT INTO some_tabl...
By default for creating content a new page is opened. I want to do this inside a block. A block where there will be some fields like title body taxonomy terms and a create content button. How can I do this?
...
While creating a (custom) content in Drupal, I have three vocabularies. But these make my create content page very heavy. I want to collapse the Vocubalary fieldset by default and want it to expand only if user chooses to.
...
I want to build a Drupal demonstration site where I can create several custom themes and display each on a separate page of the site. Access can be either via links or menu items. The "simpler" the solution the better.
...
In reviewing Drupal layout modules, I'm left with the impression that while many exist for formatting existing content (e.g. Panels, Views and Display Suite), there are very few (if any) that focus on changing the layout of content-submission forms - and therefore there's no alternative but modifying the associated templates themselves. ...
How special characters in username converted to user path (users/username). i'm asking because when i use . in user name its removed in user path.
for ex: stefan.z path will be users/stefanz
...
I have a Matrix Table in a content type on Drupal CCK.
That content type also has 5 Node References,
I want the headers to be the node references (link to it)
I tried adding a JS file that would change the headers automatically
But it doesn't submit them, is there an already built solution to this
or just some other way?
The thir...
Is there anyway I can customize the paths to a node's tabs?
When using either pathauto or hook_menu_alter, I can change the path to the node view to from node/node_id to, well pretty much anything, but let's say xyz/node_title.
The node tabs, however, still stay with the path /node/node_id/tab_name
I'm trying to add a custom tab to th...
I can't use the drag to share module. I downloaded and enabled it. But then my content page goes 'blank'. It doesn't show anything. Somebody help please.
...
Hi friends,
I'm a drupal newbie...
I have created a block with View Module to list events (title, event date) at homepage. dates are being entered into textbox and such format as below;
December 5-7, 2010
December 4-6, 2011
July 17-19, 2011
...
When I set Sort Criteria as date, it just mess :/ it doesn't sort chron...