1. Create Categories
Category
Category-1
Category-2
Category-3
Category-4
2. Setup > Options > [8WR] XenPorta 2 (Portal) PRO
Articles per page: 16 (Category index)
3. Appearance > Styles > Style properties > [8WR] XenPorta 2 (Portal) PRO
Enable masonry grid
Masonry columns 2
Masonry columns (wide) 2
Masonry columns (medium) 1
4. Default article widget setting. It is not recommended that you change any of PHP files. File health check will detect unexpected content.
Edit /src/addons/EWR/Porta/Pub/Controller/Article.php
Find:
Code:$perPage = $this->options()->EWRporta_articles_perpage;
Replace with:
Code://$perPage = $this->options()->EWRporta_articles_perpage; $perPage = 4;
5. Appearance > Widgets
General layout
XenPorta > Articles list: Above (full)
Here's the default XenPorta Articles widget position (Setting Step 4)
XenPorta > Articles list: Below (full)
My index page settings:
XenPorta > Articles list: Above (full)
Features
Order: 1
XFMG: Media slider
Order: 2
HTML widget
Order: 3
XenPorta > Articles-1
Maximum entries:3
Category: Category-1
Order: 4
XFMG: Media slider (Latest_video)
Order: 5
HTML widget
Order: 6
Default XenPorta Articles widget
XenPorta > Articles list: Below (full)
HTML widget
Order: 1
XenPorta > Articles-2
Maximum entries: 3
Category: Category-2
Order: 2
HTML widget
Order: 3
XenPorta > Articles-3
Maximum entries: 2
Category: Category-3
Order: 4
Enable masonry grid
6. Article promotion
Categories: Add article to category
Exclude categiries 1,2 and 3 from article index.
The default XenPorta articles widget display articles from category-4 (Do not exclude them from article index)
All articles are multicategory, Category and one of Category(1,2,3,4)
Template: EWRporta_articles_index
Add:
<xf:css>
.porta-article-pager {
display: none;
}
.message-attribution {
display: none;
}
.block-footer {
display: none;
}
</xf:css>
My template EWRporta_articles_category
Code:<xf:css> .message-attribution { display: none; } .block-footer { display: none; } </xf:css> <xf:description>{$category.category_description}</xf:description> <xf:comment>XFMG Random media</xf:comment> <div> <xf:widget key="xfmg_random_slide" /> </div> <xf:comment> <div class="porta-articles-above-full"> <xf:widgetpos id="ewr_porta_articles_above_full" context-page="{$page}" context-category="{$category}" /> </div> <h3 class="block-minorHeader">{$category.category_name}</h3> <div class="porta-articles-above-split porta-widgets-split"> <xf:widgetpos id="ewr_porta_articles_above_split" context-page="{$page}" context-category="{$category}" /> </div> </xf:comment> <div> <center><h3 class="block-minorHeader">{$category.category_name}</h3></center> </div> <xf:macro template="EWRporta_articles_macros" name="articles_block" arg-link="ewr-porta/categories" arg-data="{$category}" arg-articles="{$articles}" arg-catlinks="{$catlinks}" arg-attachments="{$attachments}" arg-page="{$page}" arg-perPage="{$perPage}" arg-total="{$total}" /> <xf:comment> <div class="porta-articles-below-full"> <xf:widgetpos id="ewr_porta_articles_below_full" context-page="{$page}" context-category="{$category}" /> </div> <div class="porta-articles-below-split porta-widgets-split"> <xf:widgetpos id="ewr_porta_articles_below_split" context-page="{$page}" context-category="{$category}" /> </div> </xf:comment> <xf:widgetpos id="ewr_porta_articles_sidenav" context-page="{$page}" context-category="{$category}" position="sidenav" /> <xf:widgetpos id="ewr_porta_articles_sidebar" context-page="{$page}" context-category="{$category}" position="sidebar" />
I hope this will help you
Thanks man..