Skip to content

An extension of the Doc Type Grid Editor to make it easy to copy doc type grid content for reuse.

License

Notifications You must be signed in to change notification settings

Offroadcode/Doc-Type-Grid-Editor-Reusable-Content-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc Type Grid Editor Reusable Content Extension · version our umbraco

An extension of Umco's excellent Doc Type Grid Editor to make it easy to export, import, and link doc type grid content with nodes in the content tree.

DTGERCE v2.0.0 has been tested for compatibility with Doc Type Grid Editor v0.6+
(For users of older versions of the Doc Type Grid Editor, v1.0.0 of DTGERCE is compatible with v0.4.)

What Does It Do?

Using the grid is one of the best content experiences an editor can have, but there's still some frustrations. Copying and pasting content for use on multiple pages is one that we want to eliminate. We've added a few features to Matt & Lee's already exceptional package to take this up a notch. With the DTGERCE (check out that acronym!), you can:

Export Grid Content Directly To A New Node

export-steps

Save content from the grid directly to a new node for reuse later!

Import Grid Content From Another Content Node

import-steps

Import content from a node into the grid to be edited into unique content that's close but not the same as the original.

Link A Content Node To The Grid

link-steps

Link a content node into the grid to pull the node from that content instead of the DTGE content.

Installation & Use

You can install the selected release through the Umbraco package installer or download and install locally from Our.

This package requires the Doc Type Grid Editor package (v0.6+) to be already installed, as it extends its functionality.

Important Instructions For Link Functionality!

You can use the import and export functionality of this package with no further work on your part. But for any doc types you wish to be able to use as grid content that can link to a content node (allowing such grid areas to automatically update when you update a linked node) you must add a label property with the alias 'dtgeLinkedId' to them. This will make the 'Link to Node' button work.

Example Code For Linking

You will also need to make a small modification to your existing DocType Grid Editor partial views to call either the content from the node or the content from the grid, depending on what's selected. Further instructions in this example gist.

Questions?

If you have questions, feel free to ask them here.

Contribute

Want to contribute to the Doc Type Grid Editor Reusable Content Extension package? You'll want to use Grunt (our task runner) to help you integrate with a local copy of Umbraco.

Install Dependencies

Requires Node.js to be installed and in your system path

npm install -g grunt-cli && npm install -g grunt
npm install

Build

grunt

Builds the project to /dist/. These files can be dropped into an Umbraco 7 site, or you can build directly to a site using:

grunt --target="D:\inetpub\mysite"

You can also watch for changes using:

grunt watch
grunt watch --target="D:\inetpub\mysite"

If you want to build the package file (into a pkg folder), use:

grunt umbraco

About

An extension of the Doc Type Grid Editor to make it easy to copy doc type grid content for reuse.

Resources

License

Stars

Watchers

Forks

Packages

No packages published