hi,
I want to customize my Drupal back-end forms.
I'm using template.php file.. i.e.
$form['menu']['#collapsed'] = true;
$form['author']['#collapsed'] = true;
$form['buttons']['#weight'] = 100;
But I was wondering from where the section names (menu, author, buttons), come from. (They are not id or classes in html code, so I g...
is there any way to make a section invisible from template.php in drupal ?
Something like:
$form['name'] = array(
'#visibility' => 'hidden',
...
thanks
...
Hello,
I am using Ctools Dependency to make a fieldset hideable. This is part of my code:
$form['profile-status'] = array(
'#type' => 'radios',
'#title' => '',
'#options' => array(
'new' => t('Create a new profile.'),
'select' => t('Use an existing profile.'),
),
);
$form['select'] = array(
'#type' ...
hi,
I've a question about how to customize drupal modules avoiding hacks.
Let's say I've downloaded Lightbox2 module and I want to change the javascript file to display differently my lightbox.
At the moment I'm modifying the Lightbox2 module, so I cannot update it anymore, so I know it is not the best practice.
I was wondering if I ...
I have no need for the node "view" screen/tab for certain types of content.
Instead, when a user goes into /node/nid I wish to show the node edit form.
Any ideas on how I do that?
thanks,
Omer.
...
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.
...
using drupal with lightbox2 to open a form. this form is from a custom module.
the module has a setting: 'onsubmit' => 'return form_submission(this);' and that appears to be working correctly.
I've included the functions.js in the theme.info file and it's showing up, i can open that file and see the function.
for some reason, i keep g...
Background: I have a complex search form that stores the query and it's hash in a cache. Once the cache is set, I redirect to something like /searchresults/e6c86fadc7e4b7a2d068932efc9cc358 where that big long string on the end is the md5 hash of my query. I need to make a new argument for views to know what the hash is good for.
The rea...
I have tables like:
'profile_values'
userID | fid | value
-------+---------+-------
1 | 3 | [email protected]
1 | 45 | 203-234-2345
3 | 3 | [email protected]
1 | 45 | 123-456-7890
And:
'users'
userID | name
-------+-------
1 | joe
2 | jane
3 | jake
I want...
Some of the problems that can happen are timeouts, disconnections, and not being able to resume a file and having to start from the beginning. Assuming these files are up to around 5gigs in size, what is the best solution for dealing with this problem?
I'm using a Drupal 6 install for the website.
Some of my constraints due to the ser...
I'm using the Drupal Quiz module, and have setup some basic quizzes and stuff like that. However some further customization is required, involving more than 1 question per page, and a multi-type answer in this type of format:
Question 1: Describe 4 things you did last summer
a) [ short answer space - text field ]
b) "I wept"
c) "My who...
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.
...
I am building a Drupal website and want to have a facebook like box which create a content namely quotation in my facebook. How can I do this in drupal.. Below the box I want to display other quotations...
...
Hi,
I was asking myself if there's a better way of sorting content in Drupal.
Right now, when I go to admin>content all the nodes are mixed up. I installed the module "Content administration" (http://drupal.org/project/nodeadmin) and now you can not only filter but also sort them by title, type, author... but that's all.
Is there any g...
I'm not intimately familiar with CCK but I have a one-time custom setup and know that I could get some performance gains if I created indexes and changed the field type and length of some of the fields in my CCK table. Is it save to modify this table at all or will I end up destroying something in the process?
Thanks
...