Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/numero2/contao-mobilede-ads
Imports ads from mobile.de
https://github.com/numero2/contao-mobilede-ads
contao4 mobile
Last synced: about 1 month ago
JSON representation
Imports ads from mobile.de
- Host: GitHub
- URL: https://github.com/numero2/contao-mobilede-ads
- Owner: numero2
- License: lgpl-3.0
- Created: 2021-11-23T11:46:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-27T12:20:29.000Z (over 2 years ago)
- Last Synced: 2024-05-01T09:44:23.353Z (9 months ago)
- Topics: contao4, mobile
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Contao mobile.de Ads Bundle
=======================[![](https://img.shields.io/packagist/v/numero2/contao-mobilede-ads.svg?style=flat-square)](https://packagist.org/packages/numero2/contao-mobilede-ads) [![](https://img.shields.io/badge/License-LGPL%20v3-blue.svg?style=flat-square)](http://www.gnu.org/licenses/lgpl-3.0)
About
--Imports ads from mobile.de.
Currently this does not provide any backend or frontend modules to interact with.System requirements
--* [Contao 4](https://github.com/contao/contao)
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](https://docs.contao.org/dev/reference/commands/) command.Configuration
--Please add your credentials in the global `parameters.yml`:
```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