Skip to content

Commit

Permalink
Merge branch 'release/35.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Jun 14, 2024
2 parents c69afae + 430723c commit fcbd385
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 24 deletions.
11 changes: 7 additions & 4 deletions Documentation/Technical/Changelog/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Double check if you have cleared all caches after installing a new LUX version t

| Version | Date | State | TYPO3 | Description |
|------------|------------|----------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 35.4.0 | 2024-06-14 | Feature | `11.5 + 12.4` | Make formListening/fieldListening available for forms loaded via AJAX |
| 35.3.0 | 2024-05-27 | Feature | `11.5 + 12.4` | Show also first page visit and referrer in CSV downloads of lead list |
| 35.2.1 | 2024-05-16 | Bugfix | `11.5 + 12.4` | Fix lead search with space character in searchterm in lead list, small fix in API documentation |
| 35.2.0 | 2024-04-27 | Feature | `11.5 + 12.4` | Extend frontend JS for another callback function for adding text anywhere in the DOM |
Expand Down Expand Up @@ -90,10 +91,12 @@ Double check if you have cleared all caches after installing a new LUX version t
| 27.1.1 | 2023-02-17 | Bugfix | `11.5 + 12.4` | Fix "Property lastLogin must not be accessed before initialization" in FrontendUser model |
| 27.1.0 | 2023-02-15 | Bugfix | `11.5 + 12.4` | Updated disallowed mail provider list, Fixed PHP 8.2 issue with package whichbrowser/parser, small code cleanup |
| 27.0.0 !!! | 2023-02-12 | Task | `11.5 + 12.4` | Support TYPO3 11+12 and drop support for TYPO3 10. Add id to anonym names. Track referrer with UTM tracking. A/B testing with a cleanup function now. Make linklisteners selectable in backend again. |
| 26.8.0 | 2024-04-11 | Feature | `11.5 + 12.4` | Extend Lead CSV download with country, last visit and last download |
| 26.7.0 | 2024-03-19 | Feature | `11.5 + 12.4` | Remove all domains from referrer diagram where referrers are from local instance |
| 26.6.0 | 2024-03-18 | Feature | `11.5 + 12.4` | Add domain selection for Lead list, use imagegrabber fork to prevent problems while loading images from google search |
| 26.5.2 | 2024-01-12 | Bugfix | `11.5 + 12.4` | Fix module links on some TYPO3 10 installations |
| 26.9.1 | 2024-06-13 | Bugfix | `10.4 + 11.5` | Backport: Use latest pagevisit and latest log entry to show date of latest visit |
| 26.9.0 | 2024-05-27 | Feature | `10.4 + 11.5` | Show also first page visit and referrer in CSV downloads of lead list |
| 26.8.0 | 2024-04-11 | Feature | `10.4 + 11.5` | Extend Lead CSV download with country, last visit and last download |
| 26.7.0 | 2024-03-19 | Feature | `10.4 + 11.5` | Remove all domains from referrer diagram where referrers are from local instance |
| 26.6.0 | 2024-03-18 | Feature | `10.4 + 11.5` | Add domain selection for Lead list, use imagegrabber fork to prevent problems while loading images from google search |
| 26.5.2 | 2024-01-12 | Bugfix | `10.4 + 11.5` | Fix module links on some TYPO3 10 installations |
| 26.5.1 | 2023-06-27 | Bugfix | `10.4 + 11.5` | Added missing argument when instantiating the class |
| 26.5.0 | 2023-05-13 | Feature | `10.4 + 11.5` | Allow formFieldListening with "typo3/cms-form" by supporting `data-lux-form-identification="submitButton"` |
| 26.4.2 | 2023-02-07 | Bugfix | `10.4 + 11.5` | Make linklisteners selectable for editors again |
Expand Down
14 changes: 14 additions & 0 deletions Documentation/Technical/Identification/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ Example powermail form in frontend:
Example lead identification in dashboard:
<img src="../../../Documentation/Images/documentation_identification_fieldmapping_dashboard.png" width="800" />

**Note:** Re-Initialization for forms, loaded via AJAX can also be done with a script like:

```
const lux = LuxSingleton.getInstance();
lux.addFieldListeners();
```


#### 2. FormFieldMapping

Expand Down Expand Up @@ -270,6 +277,13 @@ Form in frontend:
Example lead identification in dashboard:
<img src="../../../Documentation/Images/documentation_identification_formmapping_dashboard.png" width="800" />

**Note:** Re-Initialization for forms, loaded via AJAX can also be done with a script like:

```
const lux = LuxSingleton.getInstance();
lux.addFormListeners();
```


#### 3. Email4link

Expand Down
36 changes: 18 additions & 18 deletions Resources/Private/Build/JavaScript/Frontend/Lux.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ function LuxMain() {
var track = function() {
if (identification.isIdentificatorSet()) {
pageRequest();
addFieldListeners();
addFormListeners();
that.addFieldListeners();
that.addFormListeners();
addDownloadListener();
addLinkListenerListener();
addRedirectListener();
Expand Down Expand Up @@ -691,38 +691,38 @@ function LuxMain() {
/**
* @returns {void}
*/
var addFieldListeners = function() {
var query = 'form:not([data-lux-form-identification]) input:not([data-lux-disable]):not([type="hidden"]):not([type="submit"]), ';
query += 'form:not([data-lux-form-identification]) textarea:not([data-lux-disable]), ';
query += 'form:not([data-lux-form-identification]) select:not([data-lux-disable]), ';
query += 'form:not([data-lux-form-identification]) radio:not([data-lux-disable]), ';
query += 'form:not([data-lux-form-identification]) check:not([data-lux-disable])';
var elements = document.querySelectorAll(query);
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
this.addFieldListeners = function() {
let query = 'form:not([data-lux-form-identification]):not([data-lux-form-initialized]) input:not([data-lux-disable]):not([type="hidden"]):not([type="submit"]), ';
query += 'form:not([data-lux-form-identification]):not([data-lux-form-initialized]) textarea:not([data-lux-disable]), ';
query += 'form:not([data-lux-form-identification]):not([data-lux-form-initialized]) select:not([data-lux-disable]), ';
query += 'form:not([data-lux-form-identification]):not([data-lux-form-initialized]) radio:not([data-lux-disable]), ';
query += 'form:not([data-lux-form-identification]):not([data-lux-form-initialized]) check:not([data-lux-disable])';
document.querySelectorAll(query).forEach((element) => {
// Skip every password field and check if this field is configured for listening in TypoScript
if (element.type !== 'password' && isFieldConfiguredInFieldMapping(element)) {
element.addEventListener('change', function() {
fieldListener(this);
element.addEventListener('change', (event) => {
fieldListener(event.target);
});
element.form.setAttribute('data-lux-form-initialized', 1);
}
}
});
};

/**
* @returns {void}
*/
var addFormListeners = function() {
var forms = document.querySelectorAll('form[data-lux-form-identification]');
forms.forEach(function(form) {
form.addEventListener('submit', function(event) {
this.addFormListeners = function() {
var forms = document.querySelectorAll('form[data-lux-form-identification]:not([data-lux-form-initialized])');
forms.forEach((form) => {
form.addEventListener('submit', (event) => {
sendFormValues(event.target);
delaySubmit(
event,
'formListening',
event.target.getAttribute('data-lux-form-identification') !== 'preventDefault'
);
});
form.setAttribute('data-lux-form-initialized', 1);
});
};

Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Lux.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'description' => 'Living User Experience - LUX - the Marketing Automation tool for TYPO3.
Turn your visitors to leads. Identification and profiling of your visitors within your TYPO3 website.',
'category' => 'plugin',
'version' => '35.3.0',
'version' => '35.4.0',
'author' => 'Alex Kellner',
'author_email' => '[email protected]',
'author_company' => 'in2code.de',
Expand Down

0 comments on commit fcbd385

Please sign in to comment.