I am writing my own module and would like to override the block template with my own template. So I can use a different template based on the region the bock is assigned to. This should be fairly straightforward, but I don't seem to get it working.
I just spent a few hours dealing with this.
I am posting this because it might be useful for others.
This is a brand new D7 site.
I have a server set up that uses add on domains.
There is the main domain for the server (which is the public_html directory) and the add on domains are placed in it. I hate this set up.
My set up used to have has this structure:
public_html (yourdomain.com) -- main domain
- yourdomain-1.com
- yourdomain-2.com
Now it has this structure: public_html
.htaccess makes
- yourdomain.com -- main domain
- yourdomain-1.com
- yourdomain-2.com
The way to accomplish this it is to beg your tech support to set it up or use the information below.
You set up the directory structure. Then create an .htaccess file in the top level of your public_html directory using the code below. The usage is explained well by its creator. But this is problematic with the D7 installation.
I have an issue when creating a display plugin for views 3. What I basically did is this:
- created a new module, and implemented hook_views_api()
- created a .views.inc file where I defined the new display plugin with hook_views_plugins
- created the plugin handler, and just copied the views block plugin there, from sites/all/modules/views/plugins/views_plugin_display_block.inc
Hi, I want to use install_drupal() function to install a new drupal in sites/[site_name]. in install_drupal() function there is not any variable(or at least I haven't seen) to indicate the site path to install.
Now if I have 3 folders in my sites folder(sites/site_1, sites/site_2, sites_3) How can I say install site_2?