To enable the exclusion of tracking private files in Piwik, we need the link to private files in webforms te have an unique class to identify them.

Comments

JoshaHubbers created an issue. See original summary.

joshahubbers’s picture

StatusFileSize
new829 bytes
joshahubbers’s picture

Assigned: joshahubbers » Unassigned
Status: Active » Needs review
askibinski’s picture

Status: Needs review » Needs work

Comment needs to start with a capital and end with a dot. Otherwise looks good to me.

askibinski’s picture

Status: Needs work » Needs review
StatusFileSize
new830 bytes
askibinski’s picture

Status: Needs review » Needs work

Also, class needs to be set on preview link (visible after uploading a file by ajax).

joshahubbers’s picture

StatusFileSize
new1.26 KB

ef file check added to _dvg_media_file_types_file_link. This function is overwritten in normal page display, so the class will not be added there, but is added after the ajax file upload is done.

askibinski’s picture

Status: Needs work » Reviewed & tested by the community

Allright, looks good!

joshahubbers’s picture

StatusFileSize
new2.75 KB

Changed the patch. Now the link encrypted file is added alongside the link-file class. Piwik tracks the file anyway. With this patch the file is either with class encrypted file or class link-file.

CSS changed to duplicate styling of link-file to encrypted-file.

joshahubbers’s picture

Status: Reviewed & tested by the community » Needs review
ruudvanoijen’s picture

Status: Needs review » Needs work

The patch fails the drupal coding standards.

paulvandenburg’s picture

Status: Needs work » Needs review
StatusFileSize
new2.77 KB
new890 bytes

The coding standards issues are the if else formatting.
Fixed those.

askibinski’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Essentially the patch only adds a class which needs to be used by custom code and is safe to commit.

  • askibinski committed c60c262 on 7.x-1.x
    Issue #2899832 by JoshaHubbers: Add class to encrypted file link
    
askibinski’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.