Skip to content

Instantly share code, notes, and snippets.

@luis-pinheiro
Last active September 12, 2016 09:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luis-pinheiro/427c61547f8080b96483 to your computer and use it in GitHub Desktop.
Save luis-pinheiro/427c61547f8080b96483 to your computer and use it in GitHub Desktop.
Joomla Snippets
<?php print_r($this);?>
# T3-Framework
## Docs
* [T3-Framework](http://www.t3-framework.org/documentation/) - t3-framework documentation
## Define Path variable in T3 Framework
* $ncPath = T3_TEMPLATE_URL . '/';
## Add module position to block
* <jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" />
## Count Modules
<?php if ($this->countModules('nc-wat-p')): ?>
<jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" />
<?php endif?>
Add CSS style sheets
<?php
// CUSTOM CSS
if(is_file(T3_TEMPLATE_PATH . '/css/custom.css')) {
$this->addStyleSheet(T3_TEMPLATE_URL.'/css/custom.css');
}
?>
Add Javascripts
<?php
if(is_file(T3_TEMPLATE_PATH . '/templates/your-temp-name/js/slider/lofslidernews.mt11.js')) {
$this->addScript(T3_TEMPLATE_URL.'/templates/your-temp-name/js/slider/lofslidernews.mt11.js');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment