Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

update menu bundle documentation for cmf 2.0 #822

Merged
merged 1 commit into from
Jun 12, 2017
Merged

update menu bundle documentation for cmf 2.0 #822

merged 1 commit into from
Jun 12, 2017

Conversation

dbu
Copy link
Member

@dbu dbu commented Jun 8, 2017

fixes part of #786 and #787

@dbu dbu added the wip/poc label Jun 8, 2017
@dbu dbu force-pushed the menu-doc-update branch 3 times, most recently from 3328411 to 4135c1d Compare June 8, 2017 21:24
Copy link
Member

@dantleech dantleech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left come comments :)

content documents can be found. This is used by the admin class to pre-select
the content branch of the document hierarchy in forms.
content documents can be found. This is used by the sonata admin integration to
know what tree to show when selecting content for menu nodes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/what/which ?

A menu created using the KnpMenuBundle is made up of a hierarchy of class
instances implementing ``NodeInterface``. This is also true of a menu created
using MenuBundle documents.
For the Knp menu, a menu is made up of a hierarchy of objects implementing
Copy link
Member

@dantleech dantleech Jun 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably Knp Menu (it's a title)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the first mention in this section, maybe a hyperlink Knp Menu

Sometimes, the menu is not located within the ``persistence.phpcr.menu_basepath``.
In this case, you can use an absolute path (starting with a forward slash) to render
the menu:
To render a menu that is not located underneath the ``menu_basepath``, you
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think I prefer within here, or maybe using tree terminology a menu that is not a descendant of the

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going with "child of", that seems the clearest. because the menu name has to be a direct child of the basepath

the menu:
To render a menu that is not located underneath the ``menu_basepath``, you
can use an absolute path (starting with a forward slash) to render that
menu:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to render that menu is redundant I think?

to render a menu. A menu factory creates such *menu items* from the *menu
nodes* provided by the menu provider.
The menu node documents are only used for persisting the menu data, they are
not actually used when rendering a menu. The Knp menu rendering engine needs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Knp Menu

@@ -5,19 +5,20 @@ Menu Provider
=============

A menu provider is responsible for loading a menu when it is requested. KnpMenu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Knp Menu ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i use KnpMenu everywhere now to be consistent. that is the name they use themselves

Install the IvoryCKEditorBundle_ to enable a CKEditor to edit the content
body:
The content admin comes with an optional integration for the CKEditor WYSIWYG
editor. To use the editor, install the IvoryCKEditorBundle_:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, too many "editor" references, maybe just CK WYSIWYG Editor

content page.

The menu admin uses the ``cmf_menu.persistence.phpcr.menu_basepath`` setting to
know where to add menus. The menu node admin additionally uses
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/know/determine ?

The menu admin uses the ``cmf_menu.persistence.phpcr.menu_basepath`` setting to
know where to add menus. The menu node admin additionally uses
``cmf_menu.persistence.phpcr.content_basepath`` to show the tree to select
content for a menu node.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tree to select => tree used to select ?

@dbu dbu force-pushed the menu-doc-update branch from 4135c1d to 7930944 Compare June 11, 2017 15:26
@dbu
Copy link
Member Author

dbu commented Jun 11, 2017

thanks for the detailed review dan! i changed all points, mostly taking your suggestions.

Copy link
Member

@dantleech dantleech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :)

@dbu dbu merged commit 2ad48c2 into 2.0 Jun 12, 2017
@dbu dbu removed wip/poc labels Jun 12, 2017
@dbu dbu deleted the menu-doc-update branch June 12, 2017 06:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants