Hi,
Is there any way to populate the tags from /etc/tags/mysite/catrgory/category1/.. in my drop down menu inside dialog. With help of json i can populate my mapping json file in option, but looking for any other alternative as if the tags will add and remove json has to be changed from crxde. And this thing should be configure by business user or super user via ui.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
vdhim23 wrote...
Hi,
Is there any way to populate the tags from /etc/tags/mysite/catrgory/category1/.. in my drop down menu inside dialog. With help of json i can populate my mapping json file in option, but looking for any other alternative as if the tags will add and remove json has to be changed from crxde. And this thing should be configure by business user or super user via ui.
Thanks
Views
Replies
Total Likes
Hi there,
Not entirely sure about the 2nd part of your question, but an author doesn't need access to CRXDE Lite to add or remove tags. They can administer tags in the Tagging Admin Console, ie: http://localhost:4502/tagging
SLIM
Views
Replies
Total Likes
vdhim23 wrote...
Hi,
Is there any way to populate the tags from /etc/tags/mysite/catrgory/category1/.. in my drop down menu inside dialog. With help of json i can populate my mapping json file in option, but looking for any other alternative as if the tags will add and remove json has to be changed from crxde. And this thing should be configure by business user or super user via ui.
Thanks
Views
Replies
Total Likes
Thanks, I shifted to another approach which i seems simple. Now i have node in which has a property which contains the json format that required to drop down.
[{"text":"Type1","value":"Type1"},{"text":"Type2","value":"Type2"},{"text":"333","value":"333"}]
I have fie options.json.jsp within the compoent along with component.jsp
<%@include file="/libs/foundation/global.jsp"%><% response.setContentType("text/plain"); %><% try { Node parent = resource.getResourceResolver().getResource("/etc/IgWebCMS/articletypes").adaptTo(Node.class); String json=parent.getProperty("json").getString(); System.out.println("options json :::: "+json); } catch (RepositoryException re) {} %> ${json}
In Stdout.log it shows me :
options json :::: [{"text":"Type1","value":"Type1"},{"text":"Type2","value":"Type2"},{"text":"333","value":"333"}]
And in the dialog drop down i mentioned the options property as : $PATH.options.json
But in my dialog that values are not getting populate. Any idea.
Thanks
Views
Replies
Total Likes
vdhim23 wrote...
Thanks, I shifted to another approach which i seems simple. Now i have node in which has a property which contains the json format that required to drop down.
[{"text":"Type1","value":"Type1"},{"text":"Type2","value":"Type2"},{"text":"333","value":"333"}]
I have fie options.json.jsp within the compoent along with component.jsp
<%@include file="/libs/foundation/global.jsp"%><%
response.setContentType("text/plain");
%><%
try {
Node parent = resource.getResourceResolver().getResource("/etc/IgWebCMS/articletypes").adaptTo(Node.class);
String json=parent.getProperty("json").getString();
System.out.println("options json :::: "+json);
}
catch (RepositoryException re) {}
%>
${json}
In Stdout.log it shows me :
options json :::: [{"text":"Type1","value":"Type1"},{"text":"Type2","value":"Type2"},{"text":"333","value":"333"}]
And in the dialog drop down i mentioned the options property as : $PATH.options.json
But in my dialog that values are not getting populate. Any idea.
Thanks
$path should point to content page path + component path
Views
Replies
Total Likes
Thanks that worked
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies