since ‎25-03-2018
‎10-12-2019
jorarteag
Level 1
HTML Parser deletes Script tags
Avatar

jorarteag

jorarteag
- Adobe Social
Hi everyone, I am working with html parser to modify some ulr's on my pages, but in this cases deletes the tag almost completely. Here is my config.Example: Result after htmlparser= Any help are wellcome.

Views

2.1K

Likes

0

Replies

0
Re: Adapt resource to Page int unit test
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
Thanks Peter! I will look whats its the more convenient solution for us.

Views

2.6K

Likes

0

Replies

0
Re: Adapt resource to Page int unit test
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
Thanks for the answer Peter.Yes, I already saw that, but I'm wondering if this is possible without wcm.io (that's where it comes from AemContext), now I just use Apache Sling Mocks. I'm looking for solutions using just this dependency, and if is not possible I will jump to the other one.

Views

2.7K

Likes

0

Replies

0
Adapt resource to Page int unit test
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
Hi everyone, I am having problems to test Pages in my unit tests. I have the following code:Resource resource = context.load().json(PAGE_PATH + JSON_EXT, PAGE_PATH);Page page = resource.adaptTo(Page.class);The answer of adapTo is always null.I am working with SlingMocks, and this is my resource public final SlingContext context = new SlingContext();There is a option to do this? I know its possible with wcm.io​ but I don't want to include that just for this kind of tests.Thanks in advance.

Views

4.7K

Likes

0

Replies

5
Re: Different behavior of path/url with sightly
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
Hi, yes, I already know that, but Im looking for a cleaner way, if this exists and it's worth to do.I found this

Views

2.5K

Likes

0

Replies

0
Different behavior of path/url with sightly
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
Hi, I am working with sightly in a template that has a link to redirect to the parent page, I can access the path of the parent wit this: currentPage.parent.path, this give me the complete path of the parent.But also I need that with a extension .html in author environment (wcmmode enabled and disabled), and with a / in production.How can I do that? Its possible with sightly or I should look a SlingModel solution?Thank you in advance

Views

4.1K

Likes

0

Replies

3
Re: Json files with i18n configuration not getting imported with eclipse
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
I think there is a bug, vault does not have any configuration to avoid that, anyways now I am working without the json config to i18n, also I found other similar questions in the forum.Thank you.

Views

10.9K

Likes

0

Replies

0
Re: Json files with i18n configuration not getting imported with eclipse
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
There are some images of the files in the crx, and whe I use the import functionality of the aem plugin for eclipse the i18n folder is still empty, this just its happening with json files with languague properties.

Views

10.9K

Likes

0

Replies

0
Json files with i18n configuration not getting imported with eclipse
Avatar

jorarteag

jorarteag
- Adobe Experience Manager
Hi, im working with eclipse (last version) and its aem plugin, in crx I created a couple of files inside a component for its i18n configuration (i.e de.json, es.json) and that is working in my pages, but when I want to import that to my local filesystem with eclipse those files are not imported. I check my vault config and its fine, does not exclude any json file, and if I change the name of the file adding something after the .json, like de.json.original eclipsewill recognize that, but does not...

Views

11.1K

Likes

0

Replies

4