Find controller and method in Typo3 from URL - typo3

I am new to Typo3. How to find out controller, method and parameters from url in Typo3? I am having following url
URL: localhost/index.php?id=3
Thanks in advance.

This URL do not contain informations about controller and/or action, just id - which is UID o page to display.
If something is displaying there, go to the page and see which plugin is inserted there.

Related

OctoberCMS Get URL to CMS page

In October CMS, you can easily create a link to a CMS page in a Twig template with reverse routing. For example:
Go to help page
will link to the CMS page with the filename help.htm, substituting the URL with the URL defined in that page.
However, for the life of me, I can't figure out how to get the URL to a CMS page in a component to create a redirect to it.
I tried:
return Redirect::to('help');
which simply redirects to /help URL, which isn't the correct URL, so I get a 404.
I also tried:
return Redirect::to(\Url::route('help'));
However this produces an error because it is not registered as a route.
The reason I can't just hard-code the URL is because I am using the Translate plugin, which means that I can have a different URL depending on the language. So for example, in English it would be /en/help, but in Spanish it would be /es/ayuda. Putting:
{{ 'help'|page }}
in my Twig files will automatically get the correct URL based on the current language.
Is this possible to do in a component or controller?
Within your component you can use controller's pageUrl method.
$this->controller->pageUrl(<file_name>, <params>);
according to your need, this should do the trick
return Redirect::to($this->controller->pageUrl('help'));
if any doubt please comment.

Pass reference id from url bar to other internal pages

I am compiling a lead generation landing page and, in the form I have inserted a hidden field which collect whatever is written in the url bar after
"?rel=".
This is done in order to track where the leads come from (Facebook ads, direct linking etc).
To be more clear if this is the url: www.mywebsite.com/form.html?rel=fbads
the hidden field will be fill with "fbads" and this is working.
In the landing page I have a link to another page with more details and in this webpage I have the same form.
My idea is to run campaings on the first page with the rel link, but then if the user clicks on the link and go to the detailed page (and then compile the form from there), I am losing the rel field.
How can I pass the rel field to the url of the second page?
Thanks
You may refer the this stackoverflow page. Once the HTTP GET request comes, traverse in HTTP headers in your controller and look for Referer field but it is not always set and the client can change the header value. May be using google analytics is the better option.
If you just want to know that whether if they came to your form page from your landing page or not, you may add fix HTTP URL parameter prior to HTTP redirect.
If you save your rel in a variable, you can add it on your link to detailed page, for example in case of =fbads just once variable is set up, add it: <a href="http://myDetailedPage.com/detailed/?=<?php $rel;?>"</a>

The title, link and description don't work

I've been reading guides and examples for a long time (hours) but I can't manage. I tried to use all html meta tag like title, description, and og:property. Also tried to use the link sharer and also to create a new blank page with just the info I want to share to facebook in order to test. Also I tried to generate an random url in php so to have always a different url variable (the url to share and also the url of the main page containing the script). I also grabbed (url linter) a lot of time the url to clean the cache of facebook. It always give me the title of the site domain as title or the url itself as the shared title and description. I don't know what to do.
The main web site is from joomla. In the code of index of joomla I put a php include if the url has the variable "articolo" id. This incuded php page has regulat head body etc. So maybe I facebook check the main meta of joomla first? So now I tried to open a popup with just the page for sharing. Look here: link
It's possible that the title is locked in, meaning that after X number of likes Facebook doesn't allow you to change it anymore. Can you give us an example URL you're having issues with?
EDIT
Ok, now the link you provided shows some very interesting output. http://modernolatina.it/wjs/index.php?option=com_content&view=article&id=96&Itemid=258&autore=6&articolo=6
First, you webserver, instead of sending back a 200 code, is sending back a 500 code.
Secondly the HTML your webserver is sending back has two HTML tags (Do a view source on the content returned)
Fix up those two issues and I think the linter will be happier with your page.
Test your page here:
http://developers.facebook.com/tools/debug

handle subpages inside facebook app (with one single tab)

My goal is that have a fb page app (only in one tab) and use it with linkable subpages inside it.
For example:
If I click on subpage link there would be a http or ajax request inside the iframe. Thats fine, i can do that.
BUT
in the solution I also want to implement these two features:
1.:
I want that page to be accessible directly from an url like:
http://facebook.com/pagename/app..blabla/subpage1
or
http://facebook.com/pagename/app..blabla&sk=535&subpage=1
or
http://facebook.com/pagename/app..blabla#subpage1
2.:
On subpage link click inside iframe I want the browser url to turn into something like mentioned in the 1. point. (even when using ajax - probably with a hash tag)
Is it possible?
If you look at the page tab tutorial http://developers.facebook.com/docs/appsonfacebook/pagetabs/ at the bottom of the page they describe how you can create the 'subpage' idea using the app_data parameter. So your links will look like http://www.facebook.com/YourPage?v=app_1234567890&app_data=any_string_here
For your second question, in the links on the page you would specify target="_top" in any links you have with the href being: http://www.facebook.com/YourPage?v=app_1234567890&app_data=subpage1. This will cause the entire page tab to load through Facebook and you'll get the signed_request and your app_data parameters.
You probably don't want your ajax to load through facebook, because you'll get the Facebook page back instead of json or whatever you are trying to load. Instead you'll just make ajax calls to your server and pass the parameters you need to, like app_data or whatever you want.

Redirection between pages in zend framework

how to redirect between pages..for eg.if i click on login link then it should be redirect on login page..
If your question is about:
Generating a url for page associated to your application, then I recommend checking out the Url view-helper.
Displaying a url, then I recommend checking out view-scripts and layouts.
Redirecting to a url - say, from within a controller, after successful login - then I recommend checking out the Redirector action helper.
I'm not really sure I understand your question....
If you want to create a link on a page to a controller / action, for example if your login script was in the controller users and the action was called login, you could put a link in the view script of a page by using the baseUrl:
Login