You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by bhaskar9 <kb...@gmail.com> on 2009/09/30 20:37:50 UTC

Folder's default page not shown

I found navigation issue in the portal. Here is the issue. I have the
following folders and pages in my portal menu.

Folder1
  -page1.psml
  -page2.psml
Folder2
  -page3.psml
  -page4.psml
Folder3
  -page5.psml
  -page6.psml

Assume that page1.psml is the default page for Folder1, page3.psml is the
defaultpage for Folder2, and page5.psml is the default page for Folder3. 
When i first click on 'Folder1' it shows the defaultpage of it, i.e
page1.psml , after that click on page2.psml, then click on Folder2, then
click on Folder1 again. Now it suppose to show page1.psml, since it is the
default page for Folder1. But it is not showing page1.psml, it shows
page2.psml since page2.psml was the last visited page in that folder.

Does any one solution for this issue.

Thanks in advance. I appreciate your help.

--bhaskar9

-- 
View this message in context: http://www.nabble.com/Folder%27s-default-page-not-shown-tp25686588p25686588.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Folder's default page not shown

Posted by Ate Douma <at...@douma.nu>.
bhaskar9 wrote:
> I found navigation issue in the portal. Here is the issue. I have the
> following folders and pages in my portal menu.
> 
> Folder1
>   -page1.psml
>   -page2.psml
> Folder2
>   -page3.psml
>   -page4.psml
> Folder3
>   -page5.psml
>   -page6.psml
> 
> Assume that page1.psml is the default page for Folder1, page3.psml is the
> defaultpage for Folder2, and page5.psml is the default page for Folder3. 
> When i first click on 'Folder1' it shows the defaultpage of it, i.e
> page1.psml , after that click on page2.psml, then click on Folder2, then
> click on Folder1 again. Now it suppose to show page1.psml, since it is the
> default page for Folder1. But it is not showing page1.psml, it shows
> page2.psml since page2.psml was the last visited page in that folder.
> 
> Does any one solution for this issue.
This is intended but also configurable (default) behavior.

This is managed by the ProfilerValve Spring bean configuration in /WEB-INF/assembly/pipelines.xml:

   <bean id="profilerValve" class="org.apache.jetspeed.profiler.impl.ProfilerValveImpl" init-method="initialize">
     <meta key="j2:cat" value="default" />
     <constructor-arg index="0">
       <ref bean="org.apache.jetspeed.profiler.Profiler" />
     </constructor-arg>
     <constructor-arg index="1">
       <ref bean="org.apache.jetspeed.portalsite.PortalSite" />
     </constructor-arg>
     <!--
       request fallback to root folder/page enabled by default;
       if set to false, requests generate HTTP 403/404 errors
       for access errors or missing pages
     -->
     <constructor-arg index="2">
       <value>true</value>
     </constructor-arg>
     <!--
       use last visited page histories to select default page
       for folder navigational urls; if set to false, the
       default page specified in PSML, (or the first page in
       the folder), is always selected
     -->
     <constructor-arg index="3">
       <value>true</value>
     </constructor-arg>
   </bean>

As you can see above, the last constructor-arg with index 3 defaults to boolean value true.
If you flip that to false, you'll get the "default" behavior you are expecting.

Note: best not to modify the pipelines.xml file itself but instead copy only the (modified) bean definition above to a new file (any name is 
fine as long as it ends with .xml) and save it in subfolder /WEB-INF/assembly/override

Regards,

Ate

> 
> Thanks in advance. I appreciate your help.
> 
> --bhaskar9
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org