Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-11-16 10:24:43

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

that was my initial thoughts about it… It would be great to have options for both

ie a form where we can have <txp:some_new_image_tag /><txp:image_caption />

And from there we can be calling the form from the teplates (for general images) or individual articles (for galleries with image categories)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2007-07-02 15:10:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

The upgrade to 405 was almost seamless but I was still disappointed to see that I had to edit the taghandlers again so as to enable the html in the caption field…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#15 2008-02-11 15:37:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

ditto for 4.0.6


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#16 2008-12-01 09:44:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

solved in 4.0.7!!!!


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#17 2008-12-01 11:06:16

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Give us back our caption!

Hi colak,

would you mind to share a little explanation on what has been changed? :D
Thanks!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#18 2008-12-01 14:52:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

Hi Julián,

There was a problem (with at least one of my sites) with taghandlers.php since 4.0.4. The $caption was used in the title and as I was using html and javascript functions within that field they were not parsed properly. 4.0.7 seems to have solved this problem.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#19 2008-12-01 15:06:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: Give us back our caption!

colak wrote:

as I was using html and javascript functions within that field they were not parsed properly. 4.0.7 seems to have solved this problem.

Is it perhaps because the contents of the image tag (among others) now have escape="html" as the default behaviour in 4.0.7?

Last edited by Bloke (2008-12-01 15:06:22)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#20 2008-12-01 16:17:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

Bloke wrote:

Is it perhaps because the contents of the image tag (among others) now have escape="html" as the default behaviour in 4.0.7?

yes:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#21 2008-12-01 17:32:48

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Give us back our caption!

having said thatI am happy with this, i still wish that there was an in built method in a tag form to call the caption rather than having it just as a title attribute…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#22 2008-12-01 18:41:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: Give us back our caption!

colak wrote:

i still wish that there was an in built method in a tag form to call the caption rather than having it just as a title attribute…

Does my tentative patch submission go some way towards giving what you want? If so, please feel free to test it, as it needs a lot of feedback from real people to see whether the tag balance is correct or whether the patch needs to encompass more (or less).

The patch may need updating to the latest SVN rev, but since all the tags in the patch are new except for a 3-line change in both <txp:image /> and <txp:thumbnail />, it’s fairly easy to apply to any rev with simple copy n paste.

I’d like to see something similar to that make its way into 4.0.8 and would prefer to get the functionality ironed out very soon, so any and all feedback is most welcome.

Last edited by Bloke (2008-12-01 18:41:56)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB