Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
"<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
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
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
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
Re: "<txp:image id='id' />":http://www.external.site not working?
Try this:
" ==<txp:image id="5" />== ":http://www.external.site
Offline
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
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
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
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
Re: "<txp:image id='id' />":http://www.external.site not working?
Look, Pete, no more Borneo bugs! :)
Offline