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

Improve HelpBoxes/ Upsells in main admin #2769

Open
Shelob9 opened this issue Oct 17, 2018 · 0 comments
Open

Improve HelpBoxes/ Upsells in main admin #2769

Shelob9 opened this issue Oct 17, 2018 · 0 comments
Assignees
Labels
enhancement New feature
Milestone

Comments

@Shelob9
Copy link
Collaborator

Shelob9 commented Oct 17, 2018

The small help boxes in the Caldera (Forms) admin should be loaded loaded via CalderaForms.com’s REST API, which content is shown is based on the “Help Category” taxonomy. The endpoint/taxonomy exist on CF.com

There is a component for displaying a post: https://github.com/CalderaWP/Caldera-Forms/blob/05d8c747d5f6a67b407102c9390d2ed8b04235ac/clients/admin/components/RemotePost/RemotePost.js

Terms to use per area.

  • No Forms

    • Content from this term will be shown if no forms are saved on the current site, meaning this is likely a new user.
    • Term ID 550
  • Form List

    • This content is shown next to the form list, when no entries are being shown
    • Term ID 549
  • Settings

    • This content is shown below the settings when settings (including CF Pro) are being edited.
    • Term ID 548
  • Entry Viewer

    • This content is shown below the entry viewer when entries are being viewed.
    • Term ID 551

Notes:

My proof of concept was passed the category (would come from CalderaAdmin) and at componentDidMount called this method:

getHelpContent()  {
		const url = 'https://calderaforms.com/wp-json/wp/v2/posts?type[]=doc&type[]=download&type[]=doc&caldera_admin_help='
			+ this.props.helpContentCategory;

		fetch(url, {
			mode: 'cors',
			redirect: 'follow',
			cache: "default", // *default, no-cache, reload, force-cache, only-if-cached

		}).then(response => response.json())
			.catch(error => console.error('Error:', error))
			.then(response => {
				this.setState(
					{helpContent: response}
				)
			});
	}

@Shelob9 Shelob9 added the enhancement New feature label Oct 17, 2018
@Shelob9 Shelob9 added this to the 1.8.0 milestone Oct 17, 2018
@Shelob9 Shelob9 modified the milestones: 1.8.0, 1.9.0 Nov 6, 2018
@Shelob9 Shelob9 modified the milestones: 1.9.0, 1.8.5 May 16, 2019
@Shelob9 Shelob9 assigned Shelob9 and unassigned New0 May 17, 2019
@Shelob9 Shelob9 modified the milestones: 1.8.5, 1.8.6 May 29, 2019
@New0 New0 modified the milestones: 1.8.6, 1.8.7 Jul 22, 2019
@New0 New0 modified the milestones: 1.8.7, 1.8.8 Aug 27, 2019
@New0 New0 modified the milestones: 1.8.8, 1.8.9 Nov 11, 2019
@New0 New0 modified the milestones: 1.8.9, 1.8.10 Dec 16, 2019
@New0 New0 modified the milestones: 1.8.10, 1.8.11 Feb 6, 2020
@New0 New0 modified the milestones: 1.8.11, 1.8.12 Mar 4, 2020
@New0 New0 modified the milestones: 1.8.12, 1.9.1 Jun 18, 2020
@New0 New0 added this to the 1.9.2 milestone Jun 19, 2020
@New0 New0 modified the milestones: 1.9.2, 1.9.3 Jul 15, 2020
@New0 New0 modified the milestones: 1.9.3, 1.9.5 Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
None yet
Development

No branches or pull requests

2 participants