jungles-helpers-frontend

2.0.0 • Public • Published

Jungles Frontend Helpers

getRoot

Get the whole tree of a current node start with it's root.

getRoot(tree, current)
EN
|- Products
FR
|- Products

If current is fr/products then it will return FR and Products.

Navigation

navigation(tree, start_level, end_level, current);

Instances with navigation_hide=true will be ignored.

Markdown

markdown(string)

findInstancesByType

findInstancesByType(tree, type)

getFilename

getFilename('name');

Because jungles-files adds a uuid in front of the filename to avoid duplicates you can extract the original filename with this helper.

Readme

Keywords

none

Package Sidebar

Install

npm i jungles-helpers-frontend

Weekly Downloads

0

Version

2.0.0

License

none

Last publish

Collaborators

  • enome