How to embed FluentSupport inside a client space (FluentCommunity)?
I'm using FluentCommunity Pro to create private B2B spaces. I'd like to add a support page inside each space (e.g. /space/company-name/support) where the client can submit tickets and only see their own.
Questions:
- Can I embed a ticket form or the support portal directly into such a page?
- How can I assign tickets to a specific category or inbox?
- How can I make sure the client only sees their own tickets?
I don't think you can embed FluentSupport inside FluentCommunity like you are describing at this time.
However, I did something similar with document storage so this info may be helpful.
Warning: it's a bit involved but it works well for us as a way to replace the built-in document storage with a much better storage plugin.
You could create a standard page in WordPress named Support. Then create a page under Support for each company (URL would be https://website.com/support/companyname). You'd probably want to limit visibility of these pages to only people from that company. This could be done with WordPress roles (one role per company) and a plugin like Members that allows for assigning visibility of pages to specific roles.
If using the FluentCommunity Theme Compatibility feature, set the template for these pages to one of the FC templates.
On each of those company support pages, add the FluentSupport shortcode for the FluentSupport business inbox for that company (info here: https://fluentsupport.com/docs/shortcodes/#7-toc-title). Disclaimer: I haven't done much with FluentSupport yet...I'm still evaluating if it meets our needs.
Then use the following code to add a Support link to the menu for each space. Note that this assumes the slug of the space matches the slug for the page name (/support/companyname).
add_filter('fluent_community/space_header_links', function ($links, $space) {
$links[] = [
'title' => 'Support',
'url' => '/support/' . $space->slug
];
return $links;
}, 10, 2);
That should add a Support menu item after Posts and Members on the Space menu.
Hopefully all that makes sense. It is a bit involved but it seems to be working well for us as a way to replace the built-in Documents link with a link to a dedicated documents page that has a Dropbox plugin in it.
Additionally, this would probably get really annoying to setup and manage if you have a large number of companies that are getting added frequently.
Thomas Oates This is a very professional answer to my question, I appreciate it!