What file builds the pagination URL for Joomla Components? - joomla

Basically I have created a new view that shows only the puppies in list form and nothing else. Everything else is working fine except parts of the pagination.
So there are 40 puppies in this category. With 20 showing per page it shows 2 pages and works correctly. With 5 per page it shows 8 pages but doesn't work correct. When I hover over the first four page links it still shows the href to page 1 and the last four page links show href to page 2.
Here is the original / first page:
http://americasfavoritepuppybreeders.com/puppies/breed/labrador.html?tmpl=component&view=microsite
Clicking on Page 2 links goes here:
http://americasfavoritepuppybreeders.com/puppies/breed/labrador/page-1.html?tmpl=component
If I manually type in the URL that should be there, it still shows the puppies from the first page:
http://americasfavoritepuppybreeders.com/puppies/breed/labrador/page-2.html?view=microsite&tmpl=component
I need to keep the view=microsite & tmpl=component on the end of the URL.
Not sure exactly what code I should include for anyone to diagnose so please ask and I will post.
I've been working on this for 2 1/2 days now devoting my entire days to this... if anyone could help that would be so much appreciated! Thanks.

You can try create the custom template for pagination (pagination.php). Example you can find in /administrator/templates/bluestork/html/pagination.php, So, first step, in your temmplate you will create file /templates/{$your_template}/html/pagination.php. Second step, you can try use submitform() and <input type="hidden" name="view" value="microsite" /><input type="hidden" name="tmpl" value="component" /> or adjust link in pagination how you want.

Related

How to do page numbering in footer htmls with wkhtmltopdf?

i m using snappypdf and i managed to add an html footer to my file with this code in my Laravel controller:
->setOption('footer-html', view('front.mail_templates.layouts.emailFooter'))->setOption('margin-bottom',17)
but now i want to add page numbering to it, and after looking i found this solution:
->setOption('footer-right', "Page [page] of [toPage]")
The problem is i want these two to appear in my pdf but i can't make them work together they work separately but if together only html footer show and page numbering is invisible , I hovered over an empty space by chance and after copying and pasting it elsewhere, i found out it was the page number printed transparently. so is it possible to make them apear both in my footer? or any other suggestions?
EDIT
here is my footer html code :
every thing worked fine untill i added the javascript code, now it generates the following error : he exit status code '-1073741819' says something went wrong

Why is my custom paginator not loading results as it should?

In my last post I was asking how to let the user decide on pagination numbers. I thought I had figured it out, but now it appears I messed something up, as the pagination seems to work but as soon as you go to the next page, it's blank and the number of pages is set to 1.
importeren.blade.php page (this is where the data of the imported file(s) is shown). This also has the pagination links for Laravel, I feel the error could be within there but I am not 100% sure.
DataController index method that loads the amount of pages as specified by the user:
Here is a short clip displaying what happens once I enter the results for the amount of records to be displayed per page.
I do not know what I am missing, but if anyone could help out that'd be amazing.
You should append your parameter to each pagination link.
To do so you can use {{$datas->appends(['paginate_number' => request('paginate_number')])->links()}}
I will suggest to change method="POST" to method="GET" in the form.
First try as a static like this
$datas = Data::paginate(10);
If it works then you have to change $request->input('paginate_number')

Facebook comment using ajax/django site

I have just one trouble adding fb comments box in my site. I use kust one url and read the content of the site using js. I put in the head the init of my fb app but I have three post in the main page and I want one comment box for every post. To load the comments of my post I use ((myurl)){{post.id}} to make unique the comment box. This url dosen't exist. But show me up difference comment for every. But don't let me moderate.. I mean dont show the moderation tool. But if i change the href of the post to my url real. Show me the noderstion tool but the same comments in every posts. Any idea???
The page is by ajax bwcause is a radio station and need to listwn the station y all contwnt. There is any way to assign thw url "manualy" in thw api of fb?

Magento Listings error

Hello i am having an error in my magento webshop. On certain grouped products. There should be a div class listing for every row. But on some grouped product pages the listing for the first row goes wrong. Which then results in the whole page going wrong. When i check the page source. I see that the second row has been put inside the first row. For an example http://msk.clicksite.nl/pleisters-en-antidruk/anti-druk-middelen?p=1. The strange thing is if you go to page 2 the error is gone.
I hope someone has experienced this problem or knows what is going wrong.
Thanks in advance.
The problem is in your product description. You have an open tag that's messing your design up.
<div class="product-content">
<ul><li>Zelfklevend beschermpleister 2 mm.</li> <li>Ook verkrijgbaar als fleecy foam 5 mm.</...
</div>
To fix it, go into your product description and remove the unordered list formatting <ul><li>. A permanent solution would be to go to your template and edit the code that's truncating the description. Strip all of the html from it and you should be all set. Try /app/design/frontend/YOUR_PACKAGE/YOUR_THEME/catalog/product/list.phtml

Paginating a long list of checkboxes in Magento

it would be awesome if someone could help me with this - I've already spent more than a day on it. :(
In a phtml file in Magento, I'm displaying a long list of products with a checkbox next to each. I've already added some code to paginate this list. The problem is, when I move to say page 2, I need to 'remember' which boxes were selected in page 1, and select them when I move back to page 1. I know how to use javascript to detect if a checkbox is checked or not. I was planning to save an array of selected boxes in the magento session - adding to it when more boxes are checked and deleting when boxes are unchecked. But my session-changing code is PHP, and my checkbox-detector is javascript. I know I can't call my session-changing function from javascript - I've been told that I would need AJAX to do this. I don't know any AJAX at all. Is there any other way to do this?
I'd be happy to post relevant snippets of my code if anyone can help me. Thanks!
UPDATE:
Okay, so I decided to use AJAX after all, and I've added a lot of AJAX code already. The problem is, it's not working. Btw, I'm not using jQuery. When I write this in Magento:
xmlhttp.open("POST", 'adjust_session.php', true); xmlhttp.send(params);
exactly where do I need to put my adjust_session.php file? It's not working if I put it in the same folder as my phtml file (where I'm calling the open function).
Thanks!
How are you actually doing the pagination? If you have to make a round-trip to the server for the paginated data anyway, send a list of checked/unchecked with it and toggle in the session. Then, when rendering the new page, either check the boxes in the HTML directly, or just pass a list of currently checked boxes in as JS and parse it on the response.
Alternatively, if you are doing everything on one page (and using AJAX for pagination already), you could also hold onto an array in JS and recheck the boxes after you render them.
Hope that helps!
Thanks,
Joe

Resources