×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Not able to customize the template per component

Not able to customize the template per component 10 years 10 months ago #24593

  • kabir khanna
  • kabir khanna's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi,
I just installed CMandrill component on my Joomla3.2 installation which is also using the gantry framework. I then was able to create a global template, using Templates menu in CMandrill component, but when a click the drop down for "Component", I only see, "Global" and "Other". I am not seeing other components in this drop down and therefore not able to create different templates for different components. Please help.

Thanks
kabir...

Not able to customize the template per component 10 years 10 months ago #24608

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Kabir,
Please read the docs.
That is correct. You just need to select Other and then specify the class and function name. To find out what the class and function names are -> just trigger the action that sends a mail and look at the email in mandrill. It should have 2 tags - one with class_ and one with function_ -> the part after the underscore is what you need.

Regards,
DAniel
The following user(s) said Thank You: Stefan Basting

Not able to customize the template per component 10 years 6 months ago #26878

  • Cory Reid
  • Cory Reid's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1

Daniel Dimitrov wrote: Hey Kabir,
Please read the docs.
That is correct. You just need to select Other and then specify the class and function name. To find out what the class and function names are -> just trigger the action that sends a mail and look at the email in mandrill. It should have 2 tags - one with class_ and one with function_ -> the part after the underscore is what you need.

Regards,
DAniel


Hey Daniel,

In regards to this, I have Chronoforms v5 generating emails using the J! mailer and successfully getting styled with my global template. The emails it generates only have a function tag and not both a function and class tag. I have a template rule defined in CMandrill for the function name (the tag is function_eval so I just used eval) but it is not applying the proper template. Do emails need both a class and function for the template rules to catch?

Warmest Regards,
Cory

Not able to customize the template per component 10 years 6 months ago #26879

  • Cory Reid
  • Cory Reid's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 1
I solved my problem.

I was able to create a basic PHP class to generate and send my emails and now I get both tags on my messages.
Using both tags the template is correctly applied as it should be.

Thanks again for a great tool!

Not able to customize the template per component 10 years 6 months ago #26884

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
cool :)

Not able to customize the template per component 10 years 1 month ago #28799

  • Matt Bourne
  • Matt Bourne's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi I also use chrono 5 - could you share your code? Did you use your own php code rather than use the email action?
  • Page:
  • 1
Time to create page: 0.106 seconds