I install realurl extension in my website for TYPO3 7.6.15 but the URL for language don't function! For example:
this is in english: http://www.hotel-centrale.it/newsite/en/camere-auronzo-di-cadore/camera-economy/
must be: http://www.hotel-centrale.it/newsite/en/rooms-auronzo-di-cadore/economy-room/
Related
I have a fresh installation of Typo3 8.7, wanted to upgrade from 4.7.
In both I have installed the RealURL extension for displaying a human readable url.
Problem is in 8.7 the resulted url contains the full path slug name, compared with the 4.7 installation where it display the page ID (the desired output).
New site page url (same page):
https://new87site/tickets/incident-and-service-request/service-view/incidents-and-sr-service-view/
Old site url:
https://old47site/2147/
Is there any configuration I'm missing?
Thank you!
RealUrl has a configuration file. It is configured in the extension's settings (in TYPO3 v8 accessible via the extension manager). The default is typo3conf/realurl_conf.php.
If that file does not exist and the option "automatic configuration" is active, it will regenerate the file.
I don't know the setting to use page IDs as slugs, but on the old system this setting should be in there.
You can make changes to the file or (recommended) use a hook ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration']['yourExt']) to have your config merged with the auto-configuration.
What's the best practice to find a TYPO3 extension for my website? Where to look and how to find the best extension for my use case?
The main source for finding a TYPO3 extension is the TYPO3 Extension Repository (TER): https://extensions.typo3.org.
There you can search and filter extensions and see if they support your TYPO3 version.
If you are using TYPO3 in Composer Mode, another source is https://packagist.org/.
There you can search for TYPO3 extensions using https://packagist.org/?type=typo3-cms-extension.
Notice that the TER also displays how to install an extension package with Composer if an installation is supported this way:
I want to include PHP code in my TYPO3, I found php_page_content, I installed the extension that I found here .
The installation went fine, no error, then I cleared my cache.
After addind a PHP content in my page
Then I got a fatal error saying :
PHP Fatal error: require_once(): Failed opening required
'/var/www/clevvermail/typo3/sysext/cms/tslib/class.tslib_pibase.php'
(include_path='/var/www/my_typo3/typo3/contrib/pear/:.:/usr/share/php')
in
/var/www/my_typo3/typo3conf/ext/page_php_content/pi1/class.tx_pagephpcontent_pi1.php
on line 30
I checked and I found no class.tslib_pibase.php in my TYPO3!!! How can I manage this ?
PS: I tried to use the extension Page PHP Content Element but it didn't work for me, I install and I find no PHP script in the content list to include.
You can find the solution here
In your class.tx_pagephpcontent_pi1.php on line 30
You can replace this
require_once(PATH_tslib . 'class.tslib_pibase.php');
By
if (!class_exists('tslib_pibase')) require_once(PATH_tslib . 'class.tslib_pibase.php');
This works for both Typo3 4.x and 6.2
I think that the extension is outdated and no compatible with TYPO3 6.2.
It gives no error just because in the file ext_emconf.php there is no constraint about the CMS version (!)
About the other extension you cited: I was able to make it work with these steps (TYPO3 6.2.30:
Install Extension
TS Setup > edit whole template record > include static from extension > include "Page PHP Content Element
(pe_pagephpcontentelement)"
Create a Sysfolder (like "phpscripts")
go to "phpscripts" > list view > create new > "Page PHP Content Element > P H P Content"
insert some code (like the one you provided) and save
go to a page > create new content element > tab "Plugins > "General
plugin"
After you insert the element, edit it, tab "Plugin" > from the
"selected plugin" dropdown, select "Page PHP content"
Tab Behavior > Record storage page > select the sysfolder
"phpscripts"
Save and preview
I am sorry, but I was not able to figure out how to select a single record from the sysfolder :(
You can install the extension migration_core or the extension compatibility6.
migration_core contains a Migrations/Code/ folder with class alias mappers. Every reference to the class "tslib_pibase" will be automatically referred to "\TYPO3\CMS\Frontend\Plugin\AbstractPlugin::class". It is sufficient to have it installed. However compatibility6 is not recommended, because it also contains other changes which have drawbacks.
If you still have the same error message, then open the TYPO3 Install Tool first tab "Important actions".
Dump Autoload Information
[Create autoload information for extensions]
This (re-)dumps autoload information for all active third party extensions.
I installed two new extensions (formhandler & dix_urltool) in a new typo3 6.2.6 install. But in the backend when I click on the extension I'm getting an typo3 page error with the message "Page Not Found Reason: File "index.php" was not found (2)!"
Are these extensions need some manual setting up?
How to create a new extension in typo3 6?
Is the kickstarter extension compatible with typo3 6?
You can use the extension "extension_builder". It generates (skeletons for) extbase/fluid based extensions and is compatible with TYPO3 6.0 (Makes even use of namespaces in generated extensions, which were only introduced in 6.0).
If you want to build fluid/exbase extensions, you should read this book to get familiar with these extensions. In german it is also available as paperback.
I'm not sure the "kickstarter" extension still works, but its last update is a maintainance release to make it work in TYPO3 v4.6, so there is a good chance it does.
Q: How to create a new extension in typo3 6?
A: There are two ways to create a new extension in typo3 6.
The first way is described in this post: See accepted answer on this
page. It is a point and click user interface. You have to install the extension "extension_builder"
The second way is via command line. It is described here: "Generating a Provider extension".
Simple example for the second way of creating an extension:
Log into your typo3 v6.2 project
Install extension "builder"
Open a shell
cd to document root of your typo3 project
type in this command to create an extension with the extension key "test":
./typo3/cli_dispatch.phpsh extbase builder:providerextension \
--extension-key test --author "Your name your#email.tld" \
--pages 1 --content 1 --controllers 1 --git 1 --travis 1 --use-vhs 1
Fire up your php editor and go to path_to_your_typo3_project/typo3conf/ext/test and edit your brand new extension.
For more information visit https://fluidtypo3.org/documentation/templating-manual/templating/provider-extension/generating-extensions.html
Q: Is the kickstarter extension compatible with typo3 6?
A: No. But the "old" pi-based extensions, you create with the kickstarter will still run on typo3 6.