Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-22 22:45:27

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

One page, multiple blogs.

Is there a way of running multiple blogs (separated by section or category I imagine) on one page, without them interfering with each other? For example, if you click “Older” or “Newer” on one blog, it just changes that blog and the other stays static, as if each were in its own html frame.
I believe you can have multiples on a page with Expression Engine, but I don’t know how they work in reality having not come across any examples…
Thanks!

Offline

#2 2009-05-23 07:42:50

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

Re: One page, multiple blogs.

Maybe this TXP Tip might be worth looking at.

Offline

#3 2009-05-26 19:39:03

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: One page, multiple blogs.

Thanks, Jonathan, but I don’t think that’s what I’m after. Here’s a Flash mock up of the functionality I’m looking for…

Note: The blogs on the left and right do not interfere with each other as you flip through their respective “Next“s and “Prev“s. The main articles on the left will only have one section and be presented one article at a time, while the snippets on the right will have three or more sections as in this example (numbers/animals/colours) and will come in chunks of three or so articles (not shown here). The “snippets” don’t need permalinks, but the main articles will.
Any ideas?

Thanks.

Last edited by hicks (2009-05-26 19:41:20)

Offline

#4 2009-05-26 21:46:17

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: One page, multiple blogs.

Ajax is what your after. There’s been talk


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2009-05-26 21:55:39

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: One page, multiple blogs.

You can also have your articles already loaded in the DOM, and have them hidden by CSS, without the need of AJAX.

Then, simple, by using some JS/jQuery, you do all the trickery for displaying the next article.
Google for: jquery, jquery cycle, jquery tabs, jquery scrollTo (those are just a few of all the possible ways to achieve the same effect in your Flash mockup).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2009-05-27 23:12:14

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: One page, multiple blogs.

Thanks. I’m surprised such an apparently simple thing is this tough.

Offline

#7 2009-05-27 23:51:42

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

Re: One page, multiple blogs.

hicks wrote:

Thanks. I’m surprised such an apparently simple thing is this tough.

??

In your post, I think it somewhat unclear if your goal is one of presentation (flash example) or one of organization (multiple blogs)

If presentation, ( which MattD and maniqui have answered), I’m not sure why it seems “tough” – if you want a navigation without a page refresh, you either use flash, or AJAX, or some variation of scripting and/or DOM. (Or maybe advanced html5?)

As you noted, frames (personal opinion – avoid when possible) might also achieve what you want, allowing each section to refresh independently of each other.

What are you describing as “tough”? That might help give better answers. :)

Offline

#8 2009-05-28 02:17:20

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: One page, multiple blogs.

Presentation is not a problem, if you just mean the look; it’s engineering the functionality that escapes me. I don’t even mind a page refresh. All I want is for those two side-by-side blogs to be able to flip from page to page, in place, without affecting the status (i.e. page number and presentation) of the other.

Last edited by hicks (2009-05-28 02:17:44)

Offline

#9 2009-05-28 02:26:45

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: One page, multiple blogs.

And yes, I’d hand-build the site and each entry in Flash before I used frames!

Last edited by hicks (2009-05-28 02:27:01)

Offline

#10 2009-05-28 05:05:42

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

Re: One page, multiple blogs.

Based on this question, and your questions here and here I am wondering if you might want to read up and experiment with using txp tags with txp:variable to create conditional and site wide variables.

Perhaps between that and custom fields you can set the sequential numbers you want, then use them to remember the current article displayed in each “blog” so one remains static when the other is changed.

Not sure if it will work, but fwiw

Mike

Offline

#11 2009-05-28 23:43:37

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: One page, multiple blogs.

I think I’ve got it — thanks to you all. Dynamic Drive dot com dealt up some handy Ajax code. I’ll post here again if or when it’s all working as desired, in case you’re interested, so you can see how it comes together.
c

Offline

#12 2009-06-22 17:04:14

hicks
Member
From: Portland, OR, USA (ex-UK)
Registered: 2009-05-08
Posts: 106
Website

Re: One page, multiple blogs.

That Ajax wasn’t working on all browsers, so I canned it and went with lots of txp:variables and txp:php sessions, thanks to the knowledge passed on here. The site uses no javascript for its functionality.

Offline

Board footer

Powered by FluxBB