since ‎08-12-2010
‎10-12-2019
gabriel_walt
Employee
Re: we-retail-journal sample implementation package
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Hi Sandeep,You're correct, this We.Retail Journal sample will be published as the SPA authoring feature will be released for 6.4.Best,Gabriel

Views

605

Likes

0

Replies

0
Re: POM entries for Sightly package
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Hi Reinhard,Have a look at following blog post: http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2014/05/aem6-maven-dependencies.htmlWith AEM6 there is just one big Maven dependency that you need to add to your project, and you are good to go! com.adobe.aem aem-api 6.0.0.1 provided Following urls might also be useful:Maven Repo: http://repo.adobe.com/nexus/content/repositories/releases/com/adobe/aem/aem-api/6.0.0.1/Java Doc: http://docs.adobe.com/content/docs/en/aem/6-0/develop/...

Views

393

Likes

0

Replies

0
Re: Cognifide Slice
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
We have decided to centralize all Sightly documentation on our usual docs and not create yet another separate site for that. This is why sightly.io has been taken down, instead please have a look at: http://dev.day.com/content/docs/en/aem/6-0/develop/sightly.html.Cheers,Gabriel

Views

339

Likes

0

Replies

0
Re: Could you please provide me some sample examples on sightly in AEM6??
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
The documentation can be found here:http://docs.adobe.com/docs/en/aem/6-0/develop/sightly.htmlhttp://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-java.htmlhttp://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-javascript.htmlAlso, there are several blog posts on that topic:Sightly intro part 1Sightly intro part 2Sightly intro part 3Sightly intro part 4Sightly intro part 5: FAQAnd in AEM, you can have a look at following content:Page built with Sightly: http://localhost:450...

Views

221

Like

1

Replies

0
Re: Getting started with Sightly
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
We are still finishing the Brackets extension that you'll need to install for URLs of the Developer Mode to open in Brackets. Please give us a few more days for finalising that and releasing it. So stay tuned!Just to be clear, an important thing to understand is that the goal of the Brackets extension is quite different from CRXDE Lite: It won't be about hacking potentially everything there is in the content repository, but about offering an efficient workflow for web developers when they work o...

Views

339

Likes

0

Replies

0
Re: Getting started with Sightly
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Hi,FYI, we've just released the Brackets extension for AEM and Sightly:http://docs.adobe.com/docs/en/dev-tools/sightly-brackets.htmlThis version offers great sync features to allow front-end developers to be working productively on AEM projects. It also offers nice Sightly syntax highlighting and auto-completion. What it doesn't have yet is an integration with the Developer Mode so that when you click on a component it opens Brackets instead of CRXDE Lite; we'll need a bit more time for this one...

Views

305

Likes

0

Replies

0
Re: Sightly Domain still down / Documentation is not fully working
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
FYI, we've just released the plugin for Brackets and Eclipse:http://docs.adobe.com/docs/en/dev-tools.html

Views

200

Likes

0

Replies

0
Re: Sightly Domain still down / Documentation is not fully working
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Here you go for building Sightly:Java Doc: http://docs.adobe.com/content/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/cq/sightly/WCMUse.htmlPublic Maven Repository: http://repo.adobe.com/nexus/content/repositories/releases/com/adobe/aem/aem-api/6.0.0.1/Basically, following blog post also explains how to setup the AEM Maven dependencies: http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2014/05/aem6-maven-dependencies.htmlAll of this is currently being added to the official docum...

Views

208

Likes

0

Replies

0
Re: Sightly Domain still down / Documentation is not fully working
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
We did initially setup sightly.io with some info about Sightly, but finally decided to rather centralize everything on the docs. The link you provided is indeed the place to go now.And btw, there are several blog posts on that topic:Sightly intro part 1Sightly intro part 2Sightly intro part 3Sightly intro part 4Sightly intro part 5: FAQ

Views

197

Likes

0

Replies

0
Re: Sightly - Issue while passing parameters to Java Use-Api
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
The corresponding documentation page has been updated.Thanks for having brought this to our attention!

Views

899

Likes

0

Replies

0
Re: How to set convenience variables in sightly?
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
His code example is doing exactly that, it sets yourName in the test, which can then be reused within or later on:....${yourName}Have a quick look at the docs of data-sly-test to better understand that behavior.More generally though, if you need to set many variables in your template, I'd rather advise you to use the Use-API to prepare all the variables you'll need in your template. This will probably be easier to understand by someone reading your template and thus be more maintainable than set...

Views

4.2K

Likes

0

Replies

0
Re: How to set convenience variables in sightly?
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
I agree with Feike. Keep in mind that each data-sly-unwrap you're doing will represent one step you're moving away from having your template markup to correspond to your resulting markup. The goal of Sightly is to keep the two as close together as possible for making it as obvious as possible for someone who reads the template to understand what the final resulting markup is going to be.

Views

4.2K

Likes

0

Replies

0
Re: Is there the equivalent of requestScope variables in Sightly?
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
See full-length answer to the corresponding question on StackOverflow:http://stackoverflow.com/questions/25430981/are-there-requestscope-variables-in-sightly/25447524#25447524

Views

237

Likes

0

Replies

0
Re: Confusion about JSP and HTML pages
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
I'd advise you to go with Sightly instead of JSP for any new project as it is designed to replace JSP. This will give you automatic proper HTML encoding and cross-site scripting protection built-in. It will also force some healthy separation of concerns, preventing the kind of code & markup mix you typically can end-up with in JSPs. Thus making the markup overall more readable.

Views

218

Likes

0

Replies

0
Re: Sightly: list child nodes (+ error in docs?)
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Hi Paul,Resource properties can directly be accessed on the resource object itself and don't necessarily need to be accessed through the properties object:These two expressions do the same: ${resource.sling:resourceType} ${properties.sling:resourceType}But only properties can be iterated over, in case you wish to display all properties: Key: ${item} Value: ${properties[item]} And to display another resource's properties, you should access them via the resource as within the template you cannot a...

Views

466

Like

1

Replies

0
Re: Developing using Eclipse AEM plugin and Brackets for AEM 6.0
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
You need to open the folder that contains the jcr_root folder (as well as the META-INF folder). In the case of projects created with the "AEM Sample Multi-Module Project" archetype, like the Eclipse plugin does, then you have to open ui.apps/src/main/content in Brackets.If you don't open the right folder, then the synchronization of your content within Brackets with your AEM instance doesn't work.

Views

184

Likes

0

Replies

0
Re: Implementing personalization with Sightly
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Btw, you can include with Sightly a taglib like you did in JSP; the generated markup is then the same.Have a look at the Client Library section of the docs Shekhar pointed you to:http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html#Client%20Libraries

Views

309

Likes

0

Replies

0
Re: AEM 6
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
There's no such feature yet in Sightly.If you can file an enhancement request on DayCare, this helps to raise the priority for it.

Views

152

Likes

0

Replies

0
Re: How do I determine current mode client side
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Hi James,We are working on improving this. But for now you can listen to the cq-layer-activated event, which will pass an object containing the new layer being activated (layer) and the previous one (prevLayer). You can then get the active layer as described with Granite.author.layerManager.getCurrentLayer(), and set accordingly a class on your page body.I hope that this will do the trick!Cheers,Gabriel

Views

1.2K

Likes

0

Replies

0
Re: How to use Brackets editor
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
FYI, we've just released the Brackets extension that should do what you're looking for:http://docs.adobe.com/docs/en/dev-tools/sightly-brackets.htmlBest,Gabriel

Views

330

Likes

0

Replies

0
Re: AEM 6 Sightly Javascript Use API
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
The use function is implemented and declared in Java in the "io.sightly.js.bundle" bundle.

Views

113

Likes

0

Replies

0
Re: AEM 6 - Sightly Page Component + Inheritance
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
And GRANITE-6404 (data-sly-use in parent component does not load object overlaid in inherited component) will be fixed in SP2, which will be released in January 2015.

Views

495

Likes

0

Replies

0
Re: AEM 6 - Sightly Page Component + Inheritance
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
No it is not, unfortunately.

Views

494

Likes

0

Replies

0
Re: AEM 6 - Sightly Page Component + Inheritance
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
This issue is tracked internally (GRANITE-6589 - "data-sly-use in parent component does not load script overlaid in inherited component"), we'll try to keep this thread updated when some fixes will be available. But we don't have a date defined yet for an update, meaning that it won't happen so soon.

Views

497

Likes

0

Replies

0
Re: data-sly-test (Sightly)
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Hi Prateek,As explained, this only works for server-side JavaScript, so I'm assuming that this is the case for you.This is how a simple example would like like: ${logic.foo} Assuming that you have something like following corresponding JavaScript:use(function () { return { foo: 'My foo text...' }; });What it does: if the foo text exists and is not empty, then the element will be displayed, showing the content of the foo text.In case this doesn't answer your question, then please explain further...

Views

1.7K

Likes

0

Replies

0
Re: data-sly-test (Sightly)
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Sightly is a server-side template language, so you cannot use it to do client-side operations. The confusion might come from the fact that it is using data attributes, or from the fact that it can also use JavaScript as scripting language to prepare the variables. But despite it looking a bit like a client-side thing, it is actually all evaluated on the server: a Sightly template has to be placed into AEM components, just like the JSP templates. Sightly is basically a replacement for JSP.If you ...

Views

1.7K

Likes

0

Replies

0
Re: Sightly - Include another HTML and pass parameters
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Got it! You're correct, each componentService.componentData.* variable access will call the getComponentData method.Then I'd create another Java object to retrieve getComponentData, this will act like a cache for the current template:public class Logic extends WCMUse { private ComponentData data; @Override public void activate() throws Exception { ComponentService s = new ComponentService(); data = s.getComponentData(); } public String getData() { return data; } }If you have multiple templates a...

Views

2.1K

Like

1

Replies

0
Re: Sightly - Include another HTML and pass parameters
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Got it! You're correct, each componentService.componentData.* variable access will call the getComponentData method.Then I'd create another Java object to retrieve getComponentData, this will act like a cache for the current template:public class Logic extends WCMUse { private ComponentData data; @Override public void activate() throws Exception { ComponentService s = new ComponentService(); data = s.getComponentData(); } public String getData() { return data; } }If you have multiple templates a...

Views

2.1K

Likes

0

Replies

0
Re: Sightly - Include another HTML and pass parameters
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
It would be possible to do both the double test and the variable assignment in one step, but that would look confusing, so I spare you that.But I think that there's a conceptual issue in your code: data-sly-test isn't intended to be used only to set variables, it is primarily a conditional statement. Usually, you don't have to set variables in the template as you can simply access the members like that: ${componentService.componentData.foo}. In case you really have to set those variables, then y...

Views

2.1K

Likes

0

Replies

0
Re: Sightly - Include another HTML and pass parameters
Avatar

gabriel_walt

Employee

gabriel_walt
- Adobe Experience Manager
Btw, to keep the template markup as simple as possible, your first two divs should be combined into one: ...

Views

2.1K

Likes

0

Replies

0