PDA Portal does not use custom page names
Description
is related to
Activity
John Bush March 22, 2013 at 12:55 AM
based on last comment this is working as designed
Savitha Prakash March 17, 2011 at 9:48 AM
Sites in pda portal lists Tools rather then Pages. The reasoning behind this is that a Page can have more than one tool, which will not be convenient to display in pda.
Because of this reason, the sites lists tool title and not page title.
Hudson CI Server February 8, 2011 at 9:09 PM
Integrated in sakai trunk #440 (See http://builds.sakaiproject.org:8080/job/sakai%20trunk/440/)
Reverting https://sakaiproject.atlassian.net/browse/SAK-19777#icft=SAK-19777 r87942
Savitha Prakash February 8, 2011 at 12:27 PMEdited
Yes, it looks like it does have a side effect. Reverting back the change, until we find a better way to handle this.
trunk, r88155.; 27x, r88157; 28x, r88158.
Gonzalo Silverio February 8, 2011 at 11:49 AM
This has side effects - in the /portal/pda now all tool links resolve to a pop up page, since now $page.isPage is true.
#foreach ( $page in $currentSite.sitePages.pageNavTools )
#if ($page.isPage)
This must be a popup - so we treat it as a popup
<li>
<span>
<a href="javascript:;" onclick="window.open('${page.pagePopupUrl}${page.pageId}','${page.jsPageTitle}','resizable=yes,toolbar=no,scrollbars=yes, width=800,height=600')">
${page.pageTitle}
</a>
</span>
</li>
#else
<li>
<span><a href="${page.toolrefUrl}" title="${page.toolTitle}">${page.toolTitle}</a></span>
</li>
#end
#end
I thing we need some thought on this. Maybe something like:
detect a page name change and
if page has 1 tool = render page title in link
if more then = render "Page name" - "Tool title"
If a user customizes a page name (either via Page Order tool or admin Sites tool), the custom name is not displayed in the pda portal, but is displayed in the standard/classic view. The problem can be reproduced on a desktop browser by modifying the URL as follows:
classic view: http://<server-name>/portal/site/<site-id>
pda portal view: http://<server-name>/portal/pda/<site-id>