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
|
|||||||
Adaptavist Theme Builder Powered by Atlassian Confluence |
Comments (11)
May 06, 2009
Guy Fraser says:
The pagetree2 macro is our next internal target for "jQuery-ification" - the cur...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.
Dec 03, 2009
Ville Valtasaari says:
Hi, I copied this over from the pagetree2 page at Alan's suggestion... I don't...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
Dec 07, 2009
Ville Valtasaari says:
Now I've upgraded the Confluence pagetree plugin to the newest version on two in...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
Dec 07, 2009
Alain Moran says:
{menubar:treeId}{menubar:treeId}
Dec 07, 2009
Ville Valtasaari says:
Ok, The problem was that other pagetree from BNP Paribas. Disabling that and di...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
Feb 23, 2010
Mitch Abramson says:
could you explain this comment a little more. I'm looking for a solution to the...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?
Apr 20, 2010
G D says:
I've tried this but no luckI've tried this but no luck
Mar 18, 2010
G D says:
I am also wondering if there is any way to manually sort the pagetree2 macro ?I am also wondering if there is any way to manually sort the pagetree2 macro ?
May 07, 2010
Jonas Lindström says:
Try giving the pagetree2 macro the parameter sort=natural and rearrange the page...Try giving the pagetree2 macro the parameter sort=natural and rearrange the pages in the listpages-dirview, which is accessible through Browse -> Pages.
May 07, 2010
Mitch Abramson says:
Tried all suggestions on this thread so far: the {menuid} proposed earlier and ...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?
Apr 20, 2010
G D says:
Hi guys, any help of this would be greatly appreciated!Hi guys,
any help of this would be greatly appreciated!