How do I sync content types, taxonomy, menus among in a drupal multisite environment? - drupal-7

I have a drupal 7 multisite setup. For example I have site1.com and site2.com. I manually created a new content type for site1.com (let's call it 'books') and would like to sync/share it with site2.com without having to manually recreate 'books' in site2.com. How could I achieve this? Thank you very much for any feedback.

Use Features, which exports your content type to code so you can easily export it between sites.

Related

Is it possible to share 2SXC Content modules between portals on the same DNN instance?

2sxc 11.x / DNN 9.x
I have a DNN instance with a portal with lots of Content modules with different Content Types and Templates. I'm going to be making a second portal that is related to the first portal and there is some shared content. Is it possible to allow the first portal to share it's 2SXC content types and templates with the second, new portal? If so, how?
There are a LOT of ways to do this, and unfortunately there is no good guidance document 😟.
Your scenario sounds like what you would need Ghost-types for: one app creates the real type, the other app just has a ghost-reference for the original type. This is a common way to solve this - and yes, it's a very well kept secret 😉.
But I went ahead and created a checklist, just for you 🚀 https://azing.org/2sxc/r/Pj4GMYY5

What's the best way build intranet in drupal 7

Using Drupal 7.26, Zen Theme
I would like to build an intranet with 3 layers:
login (thin header, nothing else)
Dashboard (divs for major business divisions i.e. sales along with sidebar)
Content (content with sidebar)
i can get the first two using page-front.tpl and page.tpl, but the third layer also has page.tpl formatting. can i create a custom page format i.e. page-show-tpl or is their a better way to address this (preferably not panels).
Thx !
ken
It's best answered by using Google search.
But just in case of whatever - the two major players are Open Atrium and Drupal Commons. Look these projects up on drupal.org.

Product Gallery in Drupal 7 (like Amazon's)

I want to create a product preview gallery page for a certain node type. I do not want to use any eCommerce plugin nor do I want to use Drupal's Kick Starter. I simply want to replicate the image thumbnail hover/gallery in Amazon's inner product pages. Is there a way you can do this in a simpler approach? A simple plugin will do, but it would be best if it can be done even simpler just by using Drupal 7's defaults.
I hope I'm not violating any policies that will get me flagged or be voted down for asking this. Thank you very much!
You can create a gallery with drupal views and views slideshow.
check this page out
https://drupal.org/node/1497058
Also it would helpful if you could provide a link to the page you are referring to in amazon to get a better idea.
Hope it helps.

Drupal 7: How to create a "shippable" theme?

I'm creating a new Drupal theme for news web sites, which needs some fields to be added to the Article content type to work. For example, the theme will change the header image into something science-related when the user is viewing an article tagged with the term "Science" of a taxonomy called "Section".
I have set up the "Section" vocabulary and added it as a field to my Article content type manually, but the theme I'm making should be "shippable" to end customers, meaning that someone should be able to download it and install it without manually creating taxonomies and fields.
The theme must in some way notify the user that it depends on the Taxonomies module, and, when installed, the theme must create the relevant taxonomies and add fields for it to the "Article" content type.
What is the best way to accomplish this in Drupal 7? The only way I can think of is to create a specific "installer module" for my theme, that officially depends on Taxonomies and are able to add the right fields to Article etc, but there must be a more robust and "standard" way to accomplish this?
Making a theme depend on modules isn't very "standard". Themes only deal with the display, while modules deal with function. If you're making this theme only for this client, I wouldn't bother trying to integrate the two. Now if you're wanting to keep this for down the road, then it's like an installation profile, or themes you would see on ThemeForest that come bundled with a database.
I'd recommend moving any non-theme parts (like content type, fields, etc) into a feature using the Features module. It will help you keep your functionality separate from the theme. If you want to add custom CSS into the feature, just use the drupal_add_css() hook the in .module file that gets generated.

Drupal 7 - Placing Content Body in a Lightbox

I am working on a drupal 7 site that utilizes the calendar module. I've created a content type "event" which includes an event title, description, and time.
I'd like to display this information into a lightbox of some sort. I've researched the lightbox2 and colorbox modules but it seems that those are mainly used for media.
Has anyone done this and/or are there any suggestions as to how I can accomplish this?
The calendar module has a popup option built in. If you'd like another alternative you can look at the Fullcalendar module which has color box integration and is a better calendar in my opinion anyway.

Resources