Following up on #1125842: Create a view mode for printing, we could use a view mode for emails too.

CommentFileSizeAuthor
#5 view_mode.png8.78 KBnancydru
#1 1973020.patch1.09 KBnancydru

Comments

nancydru’s picture

StatusFileSize
new1.09 KB

And here's the patch.

jcnventura’s picture

Status: Active » Needs work

And another for PDF? And another one for EPUB?

I'd be willing to do this, if only there would be a way to define these as 'chilren' view modes of the print view mode. Otherwise, configuring the module would be a nightmare..

nancydru’s picture

Without it, managing the displayed fields is a nightmare.

jcnventura’s picture

I think a suitable compromise would be to have those view modes be enabled via configuration. That way, the current 'simple' view modes work as they are, but in case someone needs the 'email', 'pdf' or 'epub' view modes they can simply enable them and configure them as they see fit.

nancydru’s picture

StatusFileSize
new8.78 KB

Here's how the Node-to-Word modules does it:
This is added to the "Display" tab in the content type.

jcnventura’s picture

I didn't know about the 'Node-to-word' module. That's clearly not the same 'Node-to-word' as in http://drupalcode.org/project/node_to_word.git . I find it funny that they actually don't export to Word, and not even RTF.. It's just HTML served as application/vnd.ms-word, which the browser will open in Word, and Word will convert HTML to Word. I was looking at http://htmltodocx.codeplex.com for doing that for real.

But yes, this would be the type of pick-your-view-mode that I had in mind.

nancydru’s picture

Yes, it's the same module. There is an issue that has a 7.x port.

I had never heard of HTMLDocx. I''m not sure I could figure out how to use it.