Skip to content

octobroid/oc-notify-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notification System for OctoberCMS Plugin

Usage

Notify::sendTo($recipient, [
    'from' => Auth::getUser(),
    'related' => $post,
    'template' => 'post.share',
    'data' => [
        'thread' => $thread->id,
    ],
]);

Template

Every notification should refer to template that can be edited dynamically.

content:

Your post about #{{ related.id }} is shared to {{ thread.name }} by {{ from.name }}.

properties:

[thread]
class = 'Foo\Forum\Models\Thread'

link_page: forum/thread

link_data:

slug = '{{ thread.slug }}'

About

Notification Engine for OctoberCMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published