problem with spans

problem with spans

Ulrike Albers-mit -
Antal besvarelser: 5
Particularly helpful Moodlers-ip assinga

Hallo,

I use multilang span, but now I have some problems that might be related to spans used for style: 

for example, the option "force download" doesn't work anymore (I saw this is a style realted to a span).

In a text, all languages got mixed up until I eliminated all other spans used for style (for example, I replaced the style by "strong")....

Could anybody help me with this triste ???

Thank you.........

Ulrike

Gennemsnitsbedømmelse: -
I svar til Ulrike Albers

Re: problem with spans

David Mudrák-mit -
Core developers-ip assinga Documentation writers-ip assinga Moodle HQ-ip assinga Particularly helpful Moodlers-ip assinga Peer reviewers-ip assinga Plugin developers-ip assinga Plugins guardians-ip assinga Testers-ip assinga Translators-ip assinga
IIRC, the Multilang filter does not support nested <span>'s. So you can't use <span> tags inside multilang <span> block trist Might this explain your problems?
I svar til David Mudrák

Re: problem with spans

Ulrike Albers-mit -
Particularly helpful Moodlers-ip assinga

Ok, yes of course it does...thank you !

But Moodle uses spans for all kind of things, so does this mean that there will be lots of functions and options that won't work ?

Do you think that if "force download" doesn't work, it is because it's using a span attribute ?

Thanks again if you have any answer !!!

Ulrike

I svar til Ulrike Albers

Re: problem with spans

David Mudrák-mit -
Core developers-ip assinga Documentation writers-ip assinga Moodle HQ-ip assinga Particularly helpful Moodlers-ip assinga Peer reviewers-ip assinga Plugin developers-ip assinga Plugins guardians-ip assinga Testers-ip assinga Translators-ip assinga
> does this mean that there will be lots of functions and options that won't work

I don't think so. Multilang filter applies on the created content only and the content is under your control (well, almost blinker)

> Do you think that if "force download" doesn't work, it is because it's using a span attribute ?

Hmm thoughtful I haven't checked how force download is implemented. If it just adds HTTP header "Content-Type: application/force-download" to the server reply (as it probably does), the HTML itself should not break it. So I guess your problem with force download does not relate to the issue with nested span's in Multilang filter. Does force download work if you disable Multilang filter? Does it work if you do not use nested <span>'s ?
I svar til David Mudrák

Re: problem with spans

Tim Hunt-mit -
Core developers-ip assinga Documentation writers-ip assinga Particularly helpful Moodlers-ip assinga Peer reviewers-ip assinga Plugin developers-ip assinga
There was a bug in 1.9.x that broke forcedownload. I fixed it at the end of last week, so tomorrows weekly build should have it working.