Is this possible?
I'm thinking I want to have two blogs at two different domains that look different, but share entries. One might only show entries from certain categories, while the other might show them all. I thought about just submitting to both at the same time, but I would like comments made on an entry in one to show up in the other.
So..can it happen at all? I'm not afraid to do some PHP coding in an attempt to make it happen, if necessary.
Two blogs, same entries and comments?
There are no plugins that currently allow this. The closest you could come would be the RSS Feed Aggregator, which could pull the feeds in particular categories from your other site and display them on the front page. But then both blogs would be dependent on the main blog.
You seem to want some kind of sharing, or remote update. Another poster recently asked a similar question. Maybe you could write a plugin that called another blogs automatic posting mechanism, if any?
You seem to want some kind of sharing, or remote update. Another poster recently asked a similar question. Maybe you could write a plugin that called another blogs automatic posting mechanism, if any?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
One central question: Are the two domains on the same server and going to the same document root? If yes, this should be easy.
This sounds like a very simple usage case of the "Extended properties for categories" plugin available via Spartacus. There you could apply different templates for specific categories.
You could even write up a VERY simple plugin that applies different templates depending on the HTTP domain name you used to enter the blog.
Save this as a file "config.inc.php" inside your selected template of the blog(s):
If anyone enters your blog with "www.domain2.com" they will get your default template. If they use "www.domain1.com" to enter your blog, the will get the 'custom' template instead.
If your two domains are on different servers, this would be a real pain. Synchronizing is REALLY hard to do then.
Regards,
Garvin
This sounds like a very simple usage case of the "Extended properties for categories" plugin available via Spartacus. There you could apply different templates for specific categories.
You could even write up a VERY simple plugin that applies different templates depending on the HTTP domain name you used to enter the blog.
Save this as a file "config.inc.php" inside your selected template of the blog(s):
Code: Select all
<?php
if ($_SERVER['HTTP_HOST'] == 'www.domain1.com') {
serendipity['template'] = 'custom';
}
?>
If your two domains are on different servers, this would be a real pain. Synchronizing is REALLY hard to do then.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/