Drupal 7 change theme for module - drupal

I have created a new module based on the Extensible Wizard Example found in http://drupal.org/project/examples. This is a one of 5 form modules which will all run on the same drupal site.
I need all 5 modules to use different themes but cannot figure out how to set a theme on the module level.
I have tried the suggestions in Drupal: How to theme a module and Drupal theme functions workflow in module with no success.
Any ideas?

to do this programatically, you can use the themekey module api, as explained in this post: http://drupal.org/node/622450
Also there are several modules that would help with switching themes based on different circumstances from the frontend:
Themekey: http://drupal.org/project/themekey
Page Theme: http://drupal.org/project/page_theme
Content Theme: http://drupal.org/project/content_theme
There is also role theme switcher and some others

Related

When implementing wordpress theme it shows only code

I am trying to implement a theme on my website. I went to Appearance implement the owner theme composer and after I implemented all the pages of the template. When the sites open up I just see the coding and less images.

Is it possible to use wordpress theme on typo3 server?

I am a newbie to wordpress and recently created a website using typo3 for a project at university (as my university servers are configured with typo3). I created the template using Templavoila and twitter bootstrap. I now have to use wordpress theme-HUGE as it is more interesting and suggested by the project partners. I have no idea if wordpress theme could be used on typo3 machine. If yes, how much overhead might occur? Could anyone provide some information on this?
Thanks
Wordpress themes files can't directly be used in TYPO3.
I would suggest you create a new TYPO3 template using the template engine of your choice and then rebuild the HTML structure of the Wordpress template. If your resulting HTML is exactly the same as for the Wordpress theme, you can use the included CSS and images.
If you want to go the easy way, use wordpress for the wordpress theme.
As said above, moving the css from wordpress to TYPO3 is not that hard. But you can not easily move the functionality of a wordpress theme to TYPO3. You have to rebuild it in TYPO3. And that will make a big difference.
For example:
Assume you have to set up a slider element, which is included in the theme. When you use the theme in wordpress, you just need to activate it in the settings.
In TYPO3 you will have to build a custom element, either by building an own extension or using one of the common custom element extensions like DCE oder FLUX. (Don't use TemplaVoila anymore, it's outdated).
And a slider is a easy task compared to the case, that your partners say "hey, we forget the nice blog we have in our theme, let's activate it!".
This might take you 2 clicks in the theme settings in wordpress, but if you want to port that feature to TYPO3 you should really know something about programming TYPO3 Extensions with extbase and fluid.
It might be a great project for learning TYPO3. But if it is a real project, with a real deadline, you will have a much more fun with it, when you use the wordpress theme in the way that it was meant to be used.

How to create a plone theme from a existing theme

This question looks a lot similar to Purchased Theme to Custom Made Theme? .
I purchased a theme which uses Twitter Bootstrap, using which I built a basic website. I stumbled upon Plone (4.3) after my website went beta. I understand that you can make plone the backend for the existing design by creating a theme and using that theme file in the "Theming" option of "Site Setup". I am really not sure how to create this theme file with my existing theme. Any help is appreciated.
Plone 4.3 ships with a sample bootstrap-based theme. I'd start by:
Turning on plone.app.theming (in the add/remove configlet),
Go to the theming config panel
Clone the bootstrap sample;
Start updating it with items from your bootstrap theme.
Read the plone.app.theming manual for vital information on how it all works.

How to convert custom cms to worpdpress plugins

I have my own custom gallery CMS which is built using php & mysql. Now I want to make this as a wordpress plugin for my client, meaning my custom gallery admin panel will be shown in wordpress as a single plugin.
How can convert my script to be a wordpress plugin? I am new to wordpress so I really have no idea about making plugins, so I'm wondering if I can just add a few lines of code and just by making a few changes to my script I can make it all work as a plugin?
Before you go any further, you should really question integrating your own CMS into WordPress. I've done this before, and it ended up having a lot of disadvantages in the long-term, like not benefiting from functionality and security updates from the WordPress team. The newer versions of Wordpress provide a lot of useful functions to generate your own custom admin functionality within WordPress, including Custom Post Types, Custom Taxonomies, Custom Meta Boxes, etc.
As an experienced WordPress developer, if I had a client that demanded more than the built-in gallery functionality that WordPress already provides, I would go one of two routes, depending on the requested functionality:
1. Add functionality to the existing WordPress gallery via hooks and filters
This site is an excellent resource to see just how deeply you can modify WordPress with hooks and filters:
http://adambrown.info/p/wp_hooks
2. Create a custom post type, client uploads images to the post as normal
This method you would just create a new 'gallery' post type, and the client would upload images with all of the built-in WordPress interfaces. You can add any additional functionality you need with functions like 'add_meta_box'... here's all the relevant links, including taxonomies if you need categorization and a good sort-by-taxonomy tutorial:
http://codex.wordpress.org/Post_Types
http://codex.wordpress.org/Function_Reference/add_meta_box
http://codex.wordpress.org/Taxonomies
http://justintadlock.com/archives/2011/06/27/custom-columns-for-custom-post-types
If you're absolutely hellbent on using your existing CMS, you can always load your code into an iframe on a custom WordPress admin page, but I don't recommend it based on experience. Here's a link that will guide you in that direction:
http://codex.wordpress.org/Administration_Menus
Just as a post-script, you can do any or all of these things either via a WordPress plugin or a custom WordPress theme. I tend to prefer adding functionality to a theme if I don't plan on sharing it with the world and documenting it, or if the functionality is very client-specific and not reusable.

Converting WordPress themes to Drupal 6?

I've seen that Drupal 6 has a really poor set of themes compared to, for example, WordPress. Do you know good resources/links for converting WP themes to D6?
The book Front End Drupal: Designing, Theming, Scripting includes a few pages that do a very good job of explaining the basics of converting a Wordpress themes to Drupal 6 themes.
Alternatively, the following links may also help:
Convert a Word Press theme to Drupal
How to Create a Drupal Theme / Convert Wordpress Theme into Drupal 6.x Theme
Also check out the WP Theme module for Drupal 6. It's currently under development, but provides implementations of the common theme functions used in WordPress themes, mapping them to Drupal equivalents. That allows you to use a fair number of WordPress themes directly.

Resources