Hello,
I tried to use Description field for Global Mode edition plugin with html content.
Original text was simple link:
<a href="http://en.wikipedia.org/wiki/Vindolanda" target="_blank">Vindolanda</a>
Result looked like this:
<a href=\"http://en.wikipedia.org/wiki/Vindolanda\" target=\"_blank\">Vindolanda</a>
So, it seems to escape all quotes making the link unusable. Is there any way to prevent this?
Adding descriptions with the Properties Mass Update plugin works. However, it requires the text file creation, which is little bit cumbersome for such a simple operation.
Piwigo version: 2.7.1
PHP version: 5.4.30
Mikko
Offline
try this
<a href=http://en.wikipedia.org/wiki/Vindolanda target= blank>Vindolanda</a>
Offline
Wow, it works. Thanks. I have always thought that those quotes are mandatory part of the syntax.
This solves my special case, but the bug still remains for other uses of quotes.
Mikko
Last edited by syrja (2014-11-02 21:09:30)
Offline
sport wrote:
try this
Code:
<a href=http://en.wikipedia.org/wiki/Vindolanda target= blank>Vindolanda</a>
that's terrible ! never use this syntax !
@syrja
I guess you use [extension by ddtddt] Batch Manager, Photo Description
I notify the author
Offline
mistic100 wrote:
@syrja
I guess you use [extension by ddtddt] Batch Manager, Photo Description
I notify the author
Actually, I was using this: http://piwigo.org/ext/extension_view.php?eid=765
I tested that [extension by ddtddt] Batch Manager, Photo Description you mentioned and it worked correctly.
Mikko
Offline
mistic100 wrote:
sport wrote:
try this
Code:
<a href=http://en.wikipedia.org/wiki/Vindolanda target= blank>Vindolanda</a>that's terrible ! never use this syntax !
r
Why not?
Offline
missing quotes and _blank
Offline
sport wrote:
try this
Code:
<a href=http://en.wikipedia.org/wiki/Vindolanda target= blank>Vindolanda</a>
thank so much. It works very well. i always that these quotes are a required part of the syntax
Offline
are you serious ? yes the quotes are required
I just said that the syntax is terrible, it might work here but one day it won't and you won't understand why
follow the HTML rules, use quotes
use [extension by ddtddt] Batch Manager, Photo Description like syrja and it will accept quotes
Offline