Developer forum

Forum » Development » get tag value

Reply

Hi,

We need to develop a simple custom module, that outputs some values based on the tag DWUserID
http://engage.dynamicweb-cms.com/Forum-5.aspx?PID=34&action=ShowThread&ThreadID=596
 

This feature is to be used in newsletters, so I just need some pointers on how to get the current value of DWUserID tag upon sending the newsletter (as a page), so that the module can get the custom fields values.

Best Regards,
Nuno


Replies

 
Reply

Hi,

Any ideas anyone? What I need to to know where to get the current UserId when a newsletter is being sent as a page, to get the custom newsletter fields.

Best Regards,
Nuno

 
Reply
Hi
 
Could you describe more detail (with execution steps in your custom module) your task?
 
Reply
Hello Nuno,

If I understand you correctly you have a custom module that outputs some data on the frontend. But this data should depend on the user who receives the corresponding page via "Newsletter, Extended" module.

If the above is correct then I think it's not possible to get the value for "DWUserID" tag from your custom module because the page is rendered before it will be sent to all recepients and not each time after the next recepient is selected (only Newsletter tags are rendered at this point).

- Pavel
 
Reply
Hi Pavel,

Does the same happen with the newsletter v3? But if the page is only rendered once, how do the newsletter tags get rendered? Does the module do it itself?

We really need to get the custom fields from a user, otherwise, we will ahve to build a custom one, and would like to avoid this.

Nuno
 
Reply
Hello Nuno,

Yes, you're right - the same goes for Newsletter V3 (newsletter is rendered only once, module-specific template tags are being set by the module afterwards).

Why don't you use the "Custom fileds" functionality provided by the module ? Or maybe the data that you want to output requires some preprocessing ?

Take a look at this section of the documentation:
http://manual.net.dynamicweb.dk/Dynamicweb-On-line-Manual/Modules/Newsletter,-Extended/Module-setup/Custom-fields.aspx

- Pavel
 
Reply
Hi Pavel,

That's exactly what we want to use, but I cannot use it in the newsletter. There are no tags  to get them, so what's the use? Just for record?

Basically we need a newsletter that will send a bunch of information to a list of subscribers, but it is imperative that a lot of custom fields are rendered.

The subscribers will be sincronized with a database and those fields need to be accessed in the newsletter. Any ideias?

Nuno

 

You must be logged in to post in the forum