Closed (works as designed)
Project:
SunMailer Newsletter
Version:
6.x-1.6
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Aug 2010 at 14:16 UTC
Updated:
24 Aug 2010 at 02:04 UTC
Thx for the nice module. Works fine.
Is it possible to include more fields from the view that selects the content?
Been reading about hooks, is this the way to go?
If so, is there any documentation or are there examples?
Ideal would be that the fields selected in the view all appear in the xml.
Options for content are then unlimited.
Comments
Comment #1
mclaren commentedI have modified sunmailer-xml.inc like the one shown below. It now brings all view/CCK teasers in 'preview' mode. But, when I actually send the newsletter, no teasers appears in emails. something wrong with my code? Anybody?
Comment #2
Mike Wacker commentedIf you have any fields in your view, they will automatically be included in the XML. Check out the XML preview.
However, the XSL files that come with SunMailer only support the basic information for each node. Each node type is different, so the XSL can only use information common to each node type. It can't possibly predict how all current and future node types will be organized. Thus, you'll have to modify the XSL if you want to leverage content specific to a certain node type.
So long as you can expose whatever you need in the Views fields, you shouldn't need to change the code - you only need to change the XSL.