Announcement

  •  » Extensions
  •  » Description field for Global Mode edition and html content

#1 2014-11-01 15:40:36

syrja
Member
2014-11-01
6

Description field for Global Mode edition and html content

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

 

#2 2014-11-01 23:01:47

sport
Member
2014-03-16
93

Re: Description field for Global Mode edition and html content

try this

Code:

<a href=http://en.wikipedia.org/wiki/Vindolanda target= blank>Vindolanda</a>

Offline

 

#3 2014-11-02 21:08:39

syrja
Member
2014-11-01
6

Re: Description field for Global Mode edition and html content

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

 

#4 2014-11-02 21:23:16

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Description field for Global Mode edition and html content

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

 

#5 2014-11-02 21:35:59

syrja
Member
2014-11-01
6

Re: Description field for Global Mode edition and html content

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

 

#6 2014-11-02 22:15:15

sport
Member
2014-03-16
93

Re: Description field for Global Mode edition and html content

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

 

#7 2014-11-02 22:22:39

flop25
Piwigo Team
2006-07-06
7037

Re: Description field for Global Mode edition and html content

missing quotes and _blank


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2014-11-03 14:40:21

Phong Luu
Member
2014-10-27
4

Re: Description field for Global Mode edition and html content

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

 

#9 2014-11-03 15:00:22

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Description field for Global Mode edition and html content

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

 
  •  » Extensions
  •  » Description field for Global Mode edition and html content

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact