Bonjour,
Apparemment c'est pas un problème de flexi mais de template joomla car en changent de template joomla la fonction print marche impec, je sais que le forum est dédié uniquement a flexicontent mais une aide sur joomla seras le bienvenue, j'ai installer un template free sur mon site mais la fonction print dans article ne fonctionne pas, une fois que on clique sur print la fenêtre popup s'ouvre avec juste le contenu de l'article mais la fonction print ou on choisi le mode d'impression etc ne s’exécute pas je crois que c'est un problème de template car quand j'utilise un autre template tout fonctionne impec, je crois que le fichier ou se situe la fonction print c'est comme suit :
joomla -> template -> html -> com_content - > article -> default.php et default_template.php
Je vois joint c'est deux fichier pour voir
Merci bcp
default.php
[PHP]<?php
defined('_JEXEC') or die;
?>
<?php
require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'functions.php';
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
Designer::load("Designer_Content");
Designer::load("Designer_Shortcodes");
$component = new DesignerContent($this, $this->params);
$article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print));
$currentTemplateName = getCurrentTemplateByType($article->isPage ? 'page' : 'post');
?>
<!--TEMPLATE <?php echo $currentTemplateName; ?> /-->
<?php
require_once 'default_template.php';
?>
[/PHP]
default_template.php
[PHP]<!--COMPONENT common -->
<?php ob_start(); ?>
<div class=" bd-blog <?php echo $this->pageclass_sfx; ?>" itemscope itemtype="
schema.org/Article
">
<div class=" bd-grid-5">
<div class="container-fluid">
<div class="separated-grid row">
<div class="separated-item-30 col-md-24 ">
<div class="bd-griditem-30">
<?php
$params = array();
if (strlen($article->title)) {
$params = $this->escape($article->title);
if (strlen($article->titleLink))
$params = $article->titleLink;
}
// Change the order of ""if"" statements to change the order of article metadata header items.
if (strlen($article->created)) {
$params[] = $article->createdDateInfo($article->created);
}
if (strlen($article->modified)) {
$params[] = $article->modifiedDateInfo($article->modified);
}
if (strlen($article->published)) {
$params[] = $article->publishedDateInfo($article->published);
}
if (strlen($article->author)) {
$params = $article->authorInfo($article->author, $article->authorLink);
}
if ($article->printIconVisible) {
$params = $article->printIconInfo();
}
if ($article->emailIconVisible) {
$params= $article->emailIconInfo();
}
if ($article->editIconVisible) {
$params = $article->editIconInfo();
}
if (strlen($article->hits)) {
$params = $article->hitsInfo($article->hits);
}
// Build article content
$content = '';
if ('above full article' === $article->paginationPosition) {
$params = $article->pagination();
}
if (!$article->introVisible)
$content .= $article->event('afterDisplayTitle');
$content .= $article->event('beforeDisplayContent');
if (strlen($article->toc))
$content .= $article->toc($article->toc);
if (strlen($article->text)) {
if (strlen($article->images))
$params = $article->images;
if ('above text' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->text($article->text);
if ('below text' === $article->paginationPosition) {
$params = $article->pagination();
}
if ($article->showLinks)
$content .= $this->loadTemplate('links');
}
if ($article->introVisible)
$content .= $article->intro($article->intro);
if (strlen($article->readmore)) {
$params = $article->readmore;
$params = $article->readmoreLink;
}
if ('below full article' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->event('afterDisplayContent');
$params = DesignerShortcodes::process($content);
// Change the order of ""if"" statements to change the order of article metadata footer items.
// Build tags
if (count(($article->tags)) > 0)
$params = $article->tags;
if (strlen($article->category)) {
$params = $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink);
}
echo renderTemplateFromIncludes('article_2', array($params));
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo ob_get_clean();
?>
<!--COMPONENT common /-->
<!--COMPONENT blog_5 -->
<?php ob_start(); ?>
<div class=" bd-blog-5 <?php echo $this->pageclass_sfx; ?>" itemscope itemtype="
schema.org/Article
">
<?php $pageHeading = strlen($article->pageHeading) ? $component->pageHeading($article->pageHeading) : ''; ?>
<?php if ($pageHeading) : ?>
<h2 class=" bd-container-21 bd-tagstyles"><?php echo $pageHeading; ?></h2>
<?php endif; ?>
<div class=" bd-grid-7">
<div class="container-fluid">
<div class="separated-grid row">
<div class="separated-item-46 col-md-24 ">
<div class="bd-griditem-46">
<?php
$params = array();
if (strlen($article->title)) {
$params = $this->escape($article->title);
if (strlen($article->titleLink))
$params = $article->titleLink;
}
// Change the order of ""if"" statements to change the order of article metadata header items.
if (strlen($article->created)) {
$params[] = $article->createdDateInfo($article->created);
}
if (strlen($article->modified)) {
$params[] = $article->modifiedDateInfo($article->modified);
}
if (strlen($article->published)) {
$params[] = $article->publishedDateInfo($article->published);
}
if (strlen($article->author)) {
$params = $article->authorInfo($article->author, $article->authorLink);
}
if ($article->printIconVisible) {
$params = $article->printIconInfo();
}
if ($article->emailIconVisible) {
$params= $article->emailIconInfo();
}
if ($article->editIconVisible) {
$params = $article->editIconInfo();
}
if (strlen($article->hits)) {
$params = $article->hitsInfo($article->hits);
}
// Build article content
$content = '';
if ('above full article' === $article->paginationPosition) {
$params = $article->pagination();
}
if (!$article->introVisible)
$content .= $article->event('afterDisplayTitle');
$content .= $article->event('beforeDisplayContent');
if (strlen($article->toc))
$content .= $article->toc($article->toc);
if (strlen($article->text)) {
if (strlen($article->images))
$params = $article->images;
if ('above text' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->text($article->text);
if ('below text' === $article->paginationPosition) {
$params = $article->pagination();
}
if ($article->showLinks)
$content .= $this->loadTemplate('links');
}
if ($article->introVisible)
$content .= $article->intro($article->intro);
if (strlen($article->readmore)) {
$params = $article->readmore;
$params = $article->readmoreLink;
}
if ('below full article' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->event('afterDisplayContent');
$params = DesignerShortcodes::process($content);
// Change the order of ""if"" statements to change the order of article metadata footer items.
// Build tags
if (count(($article->tags)) > 0)
$params = $article->tags;
if (strlen($article->category)) {
$params = $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink);
}
echo renderTemplateFromIncludes('article_4', array($params));
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo ob_get_clean();
?>
<!--COMPONENT blog_5 /-->
<!--COMPONENT blog_3 -->
<?php ob_start(); ?>
<div class=" bd-blog-3 <?php echo $this->pageclass_sfx; ?>" itemscope itemtype="
schema.org/Article
">
<?php $pageHeading = strlen($article->pageHeading) ? $component->pageHeading($article->pageHeading) : ''; ?>
<?php if ($pageHeading) : ?>
<h2 class=" bd-container-18 bd-tagstyles"><?php echo $pageHeading; ?></h2>
<?php endif; ?>
<div class=" bd-grid-6">
<div class="container-fluid">
<div class="separated-grid row">
<div class="separated-item-38 col-md-24 ">
<div class="bd-griditem-38">
<?php
$params = array();
if (strlen($article->title)) {
$params = $this->escape($article->title);
if (strlen($article->titleLink))
$params = $article->titleLink;
}
// Change the order of ""if"" statements to change the order of article metadata header items.
if (strlen($article->created)) {
$params[] = $article->createdDateInfo($article->created);
}
if (strlen($article->modified)) {
$params[] = $article->modifiedDateInfo($article->modified);
}
if (strlen($article->published)) {
$params[] = $article->publishedDateInfo($article->published);
}
if (strlen($article->author)) {
$params = $article->authorInfo($article->author, $article->authorLink);
}
if ($article->printIconVisible) {
$params = $article->printIconInfo();
}
if ($article->emailIconVisible) {
$params= $article->emailIconInfo();
}
if ($article->editIconVisible) {
$params = $article->editIconInfo();
}
if (strlen($article->hits)) {
$params = $article->hitsInfo($article->hits);
}
// Build article content
$content = '';
if ('above full article' === $article->paginationPosition) {
$params = $article->pagination();
}
if (!$article->introVisible)
$content .= $article->event('afterDisplayTitle');
$content .= $article->event('beforeDisplayContent');
if (strlen($article->toc))
$content .= $article->toc($article->toc);
if (strlen($article->text)) {
if (strlen($article->images))
$params = $article->images;
if ('above text' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->text($article->text);
if ('below text' === $article->paginationPosition) {
$params = $article->pagination();
}
if ($article->showLinks)
$content .= $this->loadTemplate('links');
}
if ($article->introVisible)
$content .= $article->intro($article->intro);
if (strlen($article->readmore)) {
$params = $article->readmore;
$params = $article->readmoreLink;
}
if ('below full article' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->event('afterDisplayContent');
$params = DesignerShortcodes::process($content);
// Change the order of ""if"" statements to change the order of article metadata footer items.
// Build tags
if (count(($article->tags)) > 0)
$params = $article->tags;
if (strlen($article->category)) {
$params = $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink);
}
echo renderTemplateFromIncludes('article_3', array($params));
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo ob_get_clean();
?>
<!--COMPONENT blog_3 /-->
<!--COMPONENT blog_7 -->
<?php ob_start(); ?>
<div class=" bd-blog-7 <?php echo $this->pageclass_sfx; ?>" itemscope itemtype="
schema.org/Article
">
<?php $pageHeading = strlen($article->pageHeading) ? $component->pageHeading($article->pageHeading) : ''; ?>
<?php if ($pageHeading) : ?>
<h2 class=" bd-container-24 bd-tagstyles"><?php echo $pageHeading; ?></h2>
<?php endif; ?>
<div class=" bd-grid-8">
<div class="container-fluid">
<div class="separated-grid row">
<div class="separated-item-12 col-md-24 ">
<div class="bd-griditem-12">
<?php
$params = array();
if (strlen($article->title)) {
$params = $this->escape($article->title);
if (strlen($article->titleLink))
$params = $article->titleLink;
}
// Change the order of ""if"" statements to change the order of article metadata header items.
if (strlen($article->created)) {
$params[] = $article->createdDateInfo($article->created);
}
if (strlen($article->modified)) {
$params[] = $article->modifiedDateInfo($article->modified);
}
if (strlen($article->published)) {
$params[] = $article->publishedDateInfo($article->published);
}
if (strlen($article->author)) {
$params = $article->authorInfo($article->author, $article->authorLink);
}
if ($article->printIconVisible) {
$params = $article->printIconInfo();
}
if ($article->emailIconVisible) {
$params= $article->emailIconInfo();
}
if ($article->editIconVisible) {
$params = $article->editIconInfo();
}
if (strlen($article->hits)) {
$params = $article->hitsInfo($article->hits);
}
// Build article content
$content = '';
if ('above full article' === $article->paginationPosition) {
$params = $article->pagination();
}
if (!$article->introVisible)
$content .= $article->event('afterDisplayTitle');
$content .= $article->event('beforeDisplayContent');
if (strlen($article->toc))
$content .= $article->toc($article->toc);
if (strlen($article->text)) {
if (strlen($article->images))
$params = $article->images;
if ('above text' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->text($article->text);
if ('below text' === $article->paginationPosition) {
$params = $article->pagination();
}
if ($article->showLinks)
$content .= $this->loadTemplate('links');
}
if ($article->introVisible)
$content .= $article->intro($article->intro);
if (strlen($article->readmore)) {
$params = $article->readmore;
$params = $article->readmoreLink;
}
if ('below full article' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->event('afterDisplayContent');
$params = DesignerShortcodes::process($content);
// Change the order of ""if"" statements to change the order of article metadata footer items.
// Build tags
if (count(($article->tags)) > 0)
$params = $article->tags;
if (strlen($article->category)) {
$params = $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink);
}
echo renderTemplateFromIncludes('article_5', array($params));
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo ob_get_clean();
?>
<!--COMPONENT blog_7 /-->
<!--COMPONENT blog_8 -->
<?php ob_start(); ?>
<div class=" bd-blog-8 <?php echo $this->pageclass_sfx; ?>" itemscope itemtype="
schema.org/Article
">
<?php $pageHeading = strlen($article->pageHeading) ? $component->pageHeading($article->pageHeading) : ''; ?>
<?php if ($pageHeading) : ?>
<h2 class=" bd-container-27 bd-tagstyles"><?php echo $pageHeading; ?></h2>
<?php endif; ?>
<div class=" bd-grid-9">
<div class="container-fluid">
<div class="separated-grid row">
<div class="separated-item-23 col-md-24 ">
<div class="bd-griditem-23">
<?php
$params = array();
if (strlen($article->title)) {
$params = $this->escape($article->title);
if (strlen($article->titleLink))
$params = $article->titleLink;
}
// Change the order of ""if"" statements to change the order of article metadata header items.
if (strlen($article->created)) {
$params[] = $article->createdDateInfo($article->created);
}
if (strlen($article->modified)) {
$params[] = $article->modifiedDateInfo($article->modified);
}
if (strlen($article->published)) {
$params[] = $article->publishedDateInfo($article->published);
}
if (strlen($article->author)) {
$params = $article->authorInfo($article->author, $article->authorLink);
}
if ($article->printIconVisible) {
$params = $article->printIconInfo();
}
if ($article->emailIconVisible) {
$params= $article->emailIconInfo();
}
if ($article->editIconVisible) {
$params = $article->editIconInfo();
}
if (strlen($article->hits)) {
$params = $article->hitsInfo($article->hits);
}
// Build article content
$content = '';
if ('above full article' === $article->paginationPosition) {
$params = $article->pagination();
}
if (!$article->introVisible)
$content .= $article->event('afterDisplayTitle');
$content .= $article->event('beforeDisplayContent');
if (strlen($article->toc))
$content .= $article->toc($article->toc);
if (strlen($article->text)) {
if (strlen($article->images))
$params = $article->images;
if ('above text' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->text($article->text);
if ('below text' === $article->paginationPosition) {
$params = $article->pagination();
}
if ($article->showLinks)
$content .= $this->loadTemplate('links');
}
if ($article->introVisible)
$content .= $article->intro($article->intro);
if (strlen($article->readmore)) {
$params = $article->readmore;
$params = $article->readmoreLink;
}
if ('below full article' === $article->paginationPosition) {
$params = $article->pagination();
}
$content .= $article->event('afterDisplayContent');
$params = DesignerShortcodes::process($content);
// Change the order of ""if"" statements to change the order of article metadata footer items.
// Build tags
if (count(($article->tags)) > 0)
$params = $article->tags;
if (strlen($article->category)) {
$params = $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink);
}
echo renderTemplateFromIncludes('article_6', array($params));
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
echo ob_get_clean();
?>
<!--COMPONENT blog_8 /-->[/PHP]