MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

"Discussion Topics" web part not available in catalog  (Mono Support )

Viewed 17812 time(s), 3 post(s) 6/3/2014 1:13:01 PMby gstadter
gstadter

gstadter

6/3/2014 1:14:44 PM
I noticed that there is a "Discussion Topics" web part (ModuleGallery/SocialNetworking/Discussion/DiscussionTopics.ascx) that is used on MonoX/Pages/SocialNetworking/Dashboard.aspx.
If I create a new page and try to add this web part, I can't find it anywhere in the catalog.
Is there a way I can add it to the catalog?
Or is my only option to edit the physical aspx page that MonoX created when I created the page in the admin UI and add the web part manually?
This content has not been rated yet. 
669 Reputation 67 Total posts
khorvat

khorvat

6/3/2014 10:00:45 PM
Hi,

the "DiscussionTopics.ascx" was built as a part of Discussion Module (DiscussionContainer.ascx) and it's not intended to be a stand-alone WebPart. So if you want to make it a stand-alone WebPart you should:

1. Create your own WebPart which is auto register WebPart (this will register WebPart in the gallery)
2. Add DiscussionTopics.ascx.cs WebPart to your newly created one
3. Copy the code from Dashboard.aspx demo page in order to control the topics part
4. Add your newly created WebPart path in the appSettings module gallery paths

Let us know if you need anything else.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
gstadter

gstadter

6/5/2014 4:41:08 AM
I do absolutely understand that when it was created, it was intended to be used exclusively within a Discussion Container, but one of your developers saw value(which I agree with) in making this particular view(ascx) available outside of the context of a Discussion Container ...hence, as it is being delivered as part of the product, out-of-the-box, to anyone that downloads MonoX CMS on the Dashboard.aspx, outside of any Discussion Container.
Before creating this post, I had already manually added the control in the aspx pages where I wanted it to additionally appear.    By posting, I was merely suggesting that it is counter-intuitive(and potentially confusing to foks new to MonoX CMS) to have core functionality widgets(wall, discussion, blog, etc...) placed throughout sample aspx pages that cannot be duplicated/re-created from within the Admin UI.
This content has not been rated yet. 
669 Reputation 67 Total posts