Custom Content Element with fluid for TYPO3 6.2 - fluid

I like the way how to build custom content elements with fluid_styled_content under TYPO3 7.x
I would like to know how to do it with TYPO3 6.2.x
I'm not talking about to use DCE...
In TYPO3 7 you would do something like
lib.myElement < lib.fluidContent
I tried with fluid_content extension but I'm struggling that the lib.fluidContent does not exist in 6.2
I tried already to build lib.fluidContent by my own, based on how its done in TYPO3 7 - but without luck.
Does anybody did it successfully or found any tutorial for that?

Have you already tried the backport of fluid_styled_content for TYPO3 6.2? You can find it on TER and on Github. This should allow you to do nearly the same as in TYPO3 7. As you can see on Github, some features are missing, but Patrick is actively developing the extension. Give it a try ;)

Related

Symfony 6 - CAS Bundle

I am using Symfony 6 and I should use CAS bundle for my app because we use SSO system. So, can I install the following bundle while I use Symfony 6 because there is no CAS bundle for Symfony6:
https://github.com/ecphp/cas-bundle
I asked Symfony Community and I got recieved this message:
Unfortunately, I've never worked with CAS protocol before, so don't
use those bundles myself. But let me give you some hints. First of
all, I see that the bundle you linked https://github.com/ecphp/ca...
does not support Symfony 6 yet, though there's an issue about it:
https://github.com/ecphp/ca... - feel free to follow it to know when
that issue is closed. Also, if you have time - feel free to help with
upgrading that bundle and make it compatible with Symfony 6 and send a
PR - that may have a good side effect, because even if the bundle is
slow on reviewing/merging your PR - you will be able to use your
fork in your project while PR is not merged yet. Other options - you
may want to take a look at GitHub search:
https://github.com/search?o... - probably you will find that is still
maintained. If no luck - you may want to use low-level tools that are
used in those bundles to write the implementation yourself - take a
look at composer.json file to see what libs are used behind the scene
in those bundles that might help you. Or, another option - downgrade
your project to Symfony 5.4. Basically, Symfony 5.4 == 6.0, but in
Symfony 6.0 just dropped all the legacy code since 5.x version.
Though, it might work and you will be able to install that bundle, but
keep in mind that if the bundle is dead and nobody will add Symfony 6
support there - you won't be able to upgrade to the newer version at
some point.
Do you have any idea about this issue?
Thanks all :)
It seems there is a CAS bundle for Symfony 6.
Take a look to
https://packagist.org/packages/l3/cas-guard-bundle
https://packagist.org/packages/l3/cas-bundle

t3lib_div::_GP work in Typo3 6.2?

I use a new typo3 version 6.2, but i think don't work anymore.
$myVars = t3lib_div::_GP('tx_myextenson_pi1');
Is there a substitute for this ?
Thanks in advance!
In TYPO3 6.x t3lib_div is marked deprecated but still working (it's removed in 7.x finally) the same as many other well known - old fashioned classes in TYPO3 API!
You can/should use \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('foo') instead (GeneralUtility::_GET('foo') - with proper import).
Take a look into typo3/sysext/core/Migrations/Code/LegacyClassesForIde.php which is just some kind of bridge, between pre-7 and after-7 API of TYPO3.

MAMP Pro and PDO-dblib

For some days I've been using MAMP Pro 3.07 from http://www.mamp.info.
Great tool and all works fine.
But now I have the problem, that for a new project I need to connect to MSSQL.
I searched for a howto the last 3 hours in www, but canĀ“t find a working answer or am I to stupid?
Is there a possibility to install "PDO-dblib" on MAMP on OSX Yosemite?
Or can somebody explain me how I can do this?
Thanks in advance!
From PHP website:
PDO_DBLIB: This extension is not available anymore on Windows with PHP 5.3 or later.
I see MAMP allows you to use different versions of PHP, so if you choose php 5.1.6 it may work. There is also a comment there from a guy who wrote its own class for this purpose. I am adding you also the pecl repository for this PDODblib.
Apart of this I am recommending you to use the latest version of PHP and do not rely on maintained extensions. PDO, which comes now by default with PHP, allows you to connect to MSSQL databases and you can find documentation here and here.

Overriding Dojo version for a particular Xpages database

Apple's iOS 8 breaks certain tap functionality in versions of dojo prior to 1.9.4 (see Xpages mobile controls not working in iOS8
The current version of Dojo in Domino 9.0.1 FP2 is 1.9.2 but that does not fix the issue. You have to use at least 1.9.4.
I have downloaded 1.9.4 and placed it in the correct folder on our test server. But I cannot get things to work. I changed the folder name of dojo 1.9.4 to 1.4.0 as I only want to use this version for 2 dbs that are having the problem.
Question 1:
What line do I put in the xsp.properties file:
xsp.client.script.dojo.version = 1.4.0
xsp.client.script.dojo.path = / domjs / dojo-1.4.0
Question 2:
There are so many things to download when I go to the dojo download page. I downloaded the zip file and used that.
When I run code to test what version of dojo I have I get 1.9.4. But when I try to load my page, I get an error.
dojo._loaders: TypeError: dojo._loaders is undefined
Any help would be GREATLY appreciated.
You probably have the right dojo zip, this one: http://download.dojotoolkit.org/release-1.9.4/dojo-release-1.9.4.zip. As you say, unzip that to the dojo-1.9.4 folder in <server-install>\data\domino\js\, or name the folder 1.4.0 if you want to specify it for only a few apps.
You will indeed need to copy the IBM folder from the <server-install>\osgi\shared\eclipse\plugins\com.ibm.xsp.dojo_9.0.1.<date-stamp>\xsp.dojo.jar into your new 1.9.4 (or 1.4.0) dojo folder. Little chance of anything working without it. Copying the ibm folder from the 1.5.2 folder is a bad idea as that is old code, and you'd certainly have issues with it working with dojo 1.9.4. In Fix Pack 2, the ibm folder from the plugin was tested/designed to work with dojo 1.9.2 (the version in that jar), so it should play fairly nice with 1.9.4.
In your XPages app, in the xsp.properties, you should only need the line:
xsp.client.script.dojo.version = 1.9.4
Rebuild your app, restart the server etc, and you should be good to go.
DISCLAIMER: This is a work-around, not a supported solution by IBM. There may be unexpected issues using this approach. It's used at your own risk.
You commented already on that topic here so I think you tried this one? http://hasselba.ch/blog/?p=323
This is the SO thread: XPages mobile controls not working with iOS 8

Is there any working CMS extension for Spree 0.40.x (Rails 3)?

I've been trying to add a basic CMS to my new Spree 0.40.x but I'm no getting any success. Documentation seems bare empty.
I've tried every extension listed here but I couldn't install some of them, others I did installed them, but seems they're using rails 2 deprecated methods.
Does any of you have been able to add a CMS to Spree under Rails 3? I don't mind if i need to use an older version of Spree, I just need a basic CMS.
Thank you
Why exactly will you need CMS?
If you require it to create static pages with WYSWYG editor then you can use spree-static-content extension https://github.com/spree/spree_static_content