Knowledge Base

Search our articles or browse below

VSDocs File Hierarchy Shortcode Explained

The first step in creating a File Hierarchy type shortcode is going in and creating a menu which will define the file hierarchy.

To do this, you need to navigate to Appearance -> Menus, hit “Create New Menu” and insert a name.

Create New Menu

In here, each menu item will represent a file, and each “Parent” menu item will represent a folder. In the image below we can see we have a couple of folders, with a bunch of files in each of them. A couple of folders

Which will create the following structure:

Docs File Hierarchy

In order to add descriptions next to each of the fields, simply open up the Screen Settings panel and activate the “Description” checkbox.Screen Settings

Then you can simply start adding descriptions next to each menu item as you need them.

Add the description

After completing these steps and building your file structure you can save your menu and then navigate to the page where you will insert the shortcode.

If you’re using VSDocs V2.0.0 or a newer version, then you can go in and edit any page with the Visual Composer and insert a File Hierarchy shortcode. There, you’ll be able to choose between the menus currently available, as well as choose to have your default shortcode expanded or not.

File Hierarchy

If you’re using a previous version to V2.0.0, then you’ve got to use the “Docs File Hierarchy” shortcode and simply insert the menu name in the “Menu Name” field. Menu Name

Was this article helpful?

No 0
Still looking for help? Contact our amazing support team!