Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-01-26 16:13:38

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

"<txp:image id='id' />":http://www.external.site not working?

I guess this was asked numerous times before (am a bit out of practice…), but

is there a way to insert an image into an article body using textile and a txp:image tag, like this

"<txp:image id='id' />":http://www.external.site 

??

I guess it must be easy.

Thanx in advance!

Last edited by jayrope (2015-01-26 16:14:26)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#2 2015-01-26 18:25:00

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

Re: "<txp:image id='id' />":http://www.external.site not working?

Hi jayrope

It needs double quotes around the id number "<txp:image id="id"/>":http://www.external.site


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

Offline

#3 2015-01-26 18:37:00

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

Re: "<txp:image id='id' />":http://www.external.site not working?

Thank you for the refreshment, Colak.
I had tried this code before (as well) and it shows the image surrounded by quotes and the link in clear text behind. Maybe it is a .htaccess issue?

Last edited by jayrope (2015-01-26 18:39:09)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#4 2015-01-26 22:43:54

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: "<txp:image id='id' />":http://www.external.site not working?

I don’t seem to get it together even with exclamation marks and the image tag, and it looks like a Textile issue. Janek, as this seems about the ease of use: Have you thought of trying smd_macro for assembling the code for the user?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2015-01-26 23:04:11

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: "<txp:image id='id' />":http://www.external.site not working?

This almost works (for some reason the square brackets are left over):

"[==<txp:image id="5" />==]":http://www.external.site

And this does work:

!/images/5.jpg!:http://www.external.site

TXP Builders – finely-crafted code, design and txp

Offline

#6 2015-01-27 10:04:03

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: "<txp:image id='id' />":http://www.external.site not working?

Try this:

" ==<txp:image id="5" />== ":http://www.external.site

Offline

#7 2015-01-27 10:20:17

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: "<txp:image id='id' />":http://www.external.site not working?

I am sure that if jakob and etc ever team up they’d be able to fix the entire world in about 10 lines of code.

Offline

#8 2015-01-27 10:30:39

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

Re: "<txp:image id='id' />":http://www.external.site not working?

@etc Holy smokes, I never realised Textile trimmed spaces inside the quotes of a URL. That’s diamond information, thanks! I wonder if it does that kind of thing elsewhere…


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

#9 2015-01-27 10:43:24

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: "<txp:image id='id' />":http://www.external.site not working?

gaekwad wrote #287788:

I am sure that if jakob and etc ever team up they’d be able to fix the entire world in about 10 lines of code.

If we only had access to its code repository…

Bloke wrote #287789:

@etc Holy smokes, I never realised Textile trimmed spaces inside the quotes of a URL. That’s diamond information, thanks! I wonder if it does that kind of thing elsewhere…

You are welcome, I’ve discovered it just ten minutes before you (credits @jakob)

Offline

#10 2015-01-27 11:01:51

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

Re: "<txp:image id='id' />":http://www.external.site not working?

sed s/neo/etc/ <matrix >fixed

:-)


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

#11 2015-01-27 12:11:25

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: "<txp:image id='id' />":http://www.external.site not working?

Look, Pete, no more Borneo bugs! :)

Offline

Board footer

Powered by FluxBB