Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-04 21:44:13

Cowboy_X
New Member
Registered: 2004-10-27
Posts: 4

Textpattern and multiple blogs

I posted about this maybe a year ago… Is there any way to post from Textpattern to multiple blogs? Is anyone working on this?

Offline

#2 2008-01-05 00:16:16

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Textpattern and multiple blogs

Textpattern supports 1 site per installation. It is possible to have multiple subdomains and using apache magic to have each subdomain/section appear to be a separate site. With regards to posting from textpattern to multiple blogs, I’m not entirely sure what you mean.

Offline

#3 2008-01-06 19:33:58

robin746
Member
From: Ireland
Registered: 2007-09-22
Posts: 113
Website

Re: Textpattern and multiple blogs

Cowboy_X wrote:

Is there any way to post from Textpattern to multiple blogs?

I assume you want one site but multiple blogs within it. That’s the only way I can make sense of the question. There are at least two ways of handling this issue.

METHOD 1
This requires defining a new Section for each blog. When you write a new article specify the correct section for the blog you are writing.

On the home page you could pull out the last three articles for a specific blog “happy blog” like this:

<txp:article_custom form="display-blog" limit="3" section="happy blog" />

Your form “display-blog” would be used for all the blogs, assuming you want them all displayed the same way. In that form you can use the following to output the blog name:

 <txp:section title="1" />

METHOD 2
This method is for when it’s easier for you to have a single section for all blogs. Set up a custom field named “blogname” to filter articles on. When you write a new article specify section “blogs” and fill in a valid value for the blogname field, say “happy blog”.

The home page code would be something like:

<txp:article_custom form="display-blog" limit="3" section="blogs" blogname="happy blog" />

In “display-blog” use the following to output the blog name.

<txp:custom_field name="blogname" />

ISSUES
Both these methods require that you are explicit in your presentation code about the blog names. I am not sure how to get around this for cases where you want to have a dynamically changing number of blogs and you want the home page code to pick them all up automatically. I’d like to hear more from others on this.


robin

Offline

#4 2008-01-06 20:00:49

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Textpattern and multiple blogs

I implemented multi-blogs of a sort over here

Linjeblogger is a container section using article_custom to pull out the latest blog postings from the other blogs, all listed in the “Linjeblogger” menu. All the blogs are separate sections.

article_custom does not allow paging unfortunately, which is a bit restrictive. BUT, in one of the latest 4.06 revisions (thanks to Manfre) we CAN specify multiple sections, like so:

<txp:article_custom limit="10" section="adventureblogg,filmogmediablogg,gvblogg,kmdblogg,ktmblogg,multiblogg,rampelysblogg" form="blog_article_list" />

I used one page for all of this, with conditionals. So, yes, its possible. On the backend, with ied_hide_in_admin, you can restrict what the multiple authors can see.

Offline

#5 2008-01-06 20:22:23

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Textpattern and multiple blogs

As Robin said. FAQ

Or, if you want/need a more involved solution:

How To Run Multiple Sites Using One Install

ied_if_domain

Last edited by maverick (2008-01-06 20:34:04)

Offline

Board footer

Powered by FluxBB