[nodebb-plugin-ns-custom-fields] NS Custom Fields
-
It isn't compatible with 0.9, especially because of UI changes in 0.9 to profile page.
Also, I'm considering better options for this plugin:https://github.com/NodeBB/NodeBB/issues/3837
For now, if 0.9 update isn't critical for you, stick with 0.8
-
Version 3.0.0
New version is available. Summary: changed idea how plugin integrates with User's page.
- Compatibility with NodeBB
v0.9.1
- Introduced dedicated page for custom fields (i.e.
/user/nicolas/custom-fields/edit
). Removed dependency on Account's Edit Page (i.e. no dependency on theme). - Profile page: added new Flex template that could be used with Persona Theme
- Compatibility with NodeBB
-
I have two suggestions what I see in other fórum CMS.
1 - Support to links(Field type): I define URL of the custom field in ACP:
[link_what_i_want(ex: https://twitter.com)]: [user_information(MyTwitter@UserName)] and the hook give me a result like this: "Twitter: ins"2 - Support to images or icons in setup to show in templates, like this http://i.imgur.com/7aLADPS.png - This is an extension of first suggestion;
-
Hi,
The update added a separate page for the custom fields, and I wanted to know whether I could still add the custom fields on the user profile 'edit' page instead of a separate page.
Thanks
-
There is no such way. Current implementation It's like best practice from NodeBB Team.
-
Version 4.0.0
New version is available. Summary: focus on UX in ACP panel and integration with Persona based themes.
- Use ACP Scripts capabilities of NodeBB
- Improved UX of ACP panel: confirmation windows, sort via drag-n-drop, edit
- Seamless field editing for users: sub-page for editing
Preview
-
You should install everything through package manager in ACP.
NodeBB checks compatibilities with plugins. By installing stuff directly vianpm
you are bypassing such checks. -
@Nicolas said:
Version 4.0.0
Well, i couldn't find a Version 4.0.0 in the plugin install section. It says Latest 3.0.1
-
If you can't find it, It means you can't use it
Plugin v4 is for Nodebb v1.x -
How to add a specific custom field only ?
i could add
<!-- IMPORT partials/account/custom_fields_flex.tpl -->
In my theme which display all the custom fields.
The things is i want to add a link on a specific custom field. I tried like :
<a href="{customFields.myfield.value}">link</a>
But it doesn't work.
Any help ?
Thank you.
-
Here is how you can reach properties:
nodebb-plugin-ns-custom-fields/public/templates/partials/account/custom_fields_flex.tpl at master · NicolasSiver/nodebb-plugin-ns-custom-fields
Adds additional fields to the user's account. Contribute to NicolasSiver/nodebb-plugin-ns-custom-fields development by creating an account on GitHub.
GitHub (github.com)
.customFields
it's an Array data structure. You can access element via index. -
customFields[0]
- but I'm not sure if template.js supports such syntax. -
I will add to TODO List, so in next updates, you will be able to target concrete custom field.