Hi, I am new with Drupal 7 and I am developing a project using commerce.
In my product, I have add a taxonomy field for categorized it. I add `Category`.
now I am creating a sql query that counts the available quantity of the product per category.
hi all here,
I want to display an error message when the image is uploaded in a content type. Here if i give the max_resolution to the image field the image gets resized to the max_resolution and gets uploaded, but i want to restrict the user from uploading the image.
I have tried using hook_form_alter and used upload validators still it is not restricting instead it is resizing.
Please provide me some solution where i can restrict the uploading of image greater than max_resolution specified.
I need to import node's into Drupal 7 and I tried the "Feed Importer" but the problem is that all data sets are empty.
And I get this message "Notice: Undefined index: FeedsSQLParser in FeedsSource->getConfigFor() (line 577 of /usr/www/users/wineco1/sites/all/modules/feeds/includes/FeedsSource.inc)."
But In the Feed Importer Settings under "Settings for SQL parser" are the test results not empty.
If we want total record count from a query having pagination we need to run the count query.
I think the PagerDefault class already running a count query.If we can catch this in a member variable then we can avoid the multiple running of the count query.
Here I can explain the details
In includes/pager.inc line 74
$total_items = $this->getCountQuery()->execute()->fetchField();
We can set one public variable and assign $total_items to it.This way we can avoid the multiple running of the count query.
Hello, I have some problem with inserting external data into drupal database.
The external data is from another db.
The following is my steps:
1. Create one content type and add fields for this content type
2. I have found that if i create one instance of such content type, then nine tables would be changed in drupal db.
So must i have to update those nine tables when i insert data for each content type i make?
i click the conform upload images iam getting this error.
how to slove this error.
after error came my drupal loggedout.
now not login.
Warning: Table '.\drupal\sessions' is marked as crashed and should be repaired query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = '47vssuuhr6m553bgnh4h2737e4' in C:\wamp\www\drupal\includes\database.mysqli.inc on line 128