We got a request for an option for users to suggest an article and we came up with something fairly simple. There is probably a better way to do this, but this is working for us.
Create a Suggestion forum someplace on your site.
Create a new template, ours is named x_suggest_article_button and put this code in it. Change the link and text to fit.
And inside the xa_ams_category_view and xa_ams_index and xa_ams_series_list templates find the above_articles or above_series section and add this. On my site that starts at line 95.
That gives you a button that is full width, that pops an overlay to your Suggestion forum. Full width button may be overkill but sometimes with my users you have to slap them directly in the face before they see something.
Create a Suggestion forum someplace on your site.
Create a new template, ours is named x_suggest_article_button and put this code in it. Change the link and text to fit.
Code:
<xf:button href="https://www.your.site.com/forums/content-suggestions.2364/"
class="button--suggest-article" style="margin-bottom: 1em; width: 100%;" icon="write" overlay="true">
Post here to suggest an article topic
</xf:button>
And inside the xa_ams_category_view and xa_ams_index and xa_ams_series_list templates find the above_articles or above_series section and add this. On my site that starts at line 95.
Code:
<!-- adds button with link to forum for article/news requests -->
<xf:include template="x_suggest_article_button" />
That gives you a button that is full width, that pops an overlay to your Suggestion forum. Full width button may be overkill but sometimes with my users you have to slap them directly in the face before they see something.
Last edited:
Upvote
0