numero2/contao-mobilede-ads

Import of ads from mobile.de

0.0.4 2022-06-27 12:17 UTC

This package is auto-updated.

Last update: 2024-10-27 17:11:25 UTC


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