- Configuration for Video Tutorial (eZPlatform 4-working with bundles and Multisite) at: https://www.youtube.com/playlist?list=PLjJ-Vvy1P3FuUikg6rvdAtXeJG00Ynh_z More infos:http://blog.webandapp-solution.de/ezplatform/
- Bundle source code available at https://bitbucket.org/Ramzi-Arfaoui/ezplatform-project-bundle/src
- See more eZPlatform console commands, Twig template helper and Content controller at https://gist.github.com/ramzi-arfaoui/797e56d25f203420ee1634db09c58a55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Multisite configuration with two different PageLayout Content Type Templates | |
ezpublish: | |
siteaccess: | |
list: | |
- siteaccess1_name | |
- siteaccess2_name | |
match: | |
Map\Host: | |
www.site1.de: siteaccess1_name | |
www.site2.de: siteaccess2_name |
- See also Configuration for Video Tutorial (eZPlatform 4-working with bundles and Multisite) at https://gist.github.com/ramzi-arfaoui/abbf0cdcfb3bf29c9a293e76b352d455
- Discover the eZPlatform Video tutorial at: https://www.youtube.com/playlist?list=PLjJ-Vvy1P3FuUikg6rvdAtXeJG00Ynh_z
- More on ezplatform commands at https://github.com/dspe/ez5_cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i -X POST http://site.ezplatform.com/api/ezp/v2/content/objects --data @content.xml -H 'Content-Type:application/vnd.ez.api.ContentCreate+xml' -H 'Accept:application/xml' --user admin:publish | |
#REST API Tested with ezplatform 1.5 (using RichTextField ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## nginx | |
Reference: doc/nginx/vhost.template within your ezplatform installation | |
## varnish4 | |
Reference: doc/varnish/vcl/varnish4.vcl within your ezplatform installation | |
more info https://github.com/ramzi-arfaoui/ezplatform/tree/master/doc | |
In this example: | |
* nginx is Listen on port 8081 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##PSR-0 | |
$ composer init | |
$ mkdir -p vendor/rar/form/src/Form/Controller | |
$ nano vendor/rar/form/src/Form/Controller/Fields.php | |
<?php | |
$ namespace Form\Controller; | |
class Fields |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* eZPlatform (1.7 >): delete specific contenttype location children (see ContentTypeIdentifier and change with yours ) | |
* run the script using : php app/console training:delete_locations PARENT-LOCATION-ID | |
*/ | |
namespace AppBundle\Command; | |
use eZ\Publish\API\Repository\Values\Content\LocationQuery; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
I hereby claim:
- I am arfaram on github.
- I am ramziarfaoui (https://keybase.io/ramziarfaoui) on keybase.
- I have a public key whose fingerprint is 26C5 87A1 4EEC 92A7 1B56 42E5 9328 D369 4020 3649
To claim this, I am signing this object:
This steps show you how to override the "ezgmaplocation_field" and using your own Google map API Key.This is generally the steps how to override an eZPublish5.x/eZPlatform standard FieldType template
- Define the block Template in ezplatform.yml. In this example the content_fields.html.twig is located in the app/Resources/view folder
- Override (copie/paste) the default template located in eZ/Bundle/EzPublishCoreBundle/Resources/views/content_fields.html.twig. We've added the global twig variable {{ gmap_key }} in the Google API URL
- Add your Google API KEY as a Twig global vailable in config.yml
You should activate 2 API in your google project so that the map works for frontend and backend as well Activate following google API:
//Best Practice user ID in parameters.yml
//@deprecated since 6.6 to be removed:
//$repository->setCurrentUser($repository->getUserService()->loadUserByLogin( 'admin' ));
//$repository->setCurrentUser( $repository->getUserService()->loadUser( 14 ) );
Use now:
$repository->getPermissionResolver()->setCurrentUserReference( $repository->getUserService()->loadUser( 14 ) );
OlderNewer