Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Looking for good slider/carousel
Looks like Dave might have just written his own thing for that (instead of a plugin).
Yup. I did look at several Gallery/carousel plug-ins, but they all seemed to be overly complex for what I was looking for.
Jonathan – thanks for pointing to the jQuery Cycle plugin. I’ll have to look into that one further.
Txp admin themes | dropshado.ws – a blog for design noobs like me
Offline
Re: Looking for good slider/carousel
Took at a look at jQuery UI tabs after jakob suggested it. Is it just me or is the UI downloader weird?
I click “UI core” and “Tabs” and two JS files download. After putting it up on the test site, I get JS error message Value undefined (result of expression $[namespace][name]) is not an object. Cannot be used with new. and the tabs don’t work.
Its annoying, but more so because most likely I am missing something basic. You can tell its my first time playing around with this stuff ;-)
Offline
Re: Looking for good slider/carousel
If memory serves – the 2 files are the same – one is just a minified version. Right?
Not sure about the error. Do you have the UI js loading after jquery.js?
—
T
Offline
Re: Looking for good slider/carousel
Yeah I assumed the two files were the same but I see from view source of other sites that two different files (ui core/tabs) are included.
The UI JS is inserted after jquery.js, so its not that. PITA!!
Offline
Re: Looking for good slider/carousel
Mmm. So I take the minified script out and suddenly its working. The non-minified file works..
??
Offline
Re: Looking for good slider/carousel
weird.
Offline
Re: Looking for good slider/carousel
Yes it is! Tom, you have any idea where I can download the core UI and tabs files? So I can separate them.
I think the jQuery download may be corrupting the files. At least it might be, I remember issues downloading Mootools in the past.
Offline
Re: Looking for good slider/carousel
I might have an older version handy – lemme look.
I’ll post them if I can find them.
—
T
Offline
Re: Looking for good slider/carousel
P.S. The #jquery IRC channel can be super helpful.
:)
Offline
Re: Looking for good slider/carousel
I had that problem and then read somewhere (on the road at the moment so can’t check where) that some browser have problems with interpreting the js of certain minified files. I switched to the pack.js that’s often provided and then it worked without me making any changes to my code.
TXP Builders – finely-crafted code, design and txp
Online
Re: Looking for good slider/carousel
I’m also wanting to create a Slider EXACTLY the same as Whitehouse.gov!
I’m having some difficulty using it though, I’ve downloaded jCarousel, but I can’t my idea implemented. For starters the JS adds the arrows by default and I can’t figure out how to remove them. I also want to have the number links, but also have them have active states so that you know where abouts in the slider you are. Finally I’d like to have it so it AUTO starts and loops through the slides.
Would anyone be able to post the code for doing this? Thanks. x
~ Cameron
Offline
Re: Looking for good slider/carousel
Driz,
I’m not familiar with jCarousel – try the #jquery IRC channel. They are pretty helpful.
Otherwise, try the cycle plugin or tabs UI – I posted most of what you need to make it work a bit further back.
Offline
Re: Looking for good slider/carousel
bummer well I’ve put together this for the slideshow, now all i need to do is get it to slide using j:
<div id="slideshow">
<ul id="slides">
<li>
<div class="text">
<h1>Welcome to SolidCAM UK Ltd</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<img src="sample.jpg" />
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<ul id="pagination">
<li class="on"><a href="">1</a></li>
<li><a href="">2</a></li>
<li><a href="">3</a></li>
<li><a href="">4</a></li>
<li><a href="">5</a></li>
</ul>
</div>
~ Cameron
Offline
#29 2011-06-07 10:12:07
- fantasmo
- Member
- Registered: 2010-05-05
- Posts: 40
Re: Looking for good slider/carousel
This carousel is not a “Texpattern Plugin”, is it?!
I like jCarousel, and I think it is possible to have it in Textpattern without knowing something about Plugin-Coding (which I don’t).
How do I put out Images wrapped by <li> tags? And how do I say “put a class tag in each 4th <li>”? And at least, I would need this to fetch the images from a folder, no manually inserting into the code.
If I knew that, I bet it would be easy to have jCarousel for my website.
Offline
Re: Looking for good slider/carousel
@fantasmo
Looking at the basic demo of jCarousel, make sure you link your css in the head, then something like this would suffice…
<ul id="mycarousel" class="jcarousel-skin-tango">
<txp:images sort="id asc" category="gallery" break="li"><txp:image /></txp:images>
</ul>
And then in your footer, after the script links to jquery and jcarousel:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel();
});
</script>
That will automatically pull in any images from textpattern that are in a category of ‘gallery’.
Regards,
Phil
Offline