Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Question abouf community forum WCB

The "WCB: JSP front-end design" forum contains threads on issues that are related to JSP front-end design while programming a WCB (WebManager Component Bundle). The Presentation & Element component contain JSPs that will be used for front-end rendering. Ask your questions related to these JSPs here. Some example topics: integration of AJAX, use of the taglibs, how to handle multiple websites, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: JSP Front-end design  >  Question abouf community forum WCB


Author Question abouf community forum WCB
pgoultiaev



Posts: 17

Posted: 30-07-2009 12:48

I ran into a couple of issues while using the community forum WCB. Unfortunately, the lack of documentation didn't make solving them any easier.

Here are the questions:

1. Active forums pagepart; what is the best way to achieve it's functionality? (Queries vs API)

2. How would one go about making it possible for editors to select a couple of users (in, for example, a query element) so that their avatars could be shown on the website?

Thanks in advance!

EDIT:

Another question has come up: How can I link to a profile like: connect.gxsoftware.com /username?? Is a profile page always created under this address (because then it's a piece of cake...)?

patricka



Posts: 280

Posted: 30-07-2009 14:43 Helpful

I know an answer to question 1!

The community forum WCB makes use of database pages to implement a forum. The "active forums" bit (as seen on the left side of this page) is actually a query element with a custom presentation.

I guess a query element could also be used for question 2. Create the query that does what you want, then parameterize it and connect to a table so editors can choose users from a pulldown.

As for the final question: since forum users are database types as well, you could have a standard display on page for that type and link to that.

You could do something like:


<c:forEach var="typeOfPage" items="${website.resourceEntities}">
<c:if test="${typeOfPage.identifier == 'forumuser'}">
<c:set var="forumUserTypeOfPage" value="${typeOfPage}" />
</c:if>
</c:forEach>

<wm:link var="profileLink" dbid="${userId}"
typeofpage="${forumUserTypeOfPage.id}" />



Enjoy!

Greetings,

Patrick

pgoultiaev



Posts: 17

Posted: 30-07-2009 15:39

Thanks!

This helps a lot! I was actually thinking of something like your solution for question 1, but I forgot to implement a standard page.

Off-topic:

Seems like the active forums pagepart on Connect sometimes fails to show some of the topic titles (even misspelled ones like mine ), and it's not always up-to-date (although that's probably caching, SSI problems?).

It's a pity you can't edit topic titles after a topic is submitted; perhaps something for a change request?

patricka



Posts: 280

Posted: 30-07-2009 16:31

Yes, I know. Something's fishy in the forum department since we updated a while ago. Might even be my own fault, since I submitted some changes.

I submitted the symptoms to the maintainer, let's hope he finds the time to fix things.

On a side note: why did I only get a "helpful" instead of a "solved"?

Greetings,

Patrick

pgoultiaev



Posts: 17

Posted: 30-07-2009 17:02

Let's hope all will be well on the Connect.

Oh and about helpful and solved; I guess it's all a matter of definition. I only give out "solved" when I get a 100% copy-pasteable solution... (Although I was in doubt when clicking the "Helpful" link)

Back to top

New message: "Question abouf community forum WCB"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.