Contentify / Contentify

Contentify is an esports CMS based on the PHP framework Laravel
http://contentify.org
MIT License
217 stars 83 forks source link

Pagination Issue #619

Open abhishek0306-innverse opened 4 years ago

abhishek0306-innverse commented 4 years ago

I want to add pagination on my page . Let me know how I can add pagination my view page. I have added 5 as a paginate(5) in news controller but how can i show pagination on my view file. pagination links are not coming in frontend.

Using Contentify version: 3.0

DrCha0z commented 4 years ago

If you have more than 5 news, the ad will be cut automatically (this is the pagination: 5) There is no side view, but there is the news archive for that.

abhishek0306-innverse commented 4 years ago

Thanks for your reply @DrCha0z . But how can I show the pagination on view page. Is there any method or code from which I can show the pagination link (1,2,3,4,5 .....) on my view file. Suppose if user wants to see the old news so he needs to click on pagination to see all the news exists on our website so how can he go because according to coding we are showing only 5 news on one page ...

DrCha0z commented 4 years ago

Hey, I don't have a solution at the moment. As far as I can see, the page numbering is already in the code. But this simply has no function. You can first insert a link in the "show_stream.blade.php".

<center>
<nav aria-label = "Something">
<ul class = "pagination pagination-sm">
<li class = "page-item"> <a class="page-link" href="/news"> More ... </a> </li>
</ul>
</nav>
</center>

Then at least you already have the link to the archive inside.

If there is a solution, I am also interested. ;)

DrCha0z commented 4 years ago

You can Checkout the Result here:

https://xeeders.de/

abhishek0306-innverse commented 4 years ago

Thank you so much @DrCha0z for your solution. I can definitely try this .. Thanks for your help again.

chriskonnertz commented 4 years ago

Hello,

well it depends, there are two layouts for the news overview page, a classic one and one that uses JavaScript for infinity scrolling, so you do not need to have pagination but can simply scroll down.

I'll check this out.

chriskonnertz commented 4 years ago

Update: Pagination seems to work fine in the classic view. So I am not sure what the problem is here... again, the default view that you probably see uses JS for infinite scrolling, therefore you do not need pagination.

You can see what I mean by infinite scrolling here :http://94.177.246.237/ Please scroll down, and news will be loaded automatically.

DrCha0z commented 4 years ago

@chriskonnertz

ich denke genau darum geht es ja. Das die Seite eben nicht unendlich Scrollbar ist. Sondern das sie nach einer Anzahl von News Gecabt werden soll. Sonst wird man ja irgendwann bis ans unendlich scrollen um das untere der Seite zu sehen.

abhishek0306-innverse commented 4 years ago

Thank you all for your kind help. I will definitely try this. Thanks again.