As I'm experimenting with getting plain text working, I find myself wishing I had a separate twig template for the HTML vs. plain text cases. Seems like something that could be solved via theme suggestions, right?

No immediate patch yet. Opening this one for discussion, first.

Comments

dww created an issue. See original summary.

john.oltman’s picture

I am all for a theme suggestion that would easily allow HTML vs plain text templates. Makes total sense to me.

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new1.08 KB

Something like this, then? Totally untested, and will probably only apply cleanly after committing the rest of my patches. ;)

dww’s picture

Missing PHPDoc.

dww’s picture

StatusFileSize
new1.18 KB

Now without syntax errors! ;) Actually tested this one. At least works for the format. I haven't also tried the view mode combo, but I assume since I got this far, that much should also work. Probably would be wise to test it before a release, though. ;)

Sorry for the noise!
-Derek

  • john.oltman committed 525b469 on 8.x-3.x authored by dww
    Issue #2971847 by dww: Add forward template suggestions for HTML vs....
john.oltman’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.