Quote from: kudykam at Oct 23, 2013, 07:08 PMWell I dont want to use base template (I deleted it already) I want to use my template (which also conatains *content placeholder), but it shows nothing...
Have you set 'h' or/and 'e' parameters in your link?
See 'virtuNewsletter.reader' snippet in about 58 line. Maybe you can't see anything, because you are redirecting to unauthorized page (which is not set properly)?
And to @goldsky:
I start use
vN (virtuNewsletter) about 2 days ago, and after MUCH debugging, checking etc. see, theres a lot of problems and shortcomings. I know that such a large system like yours is some hard to take care, but it should be compact. I really appreciate your work, and that i don't need to search for other systems, so i share my insights (and some questions):
1. If you write any system for more people, it is very important thing to update-to-date documentation (RTFM). If it is not possible then at least update the most important parts (like i.e. unsubscribe link or web reader link - i didn't know about 'h' and 'e' parameters, until look into snippet).
2. In your example about CRON:
php -q /home/xxx[absolute_path]xxx/public_html/assets/components/virtunewsletter/conn/web.php action=web/crons/queues/process site_id=modx12abc345678d90.12345678
parameters are given after spaces. It is proper way, but in this case, you can't use $_REQUEST or $_GET variables in connector file (web.php), or at least not only. If you passing parameters in that way, you need to use e.g. $argv (it should be also mentioned in RTFM)
further:
it is good idea to use only one method to retrive the values from URL parameters: $_GET or $_REQUEST. In
vN you used both
(i talked about the same parameters e.g. 'action' in different files).
3. I think that much better solution for email templates would be using chunks, not documents. That elements are edited very rarely. It could be simplify things.
4. You can also simplify the way in which messages are displayed on web. Just create document with template which will be used to display page on web, but with content intended to send.
vN can get only that content, and put it into e.g. prepared chunk with all styles and necessary links (unsubscribe, "web version" etc.)
Or you can think about that yourself - this is only my prompt
In the end: as I said, i really appreciate your dedication to this project and it is really useful so i try tu help in its development.
I greet
P.S.: eng. isn't my strong point, so sorry for possible mistakes