Making use of rules

I'm about to migrate some code from D6 to D7. I see from looking at Drupal Commerce that there is extensive use of rules to trigger events / actions, having come from a database background, I've always been cautious of triggered actions as these could always lead to huge problems tracing code flow during debugging, however, looking at it from the other side the ability to easily hang a few calls to my code off the back of other actions seems tempting.

Flash objects with XML doesn't work?

Hi,

I pretty new to Drupal so I'm not sure if this is the right place to ask, sorry if it isn't.

My problem is;
When I insert a SWF object in a page(Add content), it just works fine, but when I insert a SWF object that communicates with XML, it just shows a plain SWF(so only the background of the stage). Does Drupal support Flash>XML?

The object I'm using is kinda like:
http://www.flashxml.net/photoslide.html

Web Interface "Install new Module" error: Your server does not support installing modules and themes from this interface....

Hello everyone,

I finally got D7 working/installed. However, I've been trying for the past two days to get the "Install new module" link to work. I have checked in the online docs, the settings.php, and the forums here, but I can't seem to find anything on why I'm getting this message after I click the "Install new module" link on the admin->modules page:

"Your server does not support installing modules and themes from this interface. Instead, install modules and themes by uploading them directly to the server, as described in the handbook."

D7: Full version on front page

I'm new to Drupal (here we go again) and can't figure this out. (Probably doesn't help that when I have time, its about midnight)

Essentially, I want to put the full version of a Basic page content type on the front page of my site. All it has in it is a few paragraphs of text, if that's important.
Sorry for the nooby-ness. ;)

EditL Nevermind, I didn't look deep enough in the settings.

'Manage fields' and 'Manage display' tabs not showing up for entity

I'm reading through the book Drupal 7 Development (Packt Publishing) and I'm creating a new entity based on their code. Everything is going good, and I've created the entity, but the 'manage fields' and 'manage display' tabs are not showing up in my entity. I have defined the entity as 'fieldable' (TRUE), and the book itself says:

if the Field UI module is enabled we should see Manage fields and Manage display tabs when viewing each of those artwork types.

But the tabs are not showing up.

Some code:

hook_entity_info:
<?php
function artwork_entity_info()
{
$return['artwork'] = array
(
'label' => t('Artwork'),
'controller class' => 'ArtworkController',
'base table' => 'artwork',
'revision table' => 'artwork_revision',
'uri callback' => 'artwork_uri',
'fieldable' => TRUE,
'entity keys' => array
(
'id' => 'aid',
'revision' => 'vid',
'bundle' => 'type',
'label' => 'title',
),
'bundle keys' => array
(
'bundle' => 'type',
),
'static cache' => TRUE,
'bundles' => array(),
'view modes' => array
(
'full' => array
(
'label' => t('Full content'),
'custom settings' => FALSE,
),
'teaser' => array
(
'label' => t('Teaser'),
'custom settings' => FALSE,
),
),
);

foreach(artwork_types() as $type => $info)
{

Resize images by percentage?

I would like to add an "Image Style" that resizes an image by percentage instead of a fixed pixel. I've been searching for the solution... and I found that in Drupal 6, Image Cache allowed you to do this (http://drupal.org/node/163561).

Now Image Cache is in the Druapl 7 core, so shouldn't this function be?

Can someone help me out please?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x