You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jonathan Linczak <li...@hiram.edu> on 2004/06/25 22:50:53 UTC
PHPGenerator help with Lenya
OK all, I followed the instructions on this page
(http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator) and finally got
a phpsrvlt.jar file to add to $COCOON_HOME/lib/local/ directory. I
recompiled Cocoon, and then, went over to Lenya and added the
PHPGenerator to my publication-sitemap.xmap file, just as what was
written. Two things:
1. It looks like the phpsrvlt.jar file was not found and compiled,
because it is not in org.apache.cocoon.generation under the src/java
directory in $COCOON_HOME.
2. If I set up my generator correctly (did I? - I added a new pipeline
in the publication-sitemap.xmap file with just the one matcher), and my
src says "documents/test.php", then where does the documents directory
reside? In the content/live/ directory?
Thanks for any help - this is a big part of my testing on Lenya right
now.
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: PHPGenerator help with Lenya
Posted by Jonathan Linczak <li...@hiram.edu>.
OK, so it did find something, but I don't know what to make of it. Can
someone help?
Cocoon build output
------------------------------------------------
<snip>
cocoon-block-php-excluded:
NOTICE: Block 'php' is excluded from the build.
</snip>
<snip>
usr/local/cocoon-2.1.5/tools/src/check-jars.xsl:150:24: Warning!
[WARN] Using local library local/phpsrvlt.jar: ensure it doesn't
conflict with any other library.
</snip>
------------------------------------------------
On Jun 25, 2004, at 4:50 PM, Jonathan Linczak wrote:
> OK all, I followed the instructions on this page
> (http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator) and finally got
> a phpsrvlt.jar file to add to $COCOON_HOME/lib/local/ directory. I
> recompiled Cocoon, and then, went over to Lenya and added the
> PHPGenerator to my publication-sitemap.xmap file, just as what was
> written. Two things:
>
> 1. It looks like the phpsrvlt.jar file was not found and compiled,
> because it is not in org.apache.cocoon.generation under the src/java
> directory in $COCOON_HOME.
>
> 2. If I set up my generator correctly (did I? - I added a new
> pipeline in the publication-sitemap.xmap file with just the one
> matcher), and my src says "documents/test.php", then where does the
> documents directory reside? In the content/live/ directory?
>
> Thanks for any help - this is a big part of my testing on Lenya right
> now.
>
> Jon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: PHPGenerator help with Lenya
Posted by Andreas Hartmann <an...@apache.org>.
Jonathan Linczak wrote:
> OK all, I followed the instructions on this page
> (http://wiki.cocoondev.org/Wiki.jsp?page=PHPGenerator) and finally got a
> phpsrvlt.jar file to add to $COCOON_HOME/lib/local/ directory. I
> recompiled Cocoon, and then, went over to Lenya and added the
> PHPGenerator to my publication-sitemap.xmap file, just as what was
> written. Two things:
>
> 1. It looks like the phpsrvlt.jar file was not found and compiled,
> because it is not in org.apache.cocoon.generation under the src/java
> directory in $COCOON_HOME.
You have to enable the php block in $COCOON_HOME/local.blocks.properties
(like you already found out).
> 2. If I set up my generator correctly (did I? - I added a new pipeline
> in the publication-sitemap.xmap file with just the one matcher), and my
> src says "documents/test.php", then where does the documents directory
> reside? In the content/live/ directory?
@src attributes of sitemap components are usually resolved
relatively to the directory where the sitemap resides.
I think you could put your PHP files in
{pub}/resources/shared/php/
which translates to
<map:generate src="resources/shared/php/test.php" type="php"/>
in {pub}/publication-sitemap.xmap
HTH
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org