This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// So, I had a need to disable File browser that Assets comes with in frontend, | |
// and use simple file input | |
// Official docs are ok, but not complete | |
// http://docs.pixelandtonic.com/assets/templating/channel_form.html#using-a-file-input | |
// Lets say your fieldtype is called 'assets_test' | |
// This part is needed so we can 'reset' our field before the upload | |
{if '{assets_test:total_files}' > 0} | |
{assets_test} | |
<input type="hidden" name="assets_test[]" value="{file_id}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// Put this file in /third_party/postmaster/hooks/ | |
// We are using 'member_register_validate_members' hook | |
// https://ellislab.com/expressionengine/user-guide/development/extension_hooks/module/member_register/#member-register-validate-members | |
class Member_register_validate_members_postmaster_hook extends Base_hook { | |
protected $title = 'Member Register Validate Members'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Warning: this requieres latest (at this moment unpublished) version of Assets 2.5.1 addon | |
// So, I had a need to disable File browser that Assets comes with in frontend, | |
// and use simple file input in a Grid fieldtype | |
// Official docs are ok, but not complete for use in the Grid | |
// http://docs.pixelandtonic.com/assets/templating/channel_form.html#using-a-file-input | |
// Lets say your Grid fieldtype is called 'grid_field' | |
// and your Assets field is 'col_id_10' (you can check what ID is in DB [check grid table for that fieldtype]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from "@angular/core"; | |
import * as application from 'application'; | |
let TnsOneSignal = require('nativescript-onesignal').TnsOneSignal; | |
@Injectable() | |
export class NotificationService { | |
constructor() {} |