TYPO3 News Extension Pagionation doesn't work - typo3

I use the news extension in TYPO3 and so far it's almost fine.
The only problem I have is the pagination. If I click e.g. on the pagination page 2, the link get some extra string like &tx_news_pi1[%40widget_0][currentPage]=2 but the outcome is always the same like on the first page. So do I have to do something in the settings to get this working or does anyone of you have an idea where the mistake could be?
I looked up at github and google but couldn't find any helpful information for my problem which is kind of unbelievable...
Another thing is I would try to do an AJAX pagination when it's working. I saw the topic on the TYPO3 site (https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/Templates/AjaxBasedPagination/Index.html) and followed the instructions of installing typoscript_rendering, inserting the list plugin as content element, changed the template path and inserted the js.file. But the thing here is when I set the template path to the indexAjax.html I get the following error
Undeclared arguments passed to ViewHelper GeorgRinger\\News\\ViewHelpers\\Widget\\Ajax\\PaginateAdditionalParamsViewHelper: page
When I look in the AjaxPagination.js given by link above the variable ajaxUrl is always undefined, because it wants to grab the data which causes the error message above I think. Hopefully somebody of you can hint me to the right solution..

Related

google forms don't show up with php desktop

I'm looking to create an app with PHP Desktop (latest version) and for the Contact page I wanted to insert a simple Google form.
My problem is that, if I open this link in an external browser, it works as it should be, but using PHPDesktop, returns me a blank page.
I encounter the same issue in both scenario: using the link shown above or the iframe for embedded HTML.
Googling around, I found only one similar reference here, but as it looks my problem is different.
My error code is:
my code is inserted as hyperlink in the menu of my index.php page with this code:
<a class="button2 button1" href="https://docs.google.com/forms/d/e/1FAIpQLSdm7v9mzLeqENTjimhr1w54J-fvCuNJpWAn9O06JsQsmzp4nA/viewform?usp=sf_link" target="blank" >Contact</a>
Do you have any idea how can I solve this?

How to mention another user on Confluence through the REST API?

I am trying to insert a mention in a confluence page through the REST API.
I tried placing the [~xxxx] in the middle of the content but it doesn't seem to work. When I open the page I see [~xxxx] instead of a link to the mentioned user.
I placed that string in the body>storage>value
I have tried also with <ri:user ri:userkey="xxuserkeyxxx"/> but, in this case, I do not see anything on the page.
Any ideas?
Thanks a lot.
Found the reason why wasn't working, it needs to be:
<ac:link><ri:user ri:userkey="xxuserkeyxxx"/></ac:link>
I was missing the ac:link tag. After adding it, works fine. I wasn't able to find it on the official doc: https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html
You need to use a link with the content being the user's user key
<ac:link><ri:user ri:userkey="f081435773s808c3014357744847024c" /></ac:link>
If you ever need to figure out the correct syntax for storage format:
edit a page and, in this case, #mention someone
go to the "..." menu and View Storage Format to see the result.
ri:userkey is deprecated. Instead use account-id.
<ac:link><ri:user ri:account-id=<accountId> /></ac:link>

How can I get my extbase extension to parse ajax requests while using RealURL

First I apologize for the terrible question name.
I'm developing an extbase extension which will display records via AJAX.
When the AJAX request is sent using index.php=(number), like http://example.com/index.php=5?type=1234&etc..., the proper response is returned.
When the request is sent with a RealURL link, like http://example.com/about-us/some-page/?type=1234&etc..., the entire contents of /about-us/some-page/ are returned (without the records that were being requested).
To clarify a few things, the extension worked before I activated RealURL, and it returns the correct results with RealURL active, if I edit the request to not use the RealURL link.
It seems that RealURL is causing Typo3 to completely ignore the type parameter, as I've tried placing content directly inside my typoscript, where I define the pagetype, and it doesn't render.
I've also tried placing some extra "junk" parameters in from of "type" in the request, just to see if it was the first parameter being ignored, but that didn't work.
So, any ideas would be greatly appreciated.
EDIT
Our server administrator has changed the webserver rewrite rules, and now it works fine. That may have been the only issue from the beginning.

Facebook share ignores custom query string parameters

I try to share an URL that contains query parameter in FB.
Here is my share link
Sharing works but my custom query parameter is gone and replaced with facebook query parameters in the facebook timeline something like here
The same problem when FB.ui({ method: 'share',... is used.
It worked well on previous version of facebook sharing sharer.php but it's deprecated now and I have no idea how to make current share work.
We faced same problem. We instead used Feed Dialog that works fine. The irony is that if you read on facebook's developer's site Facebook is recommending us using Share Dialog in place of Feed dialog however, Share dialog does not work as expected.
Here is the link to get more information on Feed dialog
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.2
Personally i like Feed dialog more the share cause it gives you some additional properties to manage how dialog should appear
i assume you solved your problem in a different way already but i have found a solution for this. Just in case somebody else comes across this question.
Facebook strips the parameters only when it is more or less sure that the file is an php file.
So for http://example.com/?test=1
or http://example.com/index.php?test=1
the parameters are removed.
But if you make it look like a normal html file, it works:
http://example.com/whatever.htm?test=1
for example is posted with the parameters.
Of course you can use some simple mod_rewrite Rule to redirect the request to the original php file:
RewriteRule /whatever.htm(\?.*) /index.php%1
(rule is untested but should work hopefully)

Facebook Like button throwing Javascript errors

Recently I've been having troubles with displaying the like button on my homepage, no code was changed so I believe Facebook may be the culprit but I'm not 100% sure. Originally it was throwing "bootloader is undefined" errors in two places:
<script type="text/javascript">Bootloader.setResourceMap({"KhOUG":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v1\/yo\/r\/wFcdvtg8yWA.js"},"uBXoU":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v1\/yg\/r\/vnWtCAcBiXn.js"}});
And:
Bootloader.configurePage([]);
Both occur after the page querys the http:///www.facebook.com/plugins/like.php page.
But now it's throwing "bagofholding is undefined" error on:
function muffinize(d){var c='a';var b='d';var a=[c,b].join('');return d.replace(/muffin/g,a);}window.Util=window.Util||{warn:bagofholding,error:bagofholding,info:bagofholding,log:bagofholding,stack:bagofholding};if(typeof console=='undefined')console={log:bagofholding};
The Facebook Like button is implemented using the AddThis service but I checked all the lines of code and they seem fine. It doesn't seem like other sites are having this issue as well. All the errors are on Facebook's side.
It doesn't work here: http://importbible.com/2011/05/02/papercraft-skills-2012-audi-a7/
But works here: http://importbible.com/shop/shirts/group-buy/seventh-heaven-shirt/
The only thing I could think of that may cause issues is the HTML5 Boilerplate .htaccess file.
in my case my error was coming from having "share" buttons. The script for share buttons also defines "FB"... so the new "like" script and the old "share" script conflict. Once I removed the old script everything was fine. (However, "share", is better for my particular site...)
I seem to see the 'Bootloader is undefined' error when I set the href attribute of the fb like button to a non-existent page (a page that can't be accessed by the fb script file - such as the url on my dev machine / localhost).
After hunting around I found the answer, some of the meta data on my website was preventing the Like page to scrape my page. Using the Lint tool I was able to fix the errors on my page:
https://developers.facebook.com/tools/lint/