i am looking for cq.foundation-main client library path.
I would like to disable granite.jquery client lib on aem 6.3
Thanks.
DISCLAIMER: I would not disable granite.jquery clientlib as it is a dependency for many other clientlibs and might break the UI in your AEM instance. Do this at your own risk.
here is the answer to your question:
to find the location of any clientlib, you can go to: http://localhost:4502/libs/granite/ui/content/dumplibs.html
then search for the clientlib category, in your case: cq.foundation-main and the path will be listed.
on my 6.3 instances, that path is /etc/clientlibs/foundation/main
Related
The documentation states that I can configure the liferay server to use my own templates for the email messages. Specifically, if I add these properties to a portal-ext-env.properties in $CATALINA_BASE/conf/liferay:
blogs.email.entry.added.enabled=true
blogs.email.entry.added.subject=${resource:com/liferay/portlet/blogs/dependencies/email_entry_added_subject.tmpl}
blogs.email.entry.added.body=${resource:com/liferay/portlet/blogs/dependencies/email_entry_added_body.tmpl}
Liferay will supposedly use the templates in the specified paths (com/liferay/portlet/blogs/dependencies/email_entry_added_subject.tmpl and com/liferay/portlet/blogs/dependencies/email_entry_added_body.tmpl). The thing is, it's not very clear what these paths are relative to. Are these files relative to $CATALINA_BASE? For example, would the above configuration result in Liferay looking up $CATALINA_BASE/com/liferay/portlet/blogs/dependencies/email_entry_added_body.tmpl for creating the body of an email message? If this is not the case, where does Liferay lookup templates for Blog-related email messages?
After some digging, I've found that you place the templates in the $CATALINA_BASE/webapps/ROOT/WEB-INF/classes folder. Paths that you reference in the properties (e.g. blogs.email.entry.added.body=${resource:com/liferay/portlet/blogs/dependencies/email_entry_added_body.tmpl}) are relative to the aforementioned classes folder.
So, if I wanted Liferay to use a template file in the ff. relative path: org/foo/my_email_entry_added_body.tmpl, I would do two things:
Place the file in $CATALINA_BASE/webapps/ROOT/WEB-INF/classes/org/foo/my_email_entry_added_body.tmpl.
Add the following line to $CATALINA_BASE/portal-ext-env.properties: blogs.email.entry.added.body=${resource:org/foo/my_email_entry_added_body.tmpl}.
I consulted my co-worker and got a better understanding of why this is. The architecture of a Liferay application is such that it comes bundled with a Tomcat server. According to the documentation, WEB-INF/classes is a directory that a web app deployed to a Tomcat server looks up for classes and resources:
A class loader is created for each web application that is deployed in a single Tomcat instance. All unpacked classes and resources in the /WEB-INF/classes directory of your web application, plus classes and resources in JAR files under the /WEB-INF/lib directory of your web application, are made visible to this web application, but not to other ones.
Specifically, this folder is high in priorty in the web app's classpath.
When you see Liferay code similar to ${resource:path/to/foo}, it's looking up resources in its classpath. One of the paths in that classpath is WEB-INF/classes. Hence, if path/to/foo is placed in WEB-INF/classes, Liferay will find path/to/foo there.
I downloaded and installed Postsharp the essentials version which according to the matrix on their website includes caching.
I added it to my project by right clicking and selecting the Add Postsharp option.
When I go into my project to play with testing and I type:
using PostSharp.Patterns
Patterns is not an option for me, I have Aspects, Collections, Constraints... but no Patterns.
Am I missing a reference, is this a license issue?
PostSharp is split into multiple NuGet packages. Selecting "Add PostSharp to project" only installs the core package (PostSharp). In your case, you need to install PostSharp.Patterns.Caching. Please note that you will also need to specify the caching backend, see the documentation on caching.
I am looking to find the node (source code ) for http://mycq5.com:4502/crx/explorer/browser/index.jsp in CQ5. I searched crxde I couldn't find where this is located. Can anyone let me know how these urls are mapped inside repository. I need to understand the url and mapping structure and find source code to some of the functionality.
URLS that I am interested are
http://myccq.com:4502/crx/de/index.jsp
http://myccq.com:4502/crx/explorer/ui/aceditor.jsp
CRXDE Lite and CRX Explorer are part of the CRX repository. As such, they are not based on Sling and there are no JCR nodes related to them. They are shipped as OSGi bundles listed in the Felix console:
com.adobe.granite.crxde-lite
com.adobe.granite.crx-explorer
Files you are looking for are embedded as resources in these bundles.
I have to upload about 30M for my app since it uses a lot of libraries, log, web engine and so on.
I think there should be a way to share these libs on glassfish, but I failed to figure it out. I tried to put them in domain/lib/ext but does not work.
So where should I store these libs and how should I refer to them? thank you.
Why domaindir/lib/ext does not work?
from glassfish manual:
Optional packages are packages of Java classes and associated native code that application
developers can use to extend the functionality of the core platform.
To use the Java optional package mechanism, copy the JAR files into the domain-dir/lib/ext
directory, then restart the server.
Why domaindir/lib work?
To use the Common class loader, copy the JAR files into the domain-dir/lib or as-install/lib
directory or copy the .class files (and other needed files, such as .properties files) into the
domain-dir/lib/classes directory, then restart the server.
Using the Common class loader makes an application or module accessible to all applications
or modules deployed on servers that share the same configuration.However, this accessibility
does not extend to application clients.
If I remember well, you can also specify additional libraries in the classpath via the admin console (in Application Server > JVM settings or something like this). Then you can put them wherever you want.
(I had a quick look at Pascal's link, but I don't know if that's what they describe, if yes, my apologies for the duplicate answer.)
One option would be to put them in domains/domain1/lib. But actually, I suggest to read GlassFish equivalent to WebSphere's "shared libraries", including the comments.
How do you add a PHP framework to code assist/completion in Eclipse PDT?
And is it possible to have that framework added as default for all projects?
Generally speaking in Eclipse, you can add a library or framework to code assist/completion by:
Going into Project > Properties
Under PHP Include Path, pick the "Libaries" tab.
Add an "external folder" with the path to where your framework is located.
This can also be done on project creation. I'm not sure of a way to have it automatically attach a library in this way.
The feature itself is a bit more flexible than that, allowing you to do things like set variables for a DB connection, rather than having to copy down lengthy config files to your local install.