History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BUILDER-722
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alain Moran
Reporter: Guy Fraser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Builder

list-* macros output borked in list mode

Created: 11/Sep/07 08:54 PM   Updated: 13/Sep/07 10:34 PM
Component/s: None
Affects Version/s: 3.0.0.b9
Fix Version/s: 3.0.0.b10

Time Tracking:
Not Specified


 Description  « Hide
Notation:
{list-descendants:default=@home|mode=list}{list-descendants}

Ouptut:

<ul class="listed-pages"><li><a href="/display/ds/Confluence+Overview">Confluence Overview</a></li><li><a href="/display/ds/Thumbnail+gallery">Thumbnail gallery</a></li><li><a href="/display/ds/Tasklist">Tasklist</a></li><li><a href="/display/ds/News">News</a></li><li><a href="/display/ds/Creating+pages+and+linking">Creating pages and linking</a></li><li><a href="/display/ds/Formatting+Content">Formatting Content</a></li><li><a href="/display/ds/Source+code">Source code</a></li><li><a href="/display/ds/Search+Confluence+content">Search Confluence content</a></li><li><a href="/display/ds/Using+Spaces">Using Spaces</a></li><li><a href="/display/ds/Example+Index">Example Index</a></li><li><a href="/display/ds/Email+archiving">Email archiving</a></li><li><a href="/display/ds/RSS+Capabilities">RSS Capabilities</a></li><li><a href="/display/ds/Jira+integration">Jira integration</a></li><li><a href="/display/ds/Breadcrumb+demonstration">Breadcrumb demonstration</a></li></ul><div class="listed-pages"><ul>

	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32787" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32770" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32771" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32772" class="createlink">%ceoname%</a></li>

</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32773" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32777" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32778" class="createlink">%ceoname%</a></li>
</ul>
<ul>

	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32779" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32780" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32781" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32784" class="createlink">%ceoname%</a></li>

</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32785" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32788" class="createlink">%ceoname%</a></li>
</ul>
<ul>
	<li><a href="/pages/createpage.action?spaceKey=ds&amp;title=%25ceoname%25&amp;linkCreation=true&amp;fromPageId=32774" class="createlink">%ceoname%</a></li>
</ul>

The first chunk of output is correct - there should be a single <ul> with a bunch of <li>'s. However, there are then herds of other <ul>'s output, each with a garbage <li> contianing a link to %ceoname%



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Alain Moran - 11/Sep/07 09:01 PM
list-* macros do not have a body, the syntax should be:
{list-descendants:default=@home|mode=list}

As described by the notation guide.


Alain Moran - 11/Sep/07 09:06 PM
I have removed the mode-parameter in beta10 ... not sure what it was doing in there anyway.

You should use the with-* for rendering blocks of content.


Guy Fraser - 11/Sep/07 09:27 PM
Ah, yes, that makes sense. I was going to say that if there was a rendered mode I'd need somewhere to define what to render it as LOL.

Does this mean that we can also remove the bits in the list-* notation guide about the %whatever% (right col of notation guide, under the param info)


Alain Moran - 11/Sep/07 09:29 PM
Yip .. good point ... removed

Guy Fraser - 11/Sep/07 09:38 PM
Make sure it defaults to mode=list as now understanding what was happening would indicate to me that my "closing" tag was actually a new instance of the macro being called and it's that new instance that spewed out gibberish. From the old docs, it looks like the mode would default to rendered?

Alain Moran - 12/Sep/07 01:17 AM - edited
'mode' has been COMPLETELY removed.

Guy Fraser - 12/Sep/07 01:22 AM
Yes, it's been removed. But before it was removed the default was "rendered" - I assume you've removed mode and just hard-coded "list"?

Alain Moran - 12/Sep/07 01:27 AM - edited
correct .. the list macros are now NO LONGER RENDERED, they are generated.

Alain Moran - 13/Sep/07 05:13 PM
Released with beta 10