Hi,

At the bottom of the foxnotify-comments page there is a suggestion on how to enable more than one subject line using foxnotify.

The suggestion is to set the following in config.php (copied from the page http://www.pmwiki.org/wiki/Cookbook/FoxNotify-Comments)

$name = PageVar($pagename, '$FullName');
if ($name=='SomeGroup.SomePageA')
$FoxNotifyTemplatePageFmt = ""$FoxNotifyListsGroup.FoxNotifyTemplatesA";
if ($name=='SomeGroup.SomePageB')
$FoxNotifyTemplatePageFmt = ""$FoxNotifyListsGroup.FoxNotifyTemplatesB";
include_once("$FarmD/cookbook/fox/foxnotify.php");

I have done this for our wiki as follows:

# FOX
    include_once("$FarmD/cookbook/fox/foxtemplates.php");
    include_once("$FarmD/cookbook/fox/fox.php");
    include_once("$FarmD/cookbook/fox/foxdelete.php");

        $EnableFoxNotifyHTMLEmail = true;
        $name = PageVar($pagename, '$FullName');
        if ($name=='France.TemplateDeNouvelleAdresse')
        $FoxNotifyTemplatePageFmt = "$FoxNotifyLists/FoxNotifyTemplatesBillTo";
    include_once("$FarmD/cookbook/fox/foxnotify.php");

    include_once("$FarmD/cookbook/fox/foxedit.php");

    include_once("$FarmD/cookbook/fox/Contacts.php");


What I am finding is that template isn't being detected (the email has no content) as a result
the subject line does not get altered - it stays set to whatever is in foxnotify.php.

I'm not sure if there is a typo in the suggestion above: i.e. ""$FoxNotifyListsGroup ......
I tried it with single " which produces the result I mentioned above, and with "" quotes around
$FoxNotifyListsGroup.FoxNotifyTemplatesA which gives me a nasty php error.

Any tips would be appreciated. I am using the latest version of Foxnotify.


Thanks

Graham



_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to