Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Alfresco 3 Cookbook
  • Table Of Contents Toc
Alfresco 3 Cookbook

Alfresco 3 Cookbook

4 (3)
close
close
Alfresco 3 Cookbook

Alfresco 3 Cookbook

4 (3)

Overview of this book

Alfresco is the renowned and multiple award winning open source Enterprise content management system which allows you to build, design, and implement your very own ECM solutions.You have read a number of tutorials, blogs, and books on Alfresco. Now you're in the real world, trying to use Alfresco, but you’re running into problems with it. This is the book you want. Packed full of solutions that can be instantly applied, this cookbook with its practical based recipes and minimal explanation meets that demand.This Alfresco 3 cookbook boasts a comprehensive selection of recipes covering everything from the basics to the advanced. The book has recipes for quickly installing Alfresco in Windows and Linux and helping you use custom content model, rules, and search. There is also a collection of recipes focused on creating Scripts, Freemarker templates, Web Scripts, and new workflow definitions. Steps to integrate Alfresco with other systems like MS-Office are also included. You will be able to use Alfresco’s File and Email servers. Finally, step-by-step recipes are presented to create an Alfresco build environment and compile the source code. This Alfresco 3 Cookbook is perfect for developers looking to start working on Alfresco quickly, gain complete understanding, write custom implementations, and achieve expertise very easily.
Table of Contents (21 chapters)
close
close
Alfresco 3 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Debugging Alfresco JavaScript


As you have seen, using Alfresco JavaScript you write scripts which execute in your server, not at your client browser end. You cannot write user interactive JavaScript code such as alert, inputbox, and so on. As a developer, this makes things a bit complex in terms of debugging and troubleshooting your code.

However, Alfresco comes to your rescue yet again.

There are two ways to debug your code.

  1. 1. Using the Logging API:

    Like other root level APIs, Alfresco provides a logger object which exposes two methods to log your debug code in your console logger.

    • isLoggingEnabled: This helps to identify whether console logging is enabled or not. By default, it is disabled.

    • log: You pass your log string value into this method. And if logging is enabled, you get your messages logged in console output.

  2. 2. Using the JavaScript Debugger:

    This is another advanced user interface Alfresco offers for debugging, which allows step-by-step execution and debugging in the JS code.

    Note

    It...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Alfresco 3 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon