Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Dateiendungen bei singleSRC-Feldern dynamisch einschränken #7003

Closed
katgirl opened this issue May 15, 2014 · 8 comments
Closed

Dateiendungen bei singleSRC-Feldern dynamisch einschränken #7003

katgirl opened this issue May 15, 2014 · 8 comments
Labels
Milestone

Comments

@katgirl
Copy link

katgirl commented May 15, 2014

Legt man ein neues Content-Element vom Typ Text an und wählt ein Bild hinzufügen, wird nicht auf den Typ geprüft, so das man auch HTML-, CSS-, ... Dateien auswählen kann.

@leofeyer leofeyer added this to the 3.3.0 milestone May 15, 2014
@Aybee
Copy link
Contributor

Aybee commented May 15, 2014

Kann ich bestätigen. C3.2.9 und C3.3rc2. Getestet mit Typ Text und Typ Bild.

@aschempp
Copy link
Member

Das Feld "singleSRC" in der tl_content kennt keine Limitierung, da dasselbe Feld an anderen Stellen (z.B. Downloads) verwendet wird.

@leofeyer wäre hier ev. ein onload_callback wie bei den Galerien sinnvoll?

@leofeyer leofeyer added feature and removed defect labels May 19, 2014
@leofeyer leofeyer modified the milestones: 3.4.0, 3.3.0 May 19, 2014
@leofeyer leofeyer changed the title Content-Element Text Dateiendungen bei singleSRC-Feldern dynamisch einschränken May 19, 2014
@leofeyer
Copy link
Member

Hinzugefügt in 6940971.

@aschempp
Copy link
Member

Ever thought of third-party developers? This is not extendable at all, and you even removed the isDownloads flag

@leofeyer
Copy link
Member

Third-party developers can easily add their own load_callbacks?

and you even removed the isDownloads flag

What do you mean?

@aschempp
Copy link
Member

6940971#diff-fa3955a06a383a25d18b471d178ffba7L1590

You are no longer handling the gallery content element and setting isGallery etc.?

@leofeyer
Copy link
Member

Those are multiSRC flags, not singleSRC flags. They are therefore in the setMultiSrcFlags() callback (see line 1623).

@aschempp
Copy link
Member

uh, you're right, sorry about that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants