Skip to content

Commit 84fa4f0

Browse files
author
Xirdion
committed
Update README file
1 parent 9072328 commit 84fa4f0

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The contao jobposting bundle adds the ability to display and maintain job offers
66

77
- Compatible with Contao 4.9 and higher versions (PHP 8 Support)
88
- Job-Archives and Job-Categories
9-
- List- and Reader-Module to show the jobs in the Frontend
9+
- List- and Reader-Module to show the jobs in the frontend
10+
- Own content element to show a specific job in the frontend
1011
- Every job has its own unique link
1112
- JSON+LD is generated for its job
1213

@@ -21,3 +22,24 @@ $ composer require dreibein/contao-jobposting-bundle
2122

2223
- PHP: `>=7.4`
2324
- Contao: `^4.9`
25+
26+
## Besonderheiten
27+
Jobs werden in den Modulen und Content-Elementen nur über die \Contao\TemplateInheritance::insert() Funktion eingebunden.
28+
29+
**Job-Display:** (Content-Element)
30+
```php
31+
$this->insert('template_name', $this->job);
32+
```
33+
34+
**Job-Reader:**
35+
```php
36+
$this->insert('template_name', $this->job);
37+
```
38+
39+
**Job-List:**
40+
```php
41+
foreach ($this->jobs as $job) {
42+
$this->insert('template_name', $job);
43+
}
44+
```
45+

0 commit comments

Comments
 (0)