Skip to content

Commit

Permalink
remove image from detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidpeywasti committed Jun 7, 2019
1 parent 72b614b commit 436c2f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

$GLOBALS['TL_DCA']['tl_module']['palettes']['product_list'] = '{title_legend},name,headline,type;{catalog_legend},product_catalogs,product_categories,product_featured,product_detailModule,product_sortBy,numberOfItems,perPage,skipFirst;{template_legend},product_metaFields,customTpl;{product_legend},product_template,imgSize,product_list_Class,product_Class;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
$GLOBALS['TL_DCA']['tl_module']['palettes']['product_detail'] = '{title_legend},name,headline,type;{catalog_legend},product_catalogs;{template_legend},product_metaFields,customTpl;{product_legend},product_template,imgSize,fullsize;{related_legend},related_show,related_template,related_imgSize,product_list_Class,related_Class;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
$GLOBALS['TL_DCA']['tl_module']['palettes']['product_detail'] = '{title_legend},name,headline,type;{catalog_legend},product_catalogs;{template_legend},product_metaFields,customTpl;{product_legend},product_template,imgSize;{related_legend},related_show,related_template,related_imgSize,product_list_Class,related_Class;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';

/**
* Add fields to tl_module
Expand Down
13 changes: 4 additions & 9 deletions src/templates/product/product_full.html5
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,13 @@
</div>

<?php endif; ?>

<div class="column_2">
<div class="description" itemprop="description">
<?= $this->summary; ?>
</div>
<?php if ($this->addImage): ?>
<?php $this->insert('image', $this->arrData); ?>
<?php endif; ?>

<div class="summary" itemprop="description">
<?= $this->summary; ?>
</div>

<?php if ($this->text): ?>
<div class="more_description">
<div class="description">
<?= $this->text; ?>
</div>
<?php endif; ?>
Expand Down

0 comments on commit 436c2f6

Please sign in to comment.