T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. AbeAlpha
  2. General Discussion
  3. Tuesday, July 15 2014, 04:33 PM
  4.  Subscribe via email
I wana have 2 offcanvas sidebars in the same web. one on right and other on left.
I try to copy the block of offcanvas, but i dont find where to assing this block. In default.php do not exsist the block of-canvas.

Where to add the block off-canvas2?
Comment
There are no comments made yet.
Accepted Answer
Gardner Luna Accepted Answer Pending Moderation
2
Votes
Undo
Hi AbeAlpha,

To create a new off-canvas sidebar on the right side (the default off-canvas sidebar is on the left side), please follow the instructions:

1. Duplicate the "templates/t3_bs3_blank/tpls/blocks/off-canvas.php", rename it to "off-canvas-custom.php". Open the file, change the position that the off-canvas gets content from and the id. Here is the sample code of the off-canvas-custom.php, you can use 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;
?>
<?php
if (!$this->getParam('addon_offcanvas_enable')) return ;
?>

<button class="btn btn-primary off-canvas-toggle <?php $this->_c('position-1') ?>" type="button" data-pos="right" data-nav="#t3-off-canvas-custom" data-effect="<?php echo $this->getParam('addon_offcanvas_effect', 'off-canvas-effect-3') ?>">
<i class="fa fa-home"></i>
</button>

<!-- OFF-CANVAS SIDEBAR -->
<div id="t3-off-canvas-custom" class="t3-off-canvas <?php $this->_c('position-1') ?>">

<div class="t3-off-canvas-header">
<h2 class="t3-off-canvas-header-title">Custom Sidebar</h2>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>

<div class="t3-off-canvas-body">
<jdoc:include type="modules" name="<?php $this->_p('position-1') ?>" style="T3Xhtml" />
</div>

</div>
<!-- //OFF-CANVAS SIDEBAR -->


The new off-canvas gets content from "position-1", located in right side "data-pos="right"" and id "#t3-off-canvas-custom".

2. Load the new off-canvas sidebar to the block you want. Add the code below to the file, I will load it in the "mainnav.ph".

<?php 
if ($this->countModules('position-1') && $this->getParam('addon_offcanvas_enable') ) :
$this->loadBlock ('off-canvas-custom');
endif;
?>


3. Customize the off-canvas sidebar icon if you want. Use LESS or CSS to do this.

Here is the front-page for the sample: http://easycaptures.com/fs/uploaded/796/8914777850.png


Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # Permalink
AbeAlpha Accepted Answer Pending Moderation
0
Votes
Undo
Amazing, thanks a lot, works perfect!

...working in this more than 2 days ;)




I have a doubt,
Its posible to have the oncanvas in top to botton, and from botton to top?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Gardner Luna Accepted Answer Pending Moderation
0
Votes
Undo
Great to see it help you ;)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
wutthiphong Accepted Answer Pending Moderation
0
Votes
Undo
Hi Gardner,

Please explain more about LESS or CSS that you customize the off-canvas sidebar icon. ;) ;)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Gardner Luna Accepted Answer Pending Moderation
0
Votes
Undo
Please refer to the documentation for more detail of how to customize the sidebar icon: https://www.joomlart.com/documentation/purity-iii/faqs#sidebar-icon

Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
jaytse Accepted Answer Pending Moderation
0
Votes
Undo
of $ 131,600 (approximately RMB 75,000 per month) 1.9% UNEMPLOYMENT RATE Unemployment rate 1.9% 53700 NUMBER OF JOBS53700 Ranked 3 in Best Technology Jobs ranked third in the Best Technology Rankings 8. Psychologist Psychologist This field is not stagnant; there's so many new and innovative waysto approach treating the mental health issues. The Mental HealthParity Act and the Affordable Care Act, which has made health caremore accessible to a wider population, is helping drive the demandfor more psychologists. This field is not stagnant; there are too many new and WMNS Nike Dunk Heels innovative ways to deal with mental health problems. Quick Stats: Statistics Summary $ 94,590 MEDIAN SALARY Average Annual Salary $ 94,590 (US $ 54,000 per month) 1.2% UNEMPLOYMENT RATE Unemployment Rate 1.2% 32,500 NUMBER OF JOBS32,500 Vacancies Rankings 1 in Best Science Jobs Ranked first in the scientific work list 9. Web Developer web development developers The web developers are the gaming responsible for creatingwebsites. While some web developers will design a website 'sfront and back end, many web development companies split theseresponsibilities. The engineer is the artist who is responsible for creating the site.Although some web development engineers will have a frontend design and backend design for a website, many web development companies will separate these tasks (completed by multiple people) .Quick Stats: Statistics Summary $ 64,970 MEDIAN SALARY Average annual salary of $ 64,970 (approximately RMB 37,000 per month) 3.6% UNEMPLOYMENT RATE Unemployment rate 3.6% 39500 NUMBER OF JOBS39500 vacancies Rankings 4 in Best Technology Jobs Ranked in the best technical rankings Four Ons Research Analyst Operations research analysts are highlevel problemsolvers who useadvanced techniques, such as optimization, data mining, statisticalanalysis and mathematical modeling, to develop solutions that helpbusinesses and organizations operate more efficiently andcosteffectively. The division is a highlevel problem solver who uses advanced techniques such as optimization, data mining, statistical analysis, and mathematical modeling to develop solutions to help businesses and institutions run more costeffectively. Quick Stats: Statistics Summary $ 78,630 MEDIAN SALARY Average Annual Salary $ 78,630 (US Cheap Nike Mens Shoes $ 45,000 per month) 2.6% UNEMPLOYMENT RATE Unemployment Rate 2.6% 27600 NUMBER OF JOBS27600 Vacancies Rankings 5 ??in Best Business Jobs in Best Business Ranked fifth in the job listThe survey shows that Beijing is still the preferred candidate for graduates Despite the report on Tuesday, according to a report released last Tuesday, despite the fog haze, but Beijing still by virtue of its 'Soft environment' to become the first choice for graduates to find work. Researchers at China and the Globalization think tank and educational advisory firm Maccles have analyzed the survey report from 20,000 graduates. Researchers at the Center for China and Globalization and educationconsultancy MyCOS analysis responses from 20,000 graduates. They found that the Chinese capital was the preferred choice forfinding work based on social environment, economic development, infrastructure, consumption habits and internationalizedatmosphere. They found that the Chinese capital Beijing because of social environment, economic development, Facilities, spending habits and international ambience, is still the choice of job seekers. While Shenzhen, Shanghai and Guangzhou are behind Beijing. Graduates on average turn on a job in a smaller city that paid up to 1, 120 yuan more a month to stay in Beijing, the report said. Reported that graduates will usually choose to stay in Beijing and give up the work of small cities, Although this needs to bear a fixed cost of more than 1120 yuan per month. For Shenzhen and Shanghai, the offer to relocate would have toexceed 1,000 yuan a month, or to move to Guangzhou it would have tobe 441 yuan better a month. For Shenzhen and Shanghai, the cost of resettlement will exceed 1000 per month Yuan, choose to work in Guangzhou, then the cost may be 441 yuan per month. The report included only cities with a population of at least 1million. This report only investigates cities with a population of more than 1 million. Wang Boqing, founder of MyCOS and an expert in college graduate times, while tubes met stillises are still top choices for graduates to work in, the past three years have seen moreuniversity and college Cheap Nike Shoes students work in prefecturelevel cities, oreven smaller cities, Wang Boqing is the founder of Maccles, but also a college graduate employment experts. He said that although the metropolis is still the first choice for job seekers, but in the past three years, more and more college graduates choose to work in prefecturelevel cities and even smaller cities. These places Nike Lunar Mens do not have the pressure of big cities.Japanese employees are the lowest in loyalty in Mexico A survey shows that Japanese employees do not trust their employers more than employees in the United States, the United Kingdom, Canada, and Australia. A study found that Japanese employees in
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
  • Page :
  • 1


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