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

Template Override for Action Replaces Frontend Template #1

Closed
aljawaid opened this issue Oct 20, 2022 · 3 comments · Fixed by #2
Closed

Template Override for Action Replaces Frontend Template #1

aljawaid opened this issue Oct 20, 2022 · 3 comments · Fixed by #2
Assignees
Labels
help wanted Extra attention is needed

Comments

@aljawaid
Copy link
Owner

The template override in the plugin.php

$this->template->setTemplateOverride('task_comments/show', 'kanboardEmailHistory:task_comments/show');

conflicts with the task page (comments section). Struggling to understand how to code it in such a way that the front end is working as normal and only for the action, we use this new template.

@aljawaid aljawaid added the help wanted Extra attention is needed label Oct 20, 2022
@aljawaid aljawaid self-assigned this Oct 20, 2022
@aljawaid aljawaid linked a pull request Oct 20, 2022 that will close this issue
aljawaid added a commit that referenced this issue Oct 20, 2022
@creecros
Copy link
Collaborator

did you get it? I have a screaming headache right now, but I'll take a look when I'm feeling better. I won't leave you hanging.

@aljawaid
Copy link
Owner Author

@creecros I sorted it, thanks. Released the first working version. Seems fine so far, will monitor over a few cronjobs over coming days.

Slowly, I will try to duplicate the Task2PDF style to include the links/attachment list etc to the contents of the email.

@creecros
Copy link
Collaborator

creecros commented Oct 22, 2022

awesome, great job! if you get stuck, let me know.

FYI, don't take ques from Task2pdf. That plugin uses dompdf to create pdfs. unrelated to forming emails. Swiftmailer is included in the libraries for kanboard, so you'd want to study that. I don't actually know how to do this, never thought about it, nor have I ever looked at swiftmailer. easiest solution would be to include links, but if you want raw attachments, im sure it can be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants