AnsweredAssumed Answered

How to get this picture URL and category .

Question asked by nyszhangyong on Jun 26, 2012
Latest reply on Jun 27, 2012 by jpotts
hello

The version of the software I use is 4.0.d.

I uploaded a picture, and I set up a category for this picture , now I want to get to this URL and category of picture , I would like to get the URL and category inside in webscript code , but I do not know how to modify the following code, please help me modify the code below , thank you very much !


function doSearch()
{
// The initial template
var alfQuery =
' PATH:"/app:company_home/app:guest_home//*"' +
' AND NOT TYPE:"{http://www.alfresco.org/model/content/1.0}thumbnail"' +
' AND NOT TYPE:"{http://www.alfresco.org/model/content/1.0}folder"';

// Perform fts-alfresco language query for articles
var queryDef = {
query: alfQuery,
language: "fts-alfresco",
page: {maxItems: maxResults},
templates: []
};

// Get article nodes
var nodes = search.query(queryDef),
articles = [],
item;

// Turn nodes into article objects
for (var i = 0, j = nodes.length; i < j; i++)
{
// Create core object
node = nodes;
item =
{
nodeRef: node.nodeRef.toString(),
type: node.typeShort,
name: node.name,
title: node.properties["cm:title"]
};
}

}
nyszhangyong

Posts: 2
Joined: 11 Jun 2012, 04:15
Alfresco Version: other

0 Points (What is this?)

Outcomes