numero2 / contao-mobilede-ads
Import of ads from mobile.de
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- contao/core-bundle: ^4.9
- softark/creole: ^1.2
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
About
Imports ads from mobile.de. Currently this does not provide any backend or frontend modules to interact with.
System requirements
Installation
- Install via Contao Manager or Composer (
composer require numero2/contao-mobilede-ads
) - Run a database update via the Contao-Installtool or using the contao:migrate command.
Configuration
Please add your credentials in the global parameters.yml
:
parameters: ... mobile.ads_username: 'username' mobile.ads_password: 'password'
Usage
You can either start the import via System › Maintenance › Import ads from mobile.de
or the command for the Contao console contao:mobileads:import
.
At the start of the import all Ads in the Contao database will be set to published = ''
and all active ads found on mobile.de will then be published again.
Helper
Functions added to helper converting the data:
numero2\MobileDeAdsBundle\Util\DataUtil::wikitext2Html($text);
will convert the wikitext stored indescription_enriched
to html markupnumero2\MobileDeAdsBundle\Util\DataUtil::convertKwToPS($kw);
will convert the kw to ps