cancel
Showing results for 
Search instead for 
Did you mean: 

Showing Content Inline

mdsahni
Champ in-the-making
Champ in-the-making
Hey Kavin / Gavin,

I'm not sure what is the right Subject, so just put this, but I'll try to explain what I need to achieve!!

Admin is creating this content [Could be in separate spaces]:

Checklists
Some Forms
Reports
Some other content

and then publish them so that othe users can see when they login to Alfresco.

But the content should not be displayed like a link that open in new window or downloadable, but within the same window (main alfresco) inline.  Especially for forms!!

Secondly it would be best of I can present all these content as some kind of menu links, rather than list of links under content!!

What I'm trying to do is to use Alfresco as base platform to build some application [that has CMS is one module, but it does have other normal stuff as well, like Forms for data entry, Reports, etc]

Other way of asking this question could be that If I have some stuff to show to users [other than space and content], how to integrate.  Example can be Forms, Reports, Calendar, etc. [Alfresco already has one similar thing Tasks]

Thanx in Advance,

Regards,
Deep
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Hi,

At the moment to change the way content gets shown would involve changing browse.jsp.

Have a look for the following line:

<a:actionLink id="col10-act2" value="#{r.name}" href="#{r.url}" target="new" />

You'll see we use a href and target attribute to make the content go to a new window, you could simply remove the taget="new" attribute to have the content appear in the same window. But beware this may introduce you to some of the back button issues in JSF!

For a future release we are thinking of ways to improve this area and allow custom actions to be applied to the handling of content to make this sort of thing easier.

As for integrating other views, there is a dispatching mechanism in the web client that allows you to override the JSP used for displaying the contents of particular spaces. For example if you had a calendar space type you can use a custom view for it rather than the standard browse.jsp

http://wiki.alfresco.com/wiki/Dispatch_Mechanism

mdsahni
Champ in-the-making
Champ in-the-making
Hey Gavin,

That was great.  The more I know Alfresco, the more I'm Loving it!!

Keep up the good work!!

Regards,
Deep