Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CiviProxy with Mosaico #19

Closed
pbatroff opened this issue Dec 4, 2017 · 1 comment
Closed

CiviProxy with Mosaico #19

pbatroff opened this issue Dec 4, 2017 · 1 comment
Labels
Milestone

Comments

@pbatroff
Copy link
Contributor

pbatroff commented Dec 4, 2017

If CiviProxy is used with Mosaico (2.x), the social network icons wont work out of the box, since they are shipped within the extension and the links wont be parsed/changed by CiviProxy. Thus the icons wont be shown correctly.

A good solution is to move the icons to civicrm/persist/, and replace the URL in the template. Below is an example:

<span data-ko-display="twVisible" data-ko-wrap="false">&nbsp;</span>
    <a data-ko-display="twVisible" href="" style="-ko-attr-href: @twUrl">
        <img src="https://example.com/sites/default/files/civicrm/persist/socialMedia/twitter_ok.png" alt="Twitter" border="0" class="socialIcon" />
    </a>
@bjendres bjendres added this to the 0.5 milestone Mar 1, 2018
@bjendres bjendres modified the milestones: 0.5, 0.6 Mar 1, 2018
@pbatroff
Copy link
Contributor Author

works better if a mosaico template directory is specified and moved to [civicrm-files]/persist/mosaico_tpl (see #37 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants