D7 in subdirectory, URLs without subdir

Drupal 7.57 was succesfully installed in a subdirectory of the webroot. It works properly and I'm very impressed by Drupals abilities.

The option clean URLs is enabled and all URLs contain the /subdir prefix. My aim is to maintain the installation in the subdirectory, but remove the /subdir part from all the URLs. How can I do that?

Sending HTML Emails

I am trying to send an email as HTML but it is coming out as plain text. I have this in my module

In a module, how do I send values to a Theme file to be rendered?

I'm working on someones existing module and I've made a function that returns an array of data. I'd like that data to be sent to the .tpl file so it can be rendered on the front end.

How exactly do I do this?

I have a `hook_theme()` set up, but then what? How do I get the data from my array, to the hook_theme to be used on the .tpl file?

Any help is appreciated.

Many thanks in advance.

Views filtering

On the website I'm working on, pages are housed in sections and subsections based on the taxonomy selected. For example, if I have two vocabulary and terms under each vocabulary -

Fruits
- Sweet
- Sour
- Mild

Vegetables
- Root
- Leafy
- Marrow

Fuits and Vegetables are the main sections and terms under each vocabulary are the subsections. Each section and subsection have their own landing page.

Both vocabulary are in a Field Collection item along with an "on/off Highlighted" checkbox (more on this later).

Fatal Error: Cannot redeclare page_manager_page_menu()

Hi,

Can anyone help me resolve this error so I do not have to reinstall the entire lms from scratch for the third time? 

This problem keeps coming up in connection with a ctools update that seems to conflict with the original module embedded in the Opigno_LMS profile. I am having trouble identifying exactly what the problems is, i.e. which line despite the error code and info, cause both files look almost identical to me.

error message, never seen before

Hello

I just copy my whole drupal7site to another folder for testing, then I got this error message :

 

  • Warning: file_put_contents(temporary://fileWWGp0e): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1936 of /home/xxxxx/xxxxxx/includes/file.inc).

Can anyone tell me what's wrong with this ? Thank you

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x