Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

Dynamic PROGRAM_URL

How do I configure...

Dynamic PROGRAM_URL

Postby Kai » Thu Mar 11, 2010 2:32 am

Hi board,
is there any way to set the program_url as variable??
I want to use dadamail with a multisite-installation. For each domain there should be also a newsletter.
Now, it would be nice, if I could set the program-url in a dynamic way.
So opening http://www.domain1.com/cgi-bin/dada/mail.cgi should work as well as http//www.domain2.com/cgi-bin/dada/mail.cgi

I know, that I can set the program_url e.g. just to /cgi-bin/dada/mail.cgi, but than I have to search and replace all program_url-placeholders with domain.de/program_url - and this is not so user friendly ....

Any idea on this?
Kind regards

Kai
Kai
 
Posts: 29
Joined: Tue Mar 09, 2010 4:26 am

Re: Dynamic PROGRAM_URL

Postby justin » Fri Mar 12, 2010 10:21 pm

No.
User avatar
justin
 
Posts: 4573
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Re: Dynamic PROGRAM_URL

Postby Kai » Sat Mar 13, 2010 9:50 am

Hmm, ok. One more question: I recognized, that in template-files there is the website_url-variable. I think, this is set by the backlink. I tried to put it in my newsletter-template - but nothing appears. Is there a way to use this value also in Newsletter-templates or is there an other variable which could be used to store an text-string (url)??
Kai
 
Posts: 29
Joined: Tue Mar 09, 2010 4:26 am

Re: Dynamic PROGRAM_URL

Postby Marsha » Sat Mar 13, 2010 3:16 pm

Kai wrote:Hi board,
is there any way to set the program_url as variable??
I want to use dadamail with a multisite-installation. For each domain there should be also a newsletter.
...


Although it won't work the way you are suggesting you can easily use dada on multiple domains with newsletters for each. Just install dada on one domain and then build your subscription forms on each domain to access the main domain. When you set your backlinks and all the resulting screen will have a link back to the domain it came from. I guess you could go so far as to edit all the templates so they all look the same as the originating domain as well. Personally I do a similar thing. I have it serving multiple domains and multiple newsletters in this manner. Works fine.
Marsha
 
Posts: 15
Joined: Wed Jun 17, 2009 8:57 am

Re: Dynamic PROGRAM_URL

Postby Kai » Sun Mar 14, 2010 3:04 am

Hi Marsha,
thank you for your reply. In the moment, I use just /cgi-bin/dada/mail.cgi as programm URL. So, within dadamail itself, everything is fine (screens). My problem is on putting links in the email-template. There I need the way to fill in "individual" links, so that I can use the domain-url for formular access.
I know, that I can put the real url in the template. But it is a lot of work to do this for every newsletter. Therefore I would prefer to have a variable which is filled automatically (e.g. by the website_url-string).

Kind regards

Kai
Kai
 
Posts: 29
Joined: Tue Mar 09, 2010 4:26 am

Re: Dynamic PROGRAM_URL

Postby justin » Sun Mar 14, 2010 4:20 pm

: I recognized, that in template-files there is the website_url-variable. I think, this is set by the backlink. I tried to put it in my newsletter-template - but nothing appears.


They may be used - try:

Code: Select all
<!-- tmpl_var list_settings.website_url -->


and,

Code: Select all
<!-- tmpl_var list_settings.website_name -->
User avatar
justin
 
Posts: 4573
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO

Solved: Dynamic PROGRAM_URL

Postby Kai » Tue Mar 16, 2010 12:13 pm

Hi Justin,
this works. Not in the screen-templates, but in the email-template.
So, I set up my program-URL to the relativ path
Code: Select all
/cgin-bin/dada/mail.cgi

which works fine for the dadamail-user-interface (screens).

For displaying correct paths/URLs in sent emails, I set up only the email-template and putted
Code: Select all
<!-- tmpl_var list_settings.website_url -->
in front of each
Code: Select all
<!-- tmpl_var PROGRAM_URL -->


For me - a great solution now ;-)
Many thanks

Kai
Kai
 
Posts: 29
Joined: Tue Mar 09, 2010 4:26 am


Return to Configuring Dada Mail

Who is online

Users browsing this forum: No registered users and 0 guests

Loading