Need pagination for articles list on author contact page in joomla 3.10.x.
In case, when "Count materials view" as All and author have huge items (like 5000 or 50 000 for example), then for display page need lot time and server resource! Show All author materials consume a lot time and server sesource!
We how to some can make pagination in default_articles.php template?
Pagination for articles list on author contact page in joomla 3.10.x
Hello, Bro!
We have latest joomla 3.10.x
In materials settings we have knob "Author as link", "Show author materials" and "Count materials view" (5/10/20/etc/All)
Author materials links generate as list in template /components/com_contact/views/tmpl/contact/default_articles.php
<?php if ($this->params->get('show_articles')) : ?>
<div class="contact-articles">
<ul class="nav nav-tabs nav-stacked">
<?php foreach ($this->item->articles as $article) : ?>
<li>
<?php echo JHtml::_('link', JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language)), htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
but without pagination ;(
In case, when "Count materials view" as All and author have huge items (like 5000 or 50 000 for example), then for display page need lot time and server resource!
I have question: we how to some can make pagination in default_articles.php template?
Labels |
Added:
No Code Attached Yet
|
Joomla 3.x is no longer supported
No right answer! I ask other...
upd: in joomla 4, that supported, same situation - no have pagination for articles list on author contact page?
I have my doubts that this make so much sense. You will only get a long list of articles and if you have 50000 Articles for a user you need a different way of presenting the content to the visitor. Even with a pagination nobody with go thru 100 pages to find an article. You should think about categories or tags or a good search or whatever but not a pagination for the contact page.
I am closing this.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-27 12:12:04 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
Feature
|
Joomla 3.x is no longer supported