dynamicweb / DynamicWeb

Make feature requests for Dynamicweb in Issues section of this repository
https://doc.dynamicweb.dev/documentation/fundamentals/support/feature-requests.html
GNU General Public License v3.0
1 stars 0 forks source link

Swift - Possibility to dynamically show an employee #72

Open Martin8sen opened 2 weeks ago

Martin8sen commented 2 weeks ago

Often customers want to in some form or another show a specific employee who is a product expert within either a group of products or a specific product or an an article page.

In content context - At the moment it is only possible to manually set up and employee either with the employee element or with a text or text and image element, this makes the data static, and if you use it lots of different places, that would require updating a possible change in phonenumber, everywhere and you might forget somewhere.

In product context - Its not possible to to differentiate an employee if you place an element on the product page it will always be the same person no matter the product, it would be possible to assign different employees with different groups using the setting of choosing a specific product page, but that would require setting a lot of different product pages, and it wont work if you need two different employees within the same group.

Possible solution

In content context - It would be great to have the possibility to add an element to a page, and the be able to dynamically show information from a specific user that is chosen on the element. That way i can update the user and then have all the places the user is shown, be updated aswell.

In product context - it would be ideal, to use the same element on the product pages, but either on groups or on specific products be able to choose a user that is shown in the element, for that particular product.

nicped commented 2 weeks ago

In Content context, we are working on a new version of the user management frontend. One of the features is to display a user from usermanagement. This feature will eventually make it to Swift 2 so you can insert a paragraph with a user. Also Swift 2 has a new way of showing employees that will also improve this.

In product context, we will consider it. For now you can add a custom group or product field, and in that field add either a username, email or userid of the product specialist - you can also make a list field and add e.g. email addresses and names to the option list to choose from. Then in your product list template, lookup the value of the responsible and render it out in the group template.