Error formatting macro: contentbylabel: com.atlassian.confluence.api.service.exceptions.BadRequestException: Could not parse cql : null
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scroll-viewport-dev/666a345f-786b-409e-b93e-3d5c15526214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Tino,right now I am not aware of a functionality to be used 'out-of-the-box', as we try to make Scroll Viewport compatible with Confluence versions before CQL was there.Right now the only option I can think of is a pluggable placeholder: https://www.k15t.com/display/VPRT/Develop+Pluggable+Placeholders If you are a Java developer it is not that hard.On the other hand I have created an improvement issue to implement a "CQL" placeholder: https://k15t.jira.com/browse/VPRT-844Cheers,-Stefan
On Thu, Mar 10, 2016 at 12:04 PM, Tino Kraft <ti...@pulse247.info> wrote:
Hi,does anyone know of a way to display pages in a Viewport theme that share labels with the page the user is viewing? This is a nice way of promoting content in our rather large public documentation, so I would be disappointed, if it's not possible in Viewport.Up until now we've been using the Related Content user macro to accomplish this in our current Confluence theme: https://confluence.atlassian.com/pages/viewpage.action?spaceKey=DISC&title=Related+ContentHowever, with Viewport it doesn't seem to work. I added the macro to a page, which I include in our Viewport theme files by using $include.page("The Page"), which results in an error message:Error formatting macro: contentbylabel: com.atlassian.confluence.api.service.exceptions.BadRequestException: Could not parse cql : nullDoes anyone have any experience implementing this kind of functionality in Viewport?Regards,Tino
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport-dev+unsub...@googlegroups.com.
Hi Stefan,thanks for the reply and for making a change request!We might look into creating a pluggable placeholder. Could you give me some pointers for this specific case concerning the development of the plugin? None of us have any experience creating Confluence plugins or working with the Atlassian SDK, so any help would be appreciated (we do have people with Java experience, so this might be possible).
-Tino
On Monday, 14 March 2016 10:46:30 UTC+2, Stefan Kleineikenscheidt (K15t Software) wrote:
Hi Tino,right now I am not aware of a functionality to be used 'out-of-the-box', as we try to make Scroll Viewport compatible with Confluence versions before CQL was there.Right now the only option I can think of is a pluggable placeholder: https://www.k15t.com/display/VPRT/Develop+Pluggable+Placeholders If you are a Java developer it is not that hard.On the other hand I have created an improvement issue to implement a "CQL" placeholder: https://k15t.jira.com/browse/VPRT-844Cheers,-Stefan
On Thu, Mar 10, 2016 at 12:04 PM, Tino Kraft <ti...@pulse247.info> wrote:
Hi,does anyone know of a way to display pages in a Viewport theme that share labels with the page the user is viewing? This is a nice way of promoting content in our rather large public documentation, so I would be disappointed, if it's not possible in Viewport.Up until now we've been using the Related Content user macro to accomplish this in our current Confluence theme: https://confluence.atlassian.com/pages/viewpage.action?spaceKey=DISC&title=Related+ContentHowever, with Viewport it doesn't seem to work. I added the macro to a page, which I include in our Viewport theme files by using $include.page("The Page"), which results in an error message:Error formatting macro: contentbylabel: com.atlassian.confluence.api.service.exceptions.BadRequestException: Could not parse cql : nullDoes anyone have any experience implementing this kind of functionality in Viewport?Regards,Tino
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scroll-viewport-dev/666a345f-786b-409e-b93e-3d5c15526214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scroll-viewport-dev/3fe1a576-996b-40fb-b17e-4acdf1307cf7%40googlegroups.com.
On Jul 22, 2019, at 8:34 AM, 'Michal Krejčí' via Scroll Viewport Developers <scroll-vi...@googlegroups.com> wrote:
Hello Tino,I wonder if you have ever managed to find a solution or perhaps created a plugin of some sort to achieve the aforementioned requirement?
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scroll-viewport-dev/f373c984-c7b0-4279-abe8-d2669e2b74a6%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scroll-viewport-dev/15de4b67-2440-44f0-b3a3-e5bfac96c225%40googlegroups.com.
#set($pinnedPages = $repository.getContentByLabel("pinned"))
#foreach($page in $pinnedPages)
<a href="$page.link">$page.title</a>
<p class="card-text">$page.excerpt</p>
<p class="card-text">$page.lastModificationDate("MMMM dd, YYYY")</p>
#end
#foreach($label in $page.labels)
#set($pinnedPages = $repository.getContentByLabel("$!label"))
#set($currentpage = $page)
#foreach($page in $pinnedPages)
#if($page != $currentpage)
<a href="$page.link">$page.title</a>
#end
#end
#end
<div class="relatedtopics">
#foreach($label in $page.labels)
#set($pinnedPages = $repository.getContentByLabel("$!label"))
#set($currentpage = $page)
#set($count = 1)
#foreach($page in $pinnedPages)
#if(($page != $currentpage) && ($count < 3))
<li>
<ul><a href="$page.link">$page.title</a></ul>
</li>
#set($count = $count + 1)
#end
#end
#end
</div>
Thanks Dan.Now, I am thinking of enhancing it. I want to list the first five pages that share the maximum number of labels with the current page's labels. For practical situation, I will assume that a page usually has only 5 labels. So pages with same 5 labels should be listed first, followed by pages with 4/5 of these labels, then 3/5, and so on but only 5 pages in total. If you or anyone can help, it will be great. I plan to work on this soon...I will share whatever I get done here.
--
You received this message because you are subscribed to the Google Groups "Scroll Viewport Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scroll-viewport...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scroll-viewport-dev/22220947-ac12-47c9-8ca0-0473c50f74fd%40googlegroups.com.
<div class="relatedtopics"><ul>
#foreach($label in $page.labels)
#set($pinnedPages = $repository.getContentByLabel("$!label"))
#set($currentpage = $page)
#set($count = 1)
#foreach($page in $pinnedPages)
#if(($page != $currentpage) && ($count < 3))
<li>
<a href="$page.link">$page.title</a>
</li>
#set($count = $count + 1)
#end
#end
#end
</ul>
</div>