Angular developers need a pathto call for the content from aem page | Community
Skip to main content
madhu6750610
New Participant
Sep 15, 2017 2:25 PM UTC
Solved

Angular developers need a pathto call for the content from aem page

I generated the json file and gave the path/bin/***/filename.json . I am able to see the json file in author mode but not in publish. Our aem ops team says they cannot make bin as public. Tried to change the path, using js generated the json path file now the path is path/cntetn/***/***/filename.json which I am able to see in author mode but not in publish.

My question is is there any other way that I can try . Please if any other have idea do comment.

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
madhu6750610
madhu6750610Accepted solution
New Participant
Sep 15, 2017 7:31 PM UTC

Issue resolved.

The generated JSON also has category Tags which is from etc/tags and our admin team isn't giving permissions to access it in Pub mode, so I removed the tags which displayed the JSON content finally.

Now, able to access from /services/** as well call /content/**

Thanks everyone.

7 replies

VeenaVikraman
New Participant
Sep 15, 2017 7:43 PM UTC

Just one question Madhu ? You can get a read only permission for tags in Publish right ?

Translate
madhu6750610
madhu6750610AuthorAccepted solution
New Participant
Sep 15, 2017 7:31 PM UTC

Issue resolved.

The generated JSON also has category Tags which is from etc/tags and our admin team isn't giving permissions to access it in Pub mode, so I removed the tags which displayed the JSON content finally.

Now, able to access from /services/** as well call /content/**

Thanks everyone.

Translate
madhu6750610
New Participant
Sep 15, 2017 7:30 PM UTC

Issue resolved.

The generated JSON also has category Tags which is from etc/tags and our admin team isn't giving permissions to access it in Pub mode, so I removed the tags which displayed the JSON content finally.

Now, able to access from /services/** as well call /content/**

Thanks everyone.

Translate
VeenaVikraman
New Participant
Sep 15, 2017 5:17 PM UTC

Hi Madhu

    Few questions

  1. Can you check the permissions on your /content/***/***/filename.json path ? If it is visible in author and not in publish , first check should be done on the permissions of the path in publish. It should have allow permission for your anonymous users.
  2. Are you accessing this over dispatcher ? Are you sure you have allow permissions to .json in your farm.any file ?
  3. What error do you see when you hit /content/***/***/filename.json.in your publish ?
Translate
smacdonald2008
Level 10
Sep 15, 2017 4:00 PM UTC

Why use Angular over HTL and Sling Models?

Translate
madhu6750610
New Participant
Sep 15, 2017 3:16 PM UTC

Hi Edubey,

Yes its /content/***/***/filename.json.

Translate
edubey
Level 10
Sep 15, 2017 2:37 PM UTC

Hi

/bin will not be accessible and also not recommended

Now, Is this is a file path in the content hierarchy?

Thanks

Translate