How to display same express entry list with two styles in two pages?
Permalink
Hello,
How to display same express entry list with two styles in two pages?
Now I change the code in concrete\blocks\express_entry_list\view.php
<?php foreach ($item->getColumns() as $column) {
if ($controller->linkThisColumn($column)) { ?>
<div>
<a href="<?=URL::to($detailPage, 'view_express_entity', $item->getEntry()->getId())?>"><div class="product-img">
<?php
$photoFileObject = $item->getEntry()->getProduct_img();
if (is_object($photoFileObject)) {
$photoFileObjectVersion = $photoFileObject->getVersion();
$photoRelativePath = $photoFileObjectVersion->getRelativePath();
} ?>
<img src="<?php echo $photoRelativePath; ?>">
</div></a>
</div>
<?php
}
else {?>
<div class="name-text">Product Name : <?php echo $item->getEntry()->getProduct_name(); ?></div>
<div class="content-text">Content: <?php echo $item->getEntry()->getProduct_content(); ?></div>
<?php
}
?>
<?php
}
How to display same express entry list with two styles in two pages?
Now I change the code in concrete\blocks\express_entry_list\view.php
<?php foreach ($item->getColumns() as $column) {
if ($controller->linkThisColumn($column)) { ?>
<div>
<a href="<?=URL::to($detailPage, 'view_express_entity', $item->getEntry()->getId())?>"><div class="product-img">
<?php
$photoFileObject = $item->getEntry()->getProduct_img();
if (is_object($photoFileObject)) {
$photoFileObjectVersion = $photoFileObject->getVersion();
$photoRelativePath = $photoFileObjectVersion->getRelativePath();
} ?>
<img src="<?php echo $photoRelativePath; ?>">
</div></a>
</div>
<?php
}
else {?>
<div class="name-text">Product Name : <?php echo $item->getEntry()->getProduct_name(); ?></div>
<div class="content-text">Content: <?php echo $item->getEntry()->getProduct_content(); ?></div>
<?php
}
?>
<?php
}
Hi Cahueya,
Thanks for reply.
Could you explain me in detail(step by step) ?
Thanks for reply.
Could you explain me in detail(step by step) ?
Thank you,
I understanded what you meant.
click Express entry list block -> design & custom template -> gear icon -> select you_template at custom template
I understanded what you meant.
click Express entry list block -> design & custom template -> gear icon -> select you_template at custom template
if you change the file at this path, all express lists will be styled in that way.
You need to copy the view.php and view.css over to
/application/blocks/express_entry_list/template/your_template/
and change them there. After that you can select this custom template from the dialog box properties box of the express entry list (design) and the style should be applied.