push-page-cms

Publish page content to Pure CMS and update header navigation links.

Updated Dec 17, 2022
One-click install
npx skills add https://github.com/shishiv30/pure --skill push-page-cms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push-page-cms
Source: https://github.com/shishiv30/pure/tree/main/.cursor/skills/import-page-cms
Command: npx skills add https://github.com/shishiv30/pure --skill push-page-cms

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new dynamic pages to your website by ensuring their content is published to the CMS and their navigation links are correctly updated in the header.

Core Features & Use Cases

  • Content Publishing: Posts page data to the Pure CMS pages table.
  • Header Navigation Update: Optionally adds or updates links in the header component for the new page.
  • Use Case: When you create a new "About Us" page, use this Skill to push its content to the CMS and automatically add a link to /page/about in your website's main navigation.

Quick Start

Run the command node cms/scripts/push-page.js about --update-header to publish the 'about' page and add its link to the header navigation.

Frequently Asked Questions about push-page-cms

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish a new page to the Pure CMS and update the header navigation?

To publish a new page to the Pure CMS and update header navigation, run the push-page script with your page key and the update-header flag. This posts page data to the CMS and configures the header component with a new link.

What is the process for adding dynamic pages served at /page/:key in a CMS?

Adding dynamic pages served at /page/:key involves pushing a page data file to the CMS pages table. This Skill configures the routing path and optionally updates the header component with the new link shape.

Do I need a specific data file format to push content to the CMS pages table?

Yes, pushing content to the CMS pages table requires a page data file. The Skill uses this file to post data to the Pure CMS and generate the dynamic page served at the specified key.

Can I update header navigation links without republishing existing CMS page content?

Yes, updating header navigation links is an optional action during page publishing. You can add or update links in the header component for the new page without altering existing CMS page content.

What's the best way to automate adding an About Us page link to website navigation?

The best way to automate adding an About Us page link is using a script that pushes content to the CMS and updates the header component simultaneously. This ensures the navigation link matches the published page key.