Skip to content
Discussion options

You must be logged in to vote

Well since not a single soul responded I just wrote my own. If anyone wants to do the same thing in the future for the newsletter plugin, code is below. I am not saying this is the 'correct way' to do it (as no one answered me) but it's a way.

articleSettings(){

		let container = document.createElement('div');
		container.id = 'mchn-article-settings-container';
		container.classList.add('mchn-display-none');
		
		const header = `<div class="gjs-traits-label">Article settings</div>`;
		const settings = [
			{ id: 'adds', label: 'Advertisements'},
			{ id: 'showAuthor', label: 'Show Author'},
			{ id: 'BreadsCrumbsdds', label: 'Breads Crumbs'},
			{ id: 'comments', label: 'Comments'},
			{…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by giltee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant