You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I really do not know if it is the right place to report the issue of the documentation of the vafpress. Because I did not find any other way to let the developer know about this issue. Because forum is dead.
By the way, I have found some wrong information in the docs that does not work or break things.
For example,
The usage of fonts awesome icon shown in the docs is wrong. And it is also wrong in the example in the docs.
For example docs says, ' fontawesome icon defined by this syntax fontawesome:icon-name'. this is worng. Correct should be " fontawesome icon defined by this syntax 'font-awesome:fa-iconname'. eg. 'font-awesome:fa-search'. or more detailed example:
'menus' => array(
array(
'title' => __('Special Controls', 'vp_textdomain'),
'name' => 'menu_2',
'icon' => 'font-awesome:fa-search',
'controls' => array(
... collection of Sections and or Control Fields ...
),
),
)
in the example of original doc, it shows the usage of the fonts awesome icon in the following way.
array(
'title' => __('Regular', 'vp_textdomain'),
'name' => 'submenu_1',
'icon' => 'font-awesome:icon-th-large',
'controls' => array(
... collection of Sections and or Control Fields ...
),
),
The above code will not work.
Correct code would be like the below code. (using 'icon' => 'font-awesome:fa-iconname' structure).
array(
'title' => __('Regular', 'vp_textdomain'),
'name' => 'submenu_1',
'icon' => 'font-awesome:fa-home',
'controls' => array(
... collection of Sections and or Control Fields ...
),
),
Hello there,
I really do not know if it is the right place to report the issue of the documentation of the vafpress. Because I did not find any other way to let the developer know about this issue. Because forum is dead.
By the way, I have found some wrong information in the docs that does not work or break things.
For example,
The usage of fonts awesome icon shown in the docs is wrong. And it is also wrong in the example in the docs.
For example docs says, ' fontawesome icon defined by this syntax fontawesome:icon-name'. this is worng. Correct should be " fontawesome icon defined by this syntax 'font-awesome:fa-iconname'. eg. 'font-awesome:fa-search'. or more detailed example:
in the example of original doc, it shows the usage of the fonts awesome icon in the following way.
The above code will not work.
Correct code would be like the below code. (using 'icon' => 'font-awesome:fa-iconname' structure).
Another big error I have found that caused error is the doc of the section grouping (http://vafpress.com/documentation/vafpress-framework/options/group.html)
Original docs did not mention the 'type' attribute. and also shows a wrong example like below:
The above code will not work and through an error.
Correct Code will be like below using a type=section attribute.
This kind of bugs/error in the docs give me so much pain to fix. I hope other users will not have to spend a lot of hours debugging this issue.
![screen shot 2018-01-22 at 5 22 12 pm](https://user-images.githubusercontent.com/6803549/35218568-4e3732fc-ff99-11e7-9285-8098b9d20f8e.png)
![screen shot 2018-01-22 at 5 05 27 pm](https://user-images.githubusercontent.com/6803549/35218569-4e682ac4-ff99-11e7-8653-37e2284809c4.png)
![screen shot 2018-01-22 at 5 05 11 pm](https://user-images.githubusercontent.com/6803549/35218570-4ea67c52-ff99-11e7-9897-55139698cb34.png)
The text was updated successfully, but these errors were encountered: