Switching from private to public downloading in 7.0

Hi! I have problems with the infamous host one.com and setting Options in .htaccess files because of the security settings. I've been looking into this problem for a while now but can't find a solution that is flexible enough to suit my needs. Drupal 7.0 is installed and working good. Changing files in /sites/default/files/ ( e.g via colorpicker etc) is making drupal recreating a .htaccess file with the text:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

How to only render the first image

I've got a node with five images attached to a field named field_image. How do I make sure only the first image is rendered and the rest hidden, when in teaser view? I'm fumbling here, but got to the following, which just hides all images.

 if ($teaser && count($variables['node']->field_image) > 1) : 
  	render($content['field_image'][0]);
  	hide($content['field_image']);
  endif; 

D7 e-Commerce

I'm setting up an e-commerce site for a client. I chose to develop in D7 because launch is still several months away. I've got Ubercart set up on my local dev server (I've never worked with UC before). I need to set up products with a full list of specs that are searchable. Is the best way to do this with Taxonomy or Fields? If anyone can point to any resources I would greatly appreciate it.

Thanks

D7 Pager BUG?

1. Install drupal.
2. create a custom theme..
- new folder test
- new test.info file
- just the very basics

3. add more than ten items to the front page
4. there is no pager

-----
The only theme showing me a pager is bartic the rest if i enable them and set as default do not show me the pager... any ideas why this is like this?

Think its a bug....

Saving registration info from anonymous users

Hi, I would like to have a form on my site where anonymous users can register their interest in 'soon to be released' products.

I've had a look at the contact form module, however, I would prefer the registrations to be saved in the database, not emailed to me. Also, I would like to be able to add custom fields/check-boxes so the users can tick which products they want to hear about.

Is there an existing module that provides this functionality, or are there modules that would make it easy to build this kind of form?

Thanks.

View to display all products that contain the currently viewed product.

I'm using Drupal 7.0 with the following modules:

Chaos Tool Suite 7.x-1.0-alpha2
Views 7.x-3.0-alpha1
Reference 7.x-2.x-dev

--------------------------------------------

This is my first Drupal project, so apologies if this has already been discussed. I've searched the forum, but couldn't find a suitable explanation.

Here's a basic example of my product structure:

[PRODUCT A] contains [PRODUCT 1] and [PRODUCT 2]
[PRODUCT 1] contains [PRODUCT 1 EDITION i] and [PRODUCT 1 EDITION ii]
[PRODUCT 2] contains [PRODUCT 2 EDITION i] and [PRODUCT 2 EDITION ii]

Using the References module, I've created a node reference field called "field_contains" that allows me to specify which products and contained within other products, thereby creating a hierarchy.

Now I need to display two blocks on each product page:
• CONTAINS - a list of all products that are contained within the product currently being viewed.
• CONTAINED WITHIN - a list of all products that contain the product currently being viewed.

To clarify, I want [PRODUCT 2 EDITION ii] to display [PRODUCT 2] and [PRODUCT A] in the CONTAINED WITHIN view.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x