Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Log file for Dialog.xml

Avatar

Avatar
Validate 10
Level 3
sunitac2231600
Level 3

Likes

4 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
sunitac2231600
Level 3

Likes

4 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
sunitac2231600
Level 3

24-02-2016

Dear Team,

We have a custom text component in my AEM websites.

Inside the listener we have customized our link functionality as below.

        /* handle links (add attributes as specified by rules, remove links with invalid */
                                                /* HREFs) */
                                                if (com.isTag(dom, 'a')) {
                                                    var href = com.getAttribute(dom, 'href');
                                                    if (href) {
                                                        if (this.htmlRules.links.validateHref(href)) {
                                                            this.htmlRules.links.applyToObject(dom);
                                                            return false;
                                                        } else {
                                                            this.markForRemoval(dom);
                                                            return true;
                                                        }
                                                    }
                                                }

                                                return false;
                                            };

                                            /* */

How can I see the output in my logfile?

For example I want to see the value of var href = com.getAttribute(dom, 'href'); in my log file.

View Entire Topic

Avatar

Avatar
Validate 10
Level 3
sunitac2231600
Level 3

Likes

4 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
sunitac2231600
Level 3

Likes

4 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
sunitac2231600
Level 3

24-02-2016

Thanks,

Sam