Skip to content

numero2/contao-mobilede-ads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contao mobile.de Ads Bundle

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 in description_enriched to html markup
  • numero2\MobileDeAdsBundle\Util\DataUtil::convertKwToPS($kw); will convert the kw to ps