Re: CRXDR Lite with non-AEM servers?

2014-12-29 Thread Sandro Boehme

Note that Sandro Boehme recently contributed his JCR editor to Sling,
at contrib/explorers/resourceeditor, so there's concrete hope of
getting a full-blown editor in Sling.

Yes, after adding tests I will work on making properties editable.

To just try out the current version of the Resource Editor you can add 
the following OBR to your repository

http://www.jcrbrowser.org/sling/obr/repository.xml
and install the Apache Sling Resource Editor 
(org.apache.sling.resource-editor) from the OSGi Repository in the Sling 
Web Console.

You then find the Resource Editor at:
http://localhost:8080/reseditor/.html

Best,

Sandro


Re: Getting started with Sling

2014-12-29 Thread Henry Saginor
Hmm … That is obvious I guess. :) It’s just the only thing I could think of. 
Seems maven sling plugin is getting a 404. And I just installed espblog this 
way myself.
But if you can access the web console you can also upload/install the bundle 
manually from there (from http://localhost:8080/system/console/bundles), just 
to get going. 

On Dec 29, 2014, at 3:10 PM, Sylvain Wallez  wrote:

> Sorry, I forgot to state the obvious: yes, Sling is started and the console 
> works fine!
> 
> I started it from launchpad/builder/target by running
>   java -jar org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar
> 
> Sylvain
> 
> Le 30/12/2014 00:02, Henry Saginor a écrit :
>> Hi Sylvian,
>> 
>> Can you access Felix Web Console at http://localhost:8080/system/console? 
>> How are you starting your Sling instance?
>> 
>> Henry
>>  On Dec 29, 2014, at 2:30 PM, Sylvain Wallez  wrote:
>> 
>>> Le 29/12/2014 08:17, Bertrand Delacretaz a écrit :
 Hi Sylvain,
 
 Good to see you here ;-)
>>> Hi Bertrand ! Looking at the list archives, I've seen quite a few familiar 
>>> names ;-)
>>> 
 On Sun, Dec 28, 2014 at 8:54 PM, Sylvain Wallez  wrote:
> ...I thought of having an authoring area that would store content in its
> original format (html, asciidoc or markdown) and have an observer that
> converts this content to html and stores it in the publishing area under
> /content/blog///...
 That does match the Sling way of doing things, and that might also
 solve your archive URL issue, if you put your converted posts at paths
 like /posts/2014/12/25/merryxmas.
 
 By setting the same resource type on all nodes from 2014 down you can
 use the same rendering script for all of those URLs, that recursively
 collects all children and renders them.
 
 You don't need queries then, any URL like /posts/2014.html or
 /posts/2014/12.html will do the right thing, and generating the
 archive navigation is just walking down the tree.
 
 You could also omit the authoring area, directly store your content
 under /posts and use a Sling Model PostConstruct method [1] to convert
 the post's markup to HTML on the fly. Using access control to hide
 posts that shouldn't be public yet can make staging transparent,
 you'll just see the posts that belong to you when authoring as a
 logged in user, and they are invisible on the public website which
 uses the anonymous user.
 
 Hope this helps, and if you're able to contribute your blog code as an
 example that would be fantastic!
>>> Sounds interesting, but I'm facing a newbie problem: I tried to install the 
>>> espblog by following the instructions in samples/espblog/README.txt, and 
>>> installing fails with this message:
>>> 
>>> $ mvn install -P autoInstallBundle
>>> ...
>>> [INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
>>> org.apache.sling.samples.path-based.rtp ---
>>> [INFO] Local OBR update disabled (enable with -DobrRepository)
>>> [INFO]
>>> [INFO] --- maven-sling-plugin:2.1.0:install (install-bundle) @ 
>>> org.apache.sling.samples.path-based.rtp ---
>>> [INFO] Installing Bundle 
>>> org.apache.sling.samples.path-based.rtp(/Users/sylvain/dev/apache.org/sling/sling/samples/path-based-rtp/target/org.apache.sling.samples.path-based.rtp-2.0.5-SNAPSHOT.jar)
>>>  to http://localhost:8080/system/console via POST
>>> [ERROR] Installation failed, cause: Not Found
>>> 
>>> This is for path-based-rtp, and the same happens for espblog.
>>> 
>>> I suspect this must be related to NONE in 
>>> parent/pom.xml but I don't know what to do with it.
>>> 
>>> Thanks for any help, I'm feeling stupid :-)
>>> 
>>> Sylvain
>>> 
>>> -- 
>>> Sylvain Wallez - http://bluxte.net
>>> 
>> 
> 
> 
> -- 
> Sylvain Wallez - http://bluxte.net
> 



Re: Getting started with Sling

2014-12-29 Thread Sylvain Wallez
Sorry, I forgot to state the obvious: yes, Sling is started and the 
console works fine!


I started it from launchpad/builder/target by running
   java -jar org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar

Sylvain

Le 30/12/2014 00:02, Henry Saginor a écrit :

Hi Sylvian,

Can you access Felix Web Console at http://localhost:8080/system/console? How 
are you starting your Sling instance?

Henry
  
On Dec 29, 2014, at 2:30 PM, Sylvain Wallez  wrote:



Le 29/12/2014 08:17, Bertrand Delacretaz a écrit :

Hi Sylvain,

Good to see you here ;-)

Hi Bertrand ! Looking at the list archives, I've seen quite a few familiar 
names ;-)


On Sun, Dec 28, 2014 at 8:54 PM, Sylvain Wallez  wrote:

...I thought of having an authoring area that would store content in its
original format (html, asciidoc or markdown) and have an observer that
converts this content to html and stores it in the publishing area under
/content/blog///...

That does match the Sling way of doing things, and that might also
solve your archive URL issue, if you put your converted posts at paths
like /posts/2014/12/25/merryxmas.

By setting the same resource type on all nodes from 2014 down you can
use the same rendering script for all of those URLs, that recursively
collects all children and renders them.

You don't need queries then, any URL like /posts/2014.html or
/posts/2014/12.html will do the right thing, and generating the
archive navigation is just walking down the tree.

You could also omit the authoring area, directly store your content
under /posts and use a Sling Model PostConstruct method [1] to convert
the post's markup to HTML on the fly. Using access control to hide
posts that shouldn't be public yet can make staging transparent,
you'll just see the posts that belong to you when authoring as a
logged in user, and they are invisible on the public website which
uses the anonymous user.

Hope this helps, and if you're able to contribute your blog code as an
example that would be fantastic!

Sounds interesting, but I'm facing a newbie problem: I tried to install the 
espblog by following the instructions in samples/espblog/README.txt, and 
installing fails with this message:

$ mvn install -P autoInstallBundle
...
[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
org.apache.sling.samples.path-based.rtp ---
[INFO] Local OBR update disabled (enable with -DobrRepository)
[INFO]
[INFO] --- maven-sling-plugin:2.1.0:install (install-bundle) @ 
org.apache.sling.samples.path-based.rtp ---
[INFO] Installing Bundle 
org.apache.sling.samples.path-based.rtp(/Users/sylvain/dev/apache.org/sling/sling/samples/path-based-rtp/target/org.apache.sling.samples.path-based.rtp-2.0.5-SNAPSHOT.jar)
 to http://localhost:8080/system/console via POST
[ERROR] Installation failed, cause: Not Found

This is for path-based-rtp, and the same happens for espblog.

I suspect this must be related to NONE in 
parent/pom.xml but I don't know what to do with it.

Thanks for any help, I'm feeling stupid :-)

Sylvain

--
Sylvain Wallez - http://bluxte.net






--
Sylvain Wallez - http://bluxte.net



Re: Getting started with Sling

2014-12-29 Thread Henry Saginor
Hi Sylvian,

Can you access Felix Web Console at http://localhost:8080/system/console? How 
are you starting your Sling instance?

Henry
 
On Dec 29, 2014, at 2:30 PM, Sylvain Wallez  wrote:

> Le 29/12/2014 08:17, Bertrand Delacretaz a écrit :
>> Hi Sylvain,
>> 
>> Good to see you here ;-)
> 
> Hi Bertrand ! Looking at the list archives, I've seen quite a few familiar 
> names ;-)
> 
>> On Sun, Dec 28, 2014 at 8:54 PM, Sylvain Wallez  wrote:
>>> ...I thought of having an authoring area that would store content in its
>>> original format (html, asciidoc or markdown) and have an observer that
>>> converts this content to html and stores it in the publishing area under
>>> /content/blog///...
>> That does match the Sling way of doing things, and that might also
>> solve your archive URL issue, if you put your converted posts at paths
>> like /posts/2014/12/25/merryxmas.
>> 
>> By setting the same resource type on all nodes from 2014 down you can
>> use the same rendering script for all of those URLs, that recursively
>> collects all children and renders them.
>> 
>> You don't need queries then, any URL like /posts/2014.html or
>> /posts/2014/12.html will do the right thing, and generating the
>> archive navigation is just walking down the tree.
>> 
>> You could also omit the authoring area, directly store your content
>> under /posts and use a Sling Model PostConstruct method [1] to convert
>> the post's markup to HTML on the fly. Using access control to hide
>> posts that shouldn't be public yet can make staging transparent,
>> you'll just see the posts that belong to you when authoring as a
>> logged in user, and they are invisible on the public website which
>> uses the anonymous user.
>> 
>> Hope this helps, and if you're able to contribute your blog code as an
>> example that would be fantastic!
> 
> Sounds interesting, but I'm facing a newbie problem: I tried to install the 
> espblog by following the instructions in samples/espblog/README.txt, and 
> installing fails with this message:
> 
> $ mvn install -P autoInstallBundle
> ...
> [INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
> org.apache.sling.samples.path-based.rtp ---
> [INFO] Local OBR update disabled (enable with -DobrRepository)
> [INFO]
> [INFO] --- maven-sling-plugin:2.1.0:install (install-bundle) @ 
> org.apache.sling.samples.path-based.rtp ---
> [INFO] Installing Bundle 
> org.apache.sling.samples.path-based.rtp(/Users/sylvain/dev/apache.org/sling/sling/samples/path-based-rtp/target/org.apache.sling.samples.path-based.rtp-2.0.5-SNAPSHOT.jar)
>  to http://localhost:8080/system/console via POST
> [ERROR] Installation failed, cause: Not Found
> 
> This is for path-based-rtp, and the same happens for espblog.
> 
> I suspect this must be related to NONE in 
> parent/pom.xml but I don't know what to do with it.
> 
> Thanks for any help, I'm feeling stupid :-)
> 
> Sylvain
> 
> -- 
> Sylvain Wallez - http://bluxte.net
> 



Re: Getting started with Sling

2014-12-29 Thread Sylvain Wallez

Le 29/12/2014 08:17, Bertrand Delacretaz a écrit :

Hi Sylvain,

Good to see you here ;-)


Hi Bertrand ! Looking at the list archives, I've seen quite a few 
familiar names ;-)



On Sun, Dec 28, 2014 at 8:54 PM, Sylvain Wallez  wrote:

...I thought of having an authoring area that would store content in its
original format (html, asciidoc or markdown) and have an observer that
converts this content to html and stores it in the publishing area under
/content/blog///...

That does match the Sling way of doing things, and that might also
solve your archive URL issue, if you put your converted posts at paths
like /posts/2014/12/25/merryxmas.

By setting the same resource type on all nodes from 2014 down you can
use the same rendering script for all of those URLs, that recursively
collects all children and renders them.

You don't need queries then, any URL like /posts/2014.html or
/posts/2014/12.html will do the right thing, and generating the
archive navigation is just walking down the tree.

You could also omit the authoring area, directly store your content
under /posts and use a Sling Model PostConstruct method [1] to convert
the post's markup to HTML on the fly. Using access control to hide
posts that shouldn't be public yet can make staging transparent,
you'll just see the posts that belong to you when authoring as a
logged in user, and they are invisible on the public website which
uses the anonymous user.

Hope this helps, and if you're able to contribute your blog code as an
example that would be fantastic!


Sounds interesting, but I'm facing a newbie problem: I tried to install 
the espblog by following the instructions in samples/espblog/README.txt, 
and installing fails with this message:


$ mvn install -P autoInstallBundle
...
[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
org.apache.sling.samples.path-based.rtp ---

[INFO] Local OBR update disabled (enable with -DobrRepository)
[INFO]
[INFO] --- maven-sling-plugin:2.1.0:install (install-bundle) @ 
org.apache.sling.samples.path-based.rtp ---
[INFO] Installing Bundle 
org.apache.sling.samples.path-based.rtp(/Users/sylvain/dev/apache.org/sling/sling/samples/path-based-rtp/target/org.apache.sling.samples.path-based.rtp-2.0.5-SNAPSHOT.jar) 
to http://localhost:8080/system/console via POST

[ERROR] Installation failed, cause: Not Found

This is for path-based-rtp, and the same happens for espblog.

I suspect this must be related to NONE in 
parent/pom.xml but I don't know what to do with it.


Thanks for any help, I'm feeling stupid :-)

Sylvain

--
Sylvain Wallez - http://bluxte.net