Форумы / Cotonti / Support / Can't save [rel="xxx"] property in hyperlinks

Help me!Can't save [rel="xxx"] property in hyperlink

darkseeker
#1 12.03.2014 14:47

I tried to add rel="gallery" in hyperlinks.

For example:

<a rel="gallery" href="xxx">demo</a>

But [rel="gallery"] always disappeared after article was published.

It displayed like this:

<a href="xxx">demo</a>

Could you please help me to solve this problem?

Added 1 hours later:

It seems like a "html purifier" problem~

Отредактировано: darkseeker (12.03.2014 16:03, 10 лет назад)
Slaweally
#2 13.03.2014 22:14

<a rel="gallery" href="xxx">demo</a>

<a href="xxx" rel="gallery" >demo</a>

Herşey bitti...
darkseeker
#3 14.03.2014 13:26

It was siena 0.9.12 that time,problem solved after updating to 0.9.16

Macik
#4 14.03.2014 19:40

Added 1 hours later:

It seems like a "html purifier" problem~

Yes. It can be HTMLPurifier. To Allow use:

$config->set('Attr.AllowedRel', 'gallery1,gallery2,gallery3,gallery4');

See themes:

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F
darkseeker
#5 15.03.2014 01:58
#39282 Macik:

Added 1 hours later:

It seems like a "html purifier" problem~

Yes. It can be HTMLPurifier. To Allow use:

$config->set('Attr.AllowedRel', 'gallery1,gallery2,gallery3,gallery4');

See themes:

Many thanks!