We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Max
  2. General Discussion
  3. Monday, 10 June 2013
  4.  Subscribe via email
Hello, I'm Interested how can I add carousel in T3 blank template? Like this one..

http://twitter.github.io/bootstrap/examples/carousel.html

PS: It is about Jomla! 3.1, I forgot to mention
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
I too would like to know how to integrate this feature as well as the others seen here:

http://t3-framework.org/typography.html

Is there a page with instructions for doing so anywhere? I can't seem to find anything!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Malik,

Bootstrap carousel require their markup html and javacript call.

You can add a custom html module and publish to position-1 (or any position you like)
You also need to add the script call also.
By default Joomla editor will remove script tag, so you need to set the default editor on global configuration to None, or remove script tag from the blacklist tag in editor plugin.

After you done the setting above, you can try to paste this block code (from bootstrap link above):

<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<img src="http://twitter.github.io/bootstrap/assets/img/examples/slide-01.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>Example headline.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Sign up today</a>
</div>
</div>
</div>
<div class="item">
<img src="http://twitter.github.io/bootstrap/assets/img/examples/slide-02.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>Another example headline.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Learn more</a>
</div>
</div>
</div>
<div class="item">
<img src="http://twitter.github.io/bootstrap/assets/img/examples/slide-03.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>One more for good measure.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Browse gallery</a>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div>
<script>
!function ($) {
$(function(){
// carousel demo
$('#myCarousel').carousel()
})
}(window.jQuery)
</script>


You need to replace the image source link.

============================================================


Hi Josh,

T3 Typography is based on Bootstrap Typography. You can always use the same markup and class from http://twitter.github.io/bootstrap/base-css.html#typography
and you will get the result as show in http://t3-framework.org/typography.html.
Just follow the markup and class, put all of theme to custom html module or joomla article.


Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Works flawlessly!!! Only thing you need to do is to change location of images!

This is my modification of code!


<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">

<!--Slide 1-->

<div class="item active">
<div class="jumbotron masthead">
<div class="container">
<h1>Welcome to T3</h1>
<p>The all new, modern and flexible framework from JoomlArt.</p>
<a class="btn btn-primary btn-large icon-download-alt" href="https://github.com/t3framework/t3/tags"> Download <span class="hidden-phone">T3 </span> </a></div>
</div>
</div>


<!--Slide 2-->

<div class="item">
<div class="jumbotron masthead">
<div class="container">
<h1>Explore T3</h1>
<p>The all new, modern and flexible framework from JoomlArt.</p>
<a class="btn btn-success btn-large icon-search" href="https://github.com/t3framework/t3/tags"> Learn <span class="hidden-phone">T3 </span> </a></div>
</div>
</div>


<!--Slide 3-->

<div class="item">
<div class="jumbotron masthead">
<div class="container">
<h1>Discuss T3</h1>
<p>The all new, modern and flexible framework from JoomlArt.</p>
<a class="btn btn-warning btn-large icon-user" href="https://github.com/t3framework/t3/tags"> Talk about <span class="hidden-phone">T3 </span> </a>
</div>
</div>
</div>

</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div>
<script>
!function ($) {
$(function(){
// carousel demo
$('#myCarousel').carousel()
})
}(window.jQuery)
</script>
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hello,

I came across a problem when implementing bootstrap carousel on T3 Framework V 1.3.1. Conflicts occur between java script in carousel code and mootools-more.js

EDIT: I discovered solutions for my problems, explanation is below

This is the problem:




Solution for carousel:

Replace original JS code


<script>
!function ($) {
$(function(){

// carousel demo
$('#myCarousel').carousel()

})
}(window.jQuery)
</script>


With this code


<script>

jQuery(document).ready(function(){
jQuery('#myCarousel').each(function(index, element) {
jQuery(this)[index].slide = null;
});
jQuery('#myCarousel').carousel('cycle');
});

</script>


Solution for bootstrap popover and tooltip:

Explanation and solution

Just need to add class "hasTooltip" to <a> tag or any tag has the tooltip function.

example:

 
<div class="span2 offset2 hidden-phone" style="text-align: center">
<a class="hasTooltip" id="myPopover"><img src="/images/teacher.gif"></a></div>
</div>


<script>
!function ($) {
$(function(){

// tooltip demo

$("#myPopover").popover({title: 'Hello', content: "Testing popover!", trigger: "hover", placement: "left" });
})

}(window.jQuery)
</script>




I'm posting this here to find permanent solution, and to isolate the root of the problem. One thing I want to mention. I did not had this problem on earlier version of T3 Framework even when I updated earlier version on local server to V 1.3.1 everything worked fine. I came across a problem when I installed fresh t3_blank_j31.zip V 1.3.1 on hosted server. Will this problem be solved any time soon?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Max,

You are right. This is a conflict between Bootstrap Javascript and Mootools-More.
Since Bootstrap and Mootool-More are both core parts of Joomla. We can not do anything.

We can not remove conflict functions (there are several of them) of every element in the document (the performance issue).
This should be done when someone use it.

Though T3 has remove ('show', 'hide') for hasTooltip and dropdown as it is more common.

I am not sure this problem is only from T3 1.3.1. Please check again if mootools-more is loaded on your local server.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
You are right, mootools-more.js is not loaded on local server. That's not a big deal now, I relocated my project to hosted server! I managed to find optimal solution for my problems explained in earlier post. Thank you for your explanation of a problem!

Best regards!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

I am trying to integrate the http://twitter.github.io/bootstrap/examples/carousel.html type carosel

I can get the carosel to work as a custom HTML module or using the code injection feature (many thanks max for posting the script fix). However as custom module it is the width of the framework and as injection it is above the T3 menu and logo positions. I would like it to be floated behind the logo & search bar and full width as it is in the bootstrap example

i have added a new position to the template called rearfloat - however i am new to much of this and have little idea how to move this behind the T3 logo, search and language changer positions and set it full width. could anyone give me some pointers and the best way to achieve the effect?

many thanks in advance
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi anomatron,

T3 Blank has several positions by default.
You can assign the module to those home positions.

T3 Blank is a starter template. It required your CSS and PHP knowledge to customize.
If you are new to Joomla and web development. I would recommend you play with Joomla default and buy some templates to see how it work.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 8
Accepted Answer Pending Moderation
1
Votes
Undo
Hi anomatron,

I founded solution for your problem, it is not simple and it is not final. Requires a lot of changes. I hope you will manage to follow steps, and hope this is what you want.

1. Need to go to Extensions - Template - and chose your default (I worked with T3-blank-home1)
2. Go to Layout
3. Save as Copy (do not do this with your default template so you can start over if somethings go wrong)
4. In this step we need to get rid of 'header' which contains Logo and Search module
5. On your FTP find joomla-root-folder\templates\t3_blank\tpls
6. Open newly created 'Save as Copy" *.php file (see step 3)
- find <?php $this->loadBlock ('header') ?>
- delete it
- find <?php $this->loadBlock ('mainnav') ?>
- rename 'mainnav' with 'mainnav-carousel'
- save
7. Go to joomla-root-folder\templates\tpls\blocks
- find mainnav.php
- duplicate it and rename second file to mainnav-carousel
- open mainnav-carousel and in it paste this code



<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;
?>

<!-- MAIN NAVIGATION -->

<div class="navbar-wrapper">
<div class="container">
<div class="navbar navbar-inverse">
<div class="navbar-inner">

<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<i class="icon-reorder"></i>
</button>
<div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
<?php endif ?>
</div>

</div>
</div>
</div>
</div>
<!-- //MAIN NAVIGATION -->



8. Go back to your Joomla! backend
9. Extensions - Template - Injection
10. Paste this code Before </head>



<!-- Carousel -->
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<img src="/images/slide/slide-01.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>Example headline.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Sign up today</a>
</div>
</div>
</div>
<div class="item">
<img src="/images/slide/slide-02.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>Another example headline.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Learn more</a>
</div>
</div>
</div>
<div class="item">
<img src="/images/slide/slide-03.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>One more for good measure.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Browse gallery</a>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div><!-- /.carousel -->

<style>
/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
margin-bottom: 60px;
}

.carousel .container {
position: relative;
z-index: 9;
}

.carousel-control {
height: 80px;
margin-top: 0;
font-size: 120px;
text-shadow: 0 1px 1px rgba(0,0,0,.4);
background-color: transparent;
border: 0;
z-index: 10;
}

.carousel .item {
height: 500px;
}
.carousel img {
position: absolute;
top: 0;
left: 0;
min-width: 100%;
height: 500px;
}

.carousel-caption {
background-color: transparent;
position: static;
max-width: 550px;
padding: 0 20px;
margin-top: 200px;
}
.carousel-caption h1,
.carousel-caption .lead {
margin: 0;
line-height: 1.25;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.carousel-caption .btn {
margin-top: 10px;
}


/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */

/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 10;
margin-top: 20px;
margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
}
.navbar-wrapper .navbar {

}

/* Remove border and change up box shadow for more contrast */
.navbar .navbar-inner {
border: 0;
-webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
-moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Downsize the brand/project name a bit */
.navbar .brand {
padding: 14px 20px 16px; /* Increase vertical padding to match navbar links */
font-size: 16px;
font-weight: bold;
text-shadow: 0 -1px 0 rgba(0,0,0,.5);
}

/* Navbar links: increase padding for taller navbar */
.navbar .nav > li > a {
padding: 15px 20px;
}

/* Offset the responsive button for proper vertical alignment */
.navbar .btn-navbar {
margin-top: 10px;
}
</style>



11. This code worked without carousel javascript, if you encounter slide problems add this after </style> in Injection


<script>

jQuery(document).ready(function(){

jQuery('#myCarousel').each(function(index, element) {

jQuery(this)[index].slide = null;

});

jQuery('#myCarousel').carousel('cycle');

});

</script>


12. That should be it. I repeat, this is not final solution and it has a lot of room for improvement.

In attached file you can see how it looks like, and you can find slider photos. Photos needs to be in joomla-root-folder\images\slide
Attachments (4)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Max I've followed your guide and it works, but what if I want the menu under (outside) the carousel?
Thanks in advance.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
If I understand correctly, the best way to do that is to add menu to the module position that is below carousel module.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
How do you update (change/add/remove text/images) to the slideshow? Editing a static HTML file is not a very dynamic solution really. Is there a better way with T3 Framework and/or K2?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
^ Solved. Solution is to override article/category templates.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 13
Accepted Answer Pending Moderation
0
Votes
Undo
I know this post is a little old, but did you ever figure out a more elegant solution to having a full-width carousel behind the navbar? Its no big deal for me to edit the HTML, but I'm handing this site off to the client and that's when it will become an issue. Thanks!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 14
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Pat,

What template (T3 Blank or T3 BS3 Blank template)? and what's the template and T3 plugin version?

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 15
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Gardner.

I'm using T3 BS3 Blank 2.1.4 and T3 2.2.1

Best,
Pat
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 16
Accepted Answer Pending Moderation
0
Votes
Undo
Bumping topic above men's suit spam...
Anyone????
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 17
Accepted Answer Pending Moderation
0
Votes
Undo
Hey Guys,

because this thread is already helping, i keep asking here.
I'm using t3-bs3-blank on Joomla 3.3.1 to create a custom Template.
I mainly used Max markup and added some things:
- background image that is fixed behind the carousel
- thumbnail class for images
- box-shadow style for images

These addings actually worked out pretty well.

But somehow my arrows align to the top and don't stay in the middle.


<div class="custom" style="background-image: url('/images/banners/panorama/body-back.jpg'); background-repeat: no-repeat; background-size: cover; background-attachment: fixed;">
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner"><!--Slide 1-->
<div class="item active">
<div class="jumbotron masthead">
<div class="container"><img class="img-responsive img-thumbnail" style="-webkit-box-shadow: 5px 5px 3px #776F63; box-shadow: 3px 3px 3px #776F63;" src="/media/favslider/1.jpg" alt="" /></div>
</div>
</div>
<!--Slide 2-->
<div class="item">
<div class="jumbotron masthead">
<div class="container"><img class="img-responsive img-thumbnail" style="-webkit-box-shadow: 5px 5px 3px #776F63; box-shadow: 3px 3px 3px #776F63;" src="/media/favslider/2.jpg" alt="" /></div>
</div>
</div>
<!--Slide 3-->
<div class="item">
<div class="jumbotron masthead">
<div class="container"><img class="img-responsive img-thumbnail" style="-webkit-box-shadow: 5px 5px 3px #776F63; box-shadow: 3px 3px 3px #776F63;" src="/media/favslider/3.jpg" alt="" /></div>
</div>
</div>
</div>
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#myCarousel" data-slide="next">›</a></div>
</div>
<script>// <![CDATA[
!function ($) {
$(function(){
// carousel demo
$('#myCarousel').carousel()
})
}(window.jQuery)
// ]]></script>


Hopefully you see the mistake, that i can't find.
And sorry for my english ;)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 18
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sunny,

It's very kind of you to provide a screenshot with explanation so we can catch your point easier.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 19
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Gardner,

thanx for answering.
Do you see those tiny litte arrows on top?
They are supposed to be larger and in the middle :)

Thanx for looking.
Sunny
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 20
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
However, you are not allowed to reply to this post.