Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-24 23:15:40

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Textile vs. Textpattern tags for images

Which is better for use in articles? One thing I noticed, is that when a TXP site has been moved, all the IMG links are broken until I re-open-save all the articles. Would this not happen if I were using txp:image tags instead of textile? Anyone else have a preference?


Travel Atlas * Org | Start Somewhere

Offline

#2 2006-05-24 23:39:43

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Textile vs. Textpattern tags for images

Would this not happen if I were using txp:image tags instead of textile?

Assuming we’re talking about images managed through Txp’s image interface, yes, that’s correct.

Offline

#3 2006-05-24 23:54:25

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: Textile vs. Textpattern tags for images

So there is no reason/advantage to ever use textile image tags? (unless you wanted to change the ALT text separately or something like that…)


Travel Atlas * Org | Start Somewhere

Offline

#4 2006-05-25 00:04:11

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Textile vs. Textpattern tags for images

Not really, no. Textile is intended as a quick shorthand for HTML, not specialized for Textpattern in particular.

Offline

#5 2006-05-25 00:15:49

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: Textile vs. Textpattern tags for images

Thanks Mary!


Travel Atlas * Org | Start Somewhere

Offline

#6 2006-05-25 00:53:15

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Textile vs. Textpattern tags for images

The difference I’ve seen is that Texpattern tags do not show up in article preview, where Textile tags do.

But I like using Textpattern tags at times if I want to assign a class to them so text can wrap aound it.

Offline

#7 2006-07-24 20:23:04

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: Textile vs. Textpattern tags for images

Alright, I guess I’ve run into an issue using the TXP Image tag in place of Textile – there doesn’t appear to be an intuitive way to create a linkable image using <txp:image /> – or please correct me if i’m mistaken!? An intuitive way might be <txp:image link="etc" /> but it appears one has to wrap the <txp:image /> in XHTML. Any ideas? Thanks…


Travel Atlas * Org | Start Somewhere

Offline

#8 2006-07-24 22:29:15

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Textile vs. Textpattern tags for images

Linkable… to what? a “regular” url? or a thumbnail/popup?

Offline

#9 2006-07-24 22:41:27

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: Textile vs. Textpattern tags for images

Mary wrote:

Linkable… to what? a “regular” url? or a thumbnail/popup?

hi Mary! A regular URL. The Textile method of linking images is very intuitive:

1. A link = &#34;link text&#34;:url
2. An image = !img src!
3. A linked image = !img src!:url

TXP Image, not so much…

1. An image = < txp:image id=“x” />
2. A linked image = < a href=“url”>< txp:image id=“x” />< /a>


Travel Atlas * Org | Start Somewhere

Offline

Board footer

Powered by FluxBB