Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
Offline
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
Re: One page, multiple blogs.
Ajax is what your after. There’s been talk
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
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).
Offline
Re: One page, multiple blogs.
Thanks. I’m surprised such an apparently simple thing is this tough.
Offline
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
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
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
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
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
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
Pages: 1