Joomlamailer template problem (content container and background image)

More
13 Jul 2011 08:24 #1777 by necescity
Hey guys,

i've got some problems with a self made joomlamailer template, hope anyone you can help me because i couldn't find a solution so far.

1. JM reports an error saying it can't find the "content" container when it's not inside of repeater tags. If i put it inside the repeater tags it works, so it can't be a spelling mistake. The reason i don't want to use the repeater tags at all is that i only need one article and i want to seperate the title from the content (that means i want to place the title in a different place in the code than the content). Do you know this problem? how can i make it work?

2. Joomalmailer somehow refuses to display background images. The template was tested on multiple clients and browsers before, and the background images worked fine on all (including gmail). With the same code the bg images are not only not displayed in the preview, but also seem to be removed in total, so they don't display anymore if the email is sent out. bg images are very important for my template and can't be repalced by normal images. is there a way to use background images in joomlamailer? and if not, why, and what solution would you suggest?


Thanks alot for your help in advance,

sincerely,
Pascal Becker

Please Log in or Create an account to join the conversation.

More
13 Jul 2011 12:38 #1778 by pete
Hello Pascal,

1.) You can not use the content placeholder without its repeater tags. joomlamailer uses those tags to find the placeholder in the template. Without repeater tags it cant find it and throws an error.
What you could do is use the intro text editor for the title and the sidebar editor for the content. This way you can put those placeholders at different positions in your content and separate title from content.

2.) I need to look into this. How did you specify the background images? Css in the head, inline-css or background="" attributes? Can you send me the template? pete@freakedout.de

Kind regards,
Pete

Please Log in or Create an account to join the conversation.

More
14 Jul 2011 07:23 #1779 by necescity
Hello Pete,

first of all thanks a lot for your quick reply!

1.) Ok, good to know! From the tag description i thought you only need the repeater if you want to use multiple articles. So i'll just try to put the title in the into text, and leave out the title module inside the repeater (tried it, works :) ), since i need the sidebar for something else.

2.) i used to have inline-css at first (when i just set up the html and didn't make the template jet) but that doesn't work in gmail, so then i changed it to the background="" attributes.
I'll send you the template, thanks a ton for helping!

Regards,
Pascal

Please Log in or Create an account to join the conversation.

More
14 Jul 2011 14:38 #1782 by pete
Pascal, please edit the file /administrator/components/com_joomailermailchimpintegration/controllers/create.php

Add the following code at line 662, then scroll down and add the same code at line 1708:
Code:
$imagepath = ' background="'.JURI::root().'administrator/components/com_joomailermailchimpintegration/templates/'.$template_folder.'/'; $template = preg_replace('#(\s*)background=[\'"]?[../]*[\'"]?#i', $imagepath, $template);

This will fix the background images included via the background="" attribute. This fix will be applied to the next version (1.7.3).

Kind regards,
Pete

P.S. In your template you have a link like: <a href="[LIVE_SITE]" Than won't work and you need to replace [LIVE_SITE] with the actual URL to your site.

Please Log in or Create an account to join the conversation.

More
29 Jul 2011 10:05 #1834 by necescity
Hi Pete,

first of all thanks alot for your great support!
so, it took a while till i could make your changes due to some internal issues but so far everything you suggested seems to work just fine, so thanks a ton!

But now another issue came up, hope you have an idea what the problem might be:

when i select an article for the email template that was created in the beginning when we set up the new joomla version everything works out great! But when i select an article that has been just recently created it just doesn't show the article. so the rest displays correct, but the content field is just empty.
i compared working and non working articles to figure out differences but nothing wored so far.

any idea how i could make it work?

greetings, pascal

Please Log in or Create an account to join the conversation.

More
29 Jul 2011 17:36 #1835 by pete
Hello Pascal,

That sounds weird. There must be a difference between articles, which work and others that don't work. If you want you can send me a superadmin login to your site and I'll take a look at it. pete@freakedout.de

Kind regards,
Pete

Please Log in or Create an account to join the conversation.