Created by Unknown User (rogemstone), last modified by Unknown User (gfraser) on May 06, 2009
Does pagetree2 enable sort by position? Also, does the initialLevel option work so that the tree shows an inital depth on page load? If not, what are your workarounds?
Thanks very much,
Russell Okamoto
No labels
11 Comments
Unknown User (gfraser)
The pagetree2 macro is our next internal target for "jQuery-ification" - the current UI library that we're using makes it difficult to work with. We don't have a fixed project plan for it yet - it will certainly be after Theme Builder 3.3.4 and 3.4.0 are released.
I'll move this topic in to our Theme Builder forum where the team will pick up on it and likely provide more information.
I copied this over from the pagetree2 page at Alan's suggestion...
I don't seem to be able to work out this sorting business.
What I want is for pagetree2 to respect the order of pages as displayed in the Confluence pagetree (Browse > Pages). Any manual reordering can take place there, but pagetree2 should display pages in the same order.
If I allow sorting in pagetree2, the Confluence pagetree reflects the changes. The opposite doesn't work.
To overcome this, I tried to replace pagetree2 with the original Confluence pagetree in my sidebar, but that results in an error (edited):
Cause
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
caused by: java.lang.NoClassDefFoundError: com/atlassian/confluence/renderer/WikiStyleRenderer
at java.lang.Class.getDeclaredMethods0(Native Method)
Now I've upgraded the Confluence pagetree plugin to the newest version on two instances of Confluence 3.0.1 w. Builder 3.3.5-conf210. On one, both versions worked. On the other, neither does.
I would be inclined to blame some sort of conflict with my Builder theme. Since the only difference is the layout, the cause might be the type of Builder menus on the instance where pagetree fails to work.
Instead of having the above Confluence error message, My Firefox error console now gives me this JavaScript error:
Error: missing ; before statement
Source File: http://qa-opus.ktl.fi/wiki03/display/biometry/Etusivu
Line: 282, Column: 8
Source Code:
var ancestors${treeId} = ["3311720-${treeId}"];
The problem was that other pagetree from BNP Paribas. Disabling that and disabling and re-enabling some content formatting macros and the Confluence pagetree sorted the problem out.
could you explain this comment a little more. I'm looking for a solution to the use of {pagetree2} within the LSB of an Adaptivist ThemeBuilder Theme that will permit the way {pagetree} sorts when using the argument "sort=position".
Does your comment mean that adding {menubar:treeId} before {pagetree2:sort=position} could enable it so that the sort argument would work to solve the problem (assuming versions sited in the comment you are replying to)? Or have I completely misunderstood this part of the thread?
Try giving the pagetree2 macro the parameter sort=natural and rearrange the pages in the listpages-dirview, which is accessible through Browse -> Pages.
Tried all suggestions on this thread so far: the {menuid} proposed earlier and the "sort = natural" and they have no effect. To further illustrate, I have a test page that uses {pagetree:sort=position} that works perfectly in terms of page ordering, and then you look in the LSB (left side bar) of my Theme and you see the exact same page tree, but sorted alphabetically because:
Theme doesn't work right with {pagetree} so I had to use {pagetree2}
all attempts to sort {pagetree2} by "position", "natural" or other suggestions above have failed.
Any other ideas or suggestions?
Or do I need to wait until the next ThemeBuilder release because of comment from May 6th of last year about "jQuery-ification"? And on that note - it's been a year.
11 Comments
Unknown User (gfraser)
The pagetree2 macro is our next internal target for "jQuery-ification" - the current UI library that we're using makes it difficult to work with. We don't have a fixed project plan for it yet - it will certainly be after Theme Builder 3.3.4 and 3.4.0 are released.
I'll move this topic in to our Theme Builder forum where the team will pick up on it and likely provide more information.
Unknown User (ville.valtasaari@thl.fi)
Hi,
I copied this over from the pagetree2 page at Alan's suggestion...
I don't seem to be able to work out this sorting business.
What I want is for pagetree2 to respect the order of pages as displayed in the Confluence pagetree (Browse > Pages). Any manual reordering can take place there, but pagetree2 should display pages in the same order.
If I allow sorting in pagetree2, the Confluence pagetree reflects the changes. The opposite doesn't work.
To overcome this, I tried to replace pagetree2 with the original Confluence pagetree in my sidebar, but that results in an error (edited):
Cause
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
caused by: java.lang.NoClassDefFoundError: com/atlassian/confluence/renderer/WikiStyleRenderer
at java.lang.Class.getDeclaredMethods0(Native Method)
—
Information
URL http://qa-opus.ktl.fi/wiki03/500page.jsp
URI
/wiki03/500page.jsp
Context Path
/wiki03
Servlet Path
/500page.jsp
Query String
decorator=none&excerpt=false&sort=natural&reverse=false&pageId=8687502&treeId=1
Headers (Limited subset)
host
qa-opus.ktl.fi
user-agent
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2b4) Gecko/20091124 Firefox/3.6b4 (.NET CLR 3.5.30729)
keep-alive
115
connection
keep-alive
Attributes
javax.servlet.forward.request_uri
/wiki03/plugins/pagetree/naturalchildren.action
javax.servlet.forward.context_path
/wiki03
javax.servlet.forward.servlet_path
/plugins/pagetree/naturalchildren.action
javax.servlet.forward.path_info
/500page.jsp
javax.servlet.forward.query_string
decorator=none&excerpt=false&sort=natural&reverse=false&pageId=8687502&treeId=1
javax.servlet.error.message
javax.servlet.error.exception
javax.servlet.ServletException: Servlet execution threw an exception
os_securityfilter_already_filtered
true
javax.servlet.error.request_uri
/wiki03/plugins/pagetree/naturalchildren.action
com.atlassian.gzipfilter.GzipFilter_already_filtered
true
javax.servlet.error.status_code
500
_sitemesh_filterapplied
true
javax.servlet.error.servlet_name
action
webwork.valueStack
com.opensymphony.xwork.util.OgnlValueStack@1c171cc
com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered
true
atlassian.core.seraph.original.url
/plugins/pagetree/naturalchildren.action?decorator=none&excerpt=false&sort=natural&reverse=false&pageId=8687502&treeId=1
loginfilter.already.filtered
true
Confluence-Request-Time
1259585907729
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered
true
sessioninview.FILTERED
true
Parameters (Limited subset)
reverse
false
decorator
none
sort
natural
treeId
1
excerpt
false
pageId
8687502
Confluence User
Regards,
Ville
Confluence 3.0.1 w. Builder 3.3.5-conf210
Unknown User (ville.valtasaari@thl.fi)
Now I've upgraded the Confluence pagetree plugin to the newest version on two instances of Confluence 3.0.1 w. Builder 3.3.5-conf210. On one, both versions worked. On the other, neither does.
I would be inclined to blame some sort of conflict with my Builder theme. Since the only difference is the layout, the cause might be the type of Builder menus on the instance where pagetree fails to work.
Instead of having the above Confluence error message, My Firefox error console now gives me this JavaScript error:
The page source has this:
Any ideas?
r. Ville
Unknown User (amoran)
{menubar:treeId}
Unknown User (ville.valtasaari@thl.fi)
Ok,
The problem was that other pagetree from BNP Paribas. Disabling that and disabling and re-enabling some content formatting macros and the Confluence pagetree sorted the problem out.
r. Ville
Unknown User (underklover@gmail.com)
could you explain this comment a little more. I'm looking for a solution to the use of {pagetree2} within the LSB of an Adaptivist ThemeBuilder Theme that will permit the way {pagetree} sorts when using the argument "sort=position".
Does your comment mean that adding {menubar:treeId} before {pagetree2:sort=position} could enable it so that the sort argument would work to solve the problem (assuming versions sited in the comment you are replying to)? Or have I completely misunderstood this part of the thread?
Unknown User (gdhugga@cfri.ca)
I've tried this but no luck
Unknown User (gdhugga@cfri.ca)
I am also wondering if there is any way to manually sort the pagetree2 macro ?
Unknown User (macandron)
Try giving the pagetree2 macro the parameter sort=natural and rearrange the pages in the listpages-dirview, which is accessible through Browse -> Pages.
Unknown User (underklover@gmail.com)
Tried all suggestions on this thread so far: the {menuid} proposed earlier and the "sort = natural" and they have no effect. To further illustrate, I have a test page that uses {pagetree:sort=position} that works perfectly in terms of page ordering, and then you look in the LSB (left side bar) of my Theme and you see the exact same page tree, but sorted alphabetically because:
Any other ideas or suggestions?
Or do I need to wait until the next ThemeBuilder release because of comment from May 6th of last year about "jQuery-ification"? And on that note - it's been a year.
Has there been any movement on it?
Unknown User (gdhugga@cfri.ca)
Hi guys,
any help of this would be greatly appreciated!