hello, im from poland. I'm stuck here
CREATE TABLE drupal_install_test (id int NULL). Firebird reports the
following message: CREATE TABLE drupal_install_test (id int) - Array ()
SQLSTATE[HY000]: General error: -607 unsuccessful metadata update
Table DRUPAL_INSTALL_TEST already exists
please help...
A basic question: say I have a content type Parent and a content type Child. There would of course be a hierarchy with the Parent above the Child type.
When I create a new content type, does it make any difference if I give the Child type a node reference to Parent (ie, if it were like the english sentence: 'A Child has X number of Parents') or if give a Parent a node reference to Child (ie, A Parent has X number of Children)?
Here's the code to create a custom block in drupal that will display the results of a Google Video search based on a specific search term. I had to dig around a bit to find out how to do this, so I'm posting it here.
NOTE: You'll most likely want to turn on the PHP Filter module and use that input format setting for this code, so that none of it gets taken out when the block is displayed.
google.load('search', '1');
function OnLoad() {
// Create a search control
var searchControl = new google.search.SearchControl();
// So the results are expanded by default
options = new google.search.SearcherOptions();
options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
// Create a video searcher
var videoSearch = new google.search.VideoSearch();
// Set the result order of the search - check docs for other orders
videoSearch.setResultOrder(google.search.Search.ORDER_BY_DATE);
// Set the size of the search results
// OPTIONS:
// LARGE_RESULTSET - request a large number of results (typically 8 results)
I'm using just core D7 (no modules) and whenever I edit a page that has menu items, once the page is saved, the menu items disappear. I have to then go and "add link" to all three menus (main, nav, and manually-created footer) just to get them back.
Anyone else have this issue, and how did you solve it?
I've successfully installed Drupal 7 locally on my mac osx10.6 but had a problem uploading an image to an article page because permissions were set to read only for sites/default/files folder. I used chmod a+w sites/default/files to change permissions and it worked. However, I received an alert from Drupal that my permissions to sites/default were now posing a security risk. I went back and changed the settings on default with chmod go-w sites/default. This seems to have solved the problem but I'm unsure whether I did the right thing.