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.

Include News items in site Activity? (Zatvorena) (Mono Support )

31635 put(a) pogledan, 4 odgovor(a) 11.6.2014. 22:47:46Kreirao(la) gstadter
gstadter

gstadter

11.6.2014. 22:47:46
Is there a relatively simple way to get the creation of News items included in the site Activity stream?
Ovaj sadržaj još nije ocijenjen. 
669 Reputacija 67 Ukupno objava
dbracun

dbracun

12.6.2014. 12:24:15
Hi,
Can you please tell us which version of MonoX are you using?

Regards
Ovaj sadržaj još nije ocijenjen. 
188 Reputacija 18 Ukupno objava
gstadter

gstadter

12.6.2014. 17:49:34
v5.1.40.5015
Ovaj sadržaj još nije ocijenjen. 
669 Reputacija 67 Ukupno objava
dbracun

dbracun

17.6.2014. 10:16:45
Hi,

There is no easy way to do that.
If you want to implement this feature you will need to follow steps:
1. Create your own event table that will be connected to MonoX snEvent table.
2. Add a new event type to the table SnEventType for news.
3. Using Dependency Injection kick in your own repository and BLL for news creation.
    - This is necessary because you need to create saving of an event when user creates new news article.    
4. Create a new Event control that will inherit MonoX control and override following methods:
    - EventIdsToDisplay (Gets the type ids of events that should be displayed.)
    - FetchEventCollection
        - Using Dependency Injection kick in your own EventRepostory and EventsBLL for event fetching.
    - FormatEventText (Formats the event text that is shown in the module.)
    - FormatEventIcon (Formats the event icon - each event can have a separate icon.)

Regards
Ovaj sadržaj još nije ocijenjen. 
188 Reputacija 18 Ukupno objava