Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: <img> sometimes in a <p> tag ... sometimes not ... !?
jakob wrote #319174:
Hmm, this is what comes of taking over plugin orphans without being a pro. I’m not entirely sure why that’s happening. After making a backup of the
textpatterntable, sed_textile_upgrade simply runs every article through textile again. It doesn’t actually do anything extra of its own accord.My update switches it from the old pre tip v4.6 Textile method to the current method (in this changeset) and it is conceivable I have not specified the correct settings, but I think it is correct. I’ve simply used the regular
Textile->parsemethod (e.g. here and here) without setting any special options. When I look at the article saving routine in textpattern, it additionally sets the optionLitetofalse(e.g. here) but as far as I can tell that is already the default setting (here).If you want to try and see if you get better results by forcing ‘Lite’ to off, you could try altering lines 82 and 86 of the sed_textile_upgrade plugin code as follows (inserting
->setLite(false)):
L82: $set[] = "Body_html = '" . doSlash( $textile->setLite(false)->parse( $info['Body'] ) ) . "'";...You’ll probably need to first restore your backup textpattern table to be able to repeat the process on your original articles.
Wow, thanks for all the input, Jakob. I will keep this in mind for future use.
• Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
• MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
• JapaneseStreets.com – Japanese street fashion (mostly txp)
Offline