<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>I am now about to put up the examples that I can post just to see how this would look like. :-)<span class="HOEnZb"><font color="#888888"><br>
</font></span></div></div></blockquote><div><br>I am very sorry for the late reply, but I have been distracted by other issues recently, unfortunately. I was thinking of something like you can see below.<br><br>Laszlo<br>
</div><div><br>=======================================<br><br>XML<br><br>add/edit<br><br>* POST Arguments: parentidX - the id of the parent content where X is a positive integer starting from one upwards<br><br>get<br><br>
<downloadrepository2>repo</downloadrepository2><br> <parentcount>2</parentcount><br> <parents details="id"><br> <content><br> <id>50</id><br>
</content><br> <content><br> <id>51</id><br> </content><br> </parents><br> <childcount>2</childcount><br> <children details="id"><br>
<content><br> <id>200</id><br> </content><br> <content><br> <id>201</id><br> </content><br> </children><br> </content><br>
<br>list<br><br>* URL Arguments: parentid - Show only those content entries which depend on the given parent content <br><br> <previewpic1><a href="https://www.KDE-Look.org/CONTENT/content-pre1/1420-1.png">https://www.KDE-Look.org/CONTENT/content-pre1/1420-1.png</a></previewpic1><br>
<parentcount>2</parentcount><br> <parents details="id"><br> <content><br> <id>1300</id><br> </content><br> <content><br> <id>1301</id><br>
</content><br> </parents><br> <childcount>2</childcount><br> <children details="id"><br> <content><br> <id>1400</id><br> </content><br>
<content><br> <id>1401</id><br> </content><br> </children><br> </content><br> <br>=======================================<br><br>JSON<br><br>diff --git a/v1/json/content.json b/v1/json/content.json<br>
index 7ae7b59..a53ae92 100644<br>--- a/v1/json/content.json<br>+++ b/v1/json/content.json<br>@@ -164,7 +164,32 @@ List:<br> "score": 50,<br> "comments": 0,<br> "preview1": "<a href="https://www.KDE-Look.org/content/preview.php?preview=1&id=1420&file1=1420-1.png&file2=1420-2.png&file3=&name=nameeee">https://www.KDE-Look.org/content/preview.php?preview=1&id=1420&file1=1420-1.png&file2=1420-2.png&file3=&name=nameeee</a>",<br>
- "previewpic1": "<a href="https://www.KDE-Look.org/CONTENT/content-pre1/1420-1.png">https://www.KDE-Look.org/CONTENT/content-pre1/1420-1.png</a>"<br>+ "previewpic1": "<a href="https://www.KDE-Look.org/CONTENT/content-pre1/1420-1.png">https://www.KDE-Look.org/CONTENT/content-pre1/1420-1.png</a>",<br>
+ "parentcount": 2,<br>+ "parents": {<br>+ "summary": "id",<br>+ [<br>+ {<br>+ "id": 1300,<br>
+ },<br>+ {<br>+ "id": 1301,<br>+ }<br>+ ]<br>+ },<br>+<br>+ "childcount": 2,<br>+ "children": {<br>
+ "summary": "id",<br>+ [<br>+ {<br>+ "id": 1400,<br>+ },<br>+ {<br>+ "id": 1401,<br>
+ }<br>+ ]<br>+ }<br> },<br> {<br> "details": "summary",<br>@@ -340,6 +365,31 @@ Get:<br> "downloadgpgfingerprint2": "6AD9 150F D8CC 941B 4541 2DCC 68B7 AB89 5754 8D2D",<br>
"downloadpackagename2": "packname",<br> "downloadrepository2": "repo",<br>+ "parentcount": 2,<br>+ "parents": {<br>
+ "summary": "id",<br>+ [<br>+ {<br>+ "id": 50,<br>+ },<br>+ {<br>+ "id": 51,<br>
+ }<br>+ ]<br>+ }<br>+<br>+ "childcount": 2,<br>+ "children": {<br>+ "summary": "id",<br>+ [<br>
+ {<br>+ "id": 200,<br>+ },<br>+ {<br>+ "id": 201,<br>+ }<br>+ ]<br>
+ }<br> }<br> ]<br> }<br></div></div>