Download the PHP package melisplatform/melis-demo-cms without Composer
On this page you can find all versions of the php package melisplatform/melis-demo-cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download melisplatform/melis-demo-cms
More information about melisplatform/melis-demo-cms
Files in melisplatform/melis-demo-cms
Package melis-demo-cms
Short Description Official Melis Platform Demo Site
License OSL-3.0
Homepage https://github.com/melisplatform/melis-demo-cms
Informations about the package melis-demo-cms
Melis Demo Cms
A demo site that provides examples on how to use the services of the Melis modules.
Getting Started
These instructions will get you a copy of the project up and running on your machine.
Vhost Configuration
MELIS_MODULE variable (identifies which site will be loaded as the front office for this domain).
We should set this variable with MelisDemoCms
Vhost should look like this:
Requirements
- composer/installers
- php 7
This will automatically be done when using composer.
Installing
Run the composer command:
Modules Used In The Site
- Melis Front
- Melis Engine
- Melis Cms
- Melis Cms Slider
- Melis Cms Prospects
- Melis Cms News
Services
-
MelisSiteConfigService
Provides services to retrieve the config for your sites.
File:/melis-front/src/Service/MelisSiteConfigService.php
MelisFrontSiteConfigListener
used to update the site's config on the regular config service by merging the config from the file and the one on the database.-
getSiteConfigByKey(key, section = 'sites', language = null)
This function retrieves a specific config by key.Parameter Type Description key String Key of the config. pageId Int Used determine the site id, name, and language and on where to get the config section String/Int The section on where to get the config or site Id language String Language on which to get the config To call the service.
To get a specific
key
of the current site and the language of the page with id 1But what if we wanted to get the key from another language of the current site? We can achieve this by defining the language on where to get the config.
We can also get a particular
key
from another site by using thesite Id
.There is also a different section apart from sites. Currently, we have two sections which are sites and allSites.
-
-
MelisSiteTranslationService
Provides services to translate text and list all site translations
File:/melis-front/src/Service/MelisSiteTranslationService.php
getText(translationKey, langId, siteId)
.
Parameter Type Description translationKey String Key of the translation. langId Int An identifier on which language to get the translation siteId Int An identifier on which site to get the translation To call the service.
To get a particular translation, You need to specify the translation key along with the lang id and site id.
- For SEO, URL Services, and Templating Plugins See Full documentation for Melis Front here
- For Page, and Tree System Services and Engine Plugins See Full documentation for Melis Engine here
- For Cms plugins (tags, basic page elements) and Services See Full documentation for Melis Cms here
- For Cms Slider Plugins and Services See Full documentation for Melis Cms Slider here
- For Cms News Plugins (news list, latest news, and details) and Services See Full documentation for Melis Cms News here
- For Cms Prospects Plugin (contact form) and Services See Full documentation for Melis Cms Prospects here
View Helpers
Melis Front View Helpers:
-
MelisSiteConfigHelper
This helper is used to get a specific config for a site.
File:/melis-front/src/View/Helper/MelisDragDropZoneHelper.php
Function:SiteConfig(key, sectiom = 'sites', language = null)
Parameter Type Description key String Key of the config. section String/Int The section on where to get the config or site Id language String Language on which to get the config To call the helper.
To get a
specific key
from the config for thecurrent site
.But what if we wanted to get the
key
from anotherlanguage
of thecurrent site
? We can achieve this by defining thelanguage
on where to get theconfig
.We can also get a particular
key
from another site by using thesite Id
.There is also a different
section
apart fromsites
. Currently, we have two sections which aresites
andallSites
. -
MelisSiteTranslation
This helper is used to get a specific translation for a site.
File:/melis-front/src/View/Helper/MelisSiteTranslationHelper.php
Function:getText(translationkey, langId, siteId)
Parameter Type Description translationKey String Key of the translation. langId Int An identifier on which language to get the translation siteId Int An identifier on which site to get the translation To call the helper method.
To get a particular translation, You need to specify the translation key along with the lang id and site id.
- For More Melis Front View Helpers See Full documentation for Melis Front here
Authors
- Melis Technology - www.melistechnology.com
See also the list of contributors who participated in this project.
License
This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details
All versions of melis-demo-cms with dependencies
melisplatform/melis-cms Version ^5.2
melisplatform/melis-cms-slider Version ^5.2
melisplatform/melis-cms-prospects Version ^5.2
melisplatform/melis-cms-news Version ^5.2
melisplatform/melis-cms-page-script-editor Version ^5.2