Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-02 10:29:15

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Is this possible in TXP?

Hi all/

http://www.qbn.com/
In the Editors choice section right in the middle of the site is something I would like to be able to achieve on a textpattern site I have on my localhost. How would you go about just displaying 6 articles + feature and then cycle through to the next 6 in textpattern. Is it jQuery &/or Ajax or something else?

Any help with specific txp tags and plug-ins etc would be much appreciated/

Thanks

Offline

#2 2008-10-02 11:24:51

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: Is this possible in TXP?

Yes, it is jquery/ajax.

They are calling “http://www.qbn.com/services/rest/cover_middle_paged/6/new/” every time you click on “Next” and “Prev” (the “6” number is variable, is the page number). This service returns the HTML to be inserted.

This can be created with Txp, of course. But it’s not particularly easy (not extremely difficult, but you need to know jquery and TxP well).

Start with jquery and ask if you have problems.

Last edited by juanjonavarro (2008-10-02 11:25:25)

Offline

#3 2008-10-02 14:04:05

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Re: Is this possible in TXP?

This looks to be capable of achieving the effect of only displaying 6 thumbnail article links at a time. Now to see if I can get it to sing with some TXP tags/
http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

Offline

#4 2008-10-02 14:06:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: Is this possible in TXP?

If you’re going that route, also check out coda slider which also sits on top of jQuery. They both do pretty much the same thing, but it might be worth comparing the features before picking one.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#5 2008-10-06 12:40:56

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Re: Is this possible in TXP?

Ok guys, got the mockup done http://www.jystdesign.co.uk/examples/bass_artists/step_carousel2.html

Im fine with integrating this with text pattern with reagrds to creating the forms etc. Thing I’m stuck on is the indexing/ Anyone got any ideas for this? Basically I need the index to increment every 12 articles and create a new “div class=panel” after every 12 articles. If someone can think of a better/ easier way of doing this please let me know.

Thanks/

Offline

#6 2008-11-27 14:45:10

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Is this possible in TXP?

the better method for me is to use the ajax sistem.

Width Jquery you take the control of link, and output the html request!

I use this method, but i’m looking for a simple solution to output only defined html

Offline

#7 2008-11-27 18:36:48

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,729
Website

Re: Is this possible in TXP?

Mock-up looks good: nice and snappy.

Basically I need the index to increment every 12 articles and create a new “div class=panel” after every 12 articles. If someone can think of a better/ easier way of doing this please let me know.

Maybe zem_nth is what you’re looking for?


TXP Builders – finely-crafted code, design and txp

Offline

#8 2008-12-30 15:03:32

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Re: Is this possible in TXP?

jakob wrote:

Maybe zem_nth is what you’re looking for?

Jackpot, great find mate, just what I was looking for!

Offline

Board footer

Powered by FluxBB