Click on Image to download a file.

(The solution, below, works!)

I have pdf newsletters on site...would like to use cover page image as link to pdf.

Is it possible, in the content type definition, to make an image field link to an associated uploaded file?

Or is it possible to use an uploaded image as the file description?

Is it possible to do this with content type definitions in D7?

Is it possible to do this with add on D7 module?

input type=file, 'submit' button. Need HELP!

I have problem with file upload. When i don't use ajax everything works perfect, but with ajax:
1.i need to choose file,
2. then submit it, and
3. repeat the same actions second time.
How this is could be fixed? is it ajax problem? or maybe i need to use another functions? My code bellow:

<?php
function Diary_insert_class_form($form, &$form_state){
$form = array();
$form['class_fieldset'] = array(
'#type' => 'fieldset',
'#title' => 'from file'
);
$form['class_fieldset']['click'] = array(
'#type' => 'checkbox',
'#title' => 'click for file upload',
'#ajax' => array(
'callback' => 'ajax_classes_from_file_callback',
'wrapper' => 'class-fromfile-div',
'progress' => array('type' => 'none'),
),
);
$form['sup'] = array(
'#prefix' => '

',
'#suffix' => '

',
);
if(!empty($form_state['values']['click']) && $form_state['values']['click'] == 1){
$form['sup']['file_fieldset'] = array(
'#type' => 'fieldset',
'#title' => 'new file'
);
$form['sup']['file_fieldset']['file'] = array(
'#type' => 'file',
'#title' => 'file name'
);
$form['sup']['file_fieldset']['submit'] = array(
'#type' => 'submit',

Wysiwyg (TinyMCE 3.4.2) dones't work as supposed to

Hi all.

I'm having some issues with my Wysiwyg editor, it doesn't work as supposed to.
For example I try to make some text Bold, instead of making it bold it shows me the tags, [b]text[/b],
or if I want to embed a youtube video, it shows in preview but it doesn't when I save the page.

Some examples:

Login problems - /user vs /?=user

I'm a bit of a Drupal newbie, so any help anyone can offer would be great.
I'm running Drupal 7 and WAMP.

Right now, I'm having issues with the login page. Specifically the use of clean URLs (/?q=user vs /user).

/?q=user works correctly, and after credentials are accepted, directs to /user/#

/user simply reloads when any login credentials are submitted, valid credentials or not.
However, /user does work to display user info once the user is logged in.

I have clean URLs enabled.

Drupal 7 memory issues?

I’m playing around with Drupal 7 and one of my ISP/VPS accounts trying to see how it handles a few Drupal sites running on the same MySQL install, etc. One site uses a “backside” directory for the Drupal root, the other is set up as a complete Drupal site.

One issue (of many :-) when updating the site with the “backside” directory, was that it threw a fatal error and would not go without adding the “ini_set('memory_limit', '32M');” to the settings.php file. When migrating the other “full-Drupal” site (from local) it partially came up with what looked like broken CSS and white death screens on a number of the admin pages. The addition on the ini_set('memory_limit... on that site also seemed at the time to fix this problem.

Now after testing in a few other environments, I’ve noticed that in IE7 (on the full Drupal site only) a few of the same memory-type/css breaks are showing up. Also, some of my Drupal menus/lists display circle bullets. Firefox looks good. Normally I would of course blame IE/CSS, etc., but the breaks seem to mirror the same “memory” issues I had during the installs. And what’s with the menu item bullets? Both sites more or less utilize the same code base/css. Could the Drupal installs be starved for memory (or have other problems server-side) that cause IE problems?

site with Drupal directory (hit login/register for Drupal directory):

custom breadcrumbs

Hi

I want to add a class to the first ("home") breadcrumb and add custom separators to it. Can you help me ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x