The idea is to add a block of jobs to the daily digest that is relevant to users based on settings in their profile. My first idea is to develop a plugin where I could access and modify the digest email and include the block that I need
Here is the endpoint, the idea is to grab the user location, and make a query passing it as parameters:
https://api.get.it/api/v1/listings/jobs/search/?limit=1&search=sales&city=Alexandria&state=VA
That is a representation of the job, the blue area already exists on the digest email, and we want to implement the job list (yellow area)
So far Im trying to implement these two ideas:
The first idea is to customize via user_notifications.digest.custom.html
:
- I know the
user_notifications.digest.custom.html
file can be used to modify the digest email in the UI. - I want to investigate if I can use a plugin to access a file of this type which I believe may be the best approach
The second idea, I noticed some siteās text uses āvariablesā
If I can create this type of variable like {jobtitle} and make it dynamically I could add this in the custom.html
Questions:
- You only see one plugin that impacts daily digest (list them out). Is anyone aware of any others? GitHub - pfaffman/discourse-add-to-summary: Add text to summary before and after title
- Is it possible to impact the digest, by appending a section to it, and have that be compatible with future versions of discourse
The goal of this work is to add a block of jobs (coming from API response) to the daily digest that is relevant to the user based on settings in their profile
Any suggestions or ideas are welcome. Thank you in advance!