You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Vance Dubberly <va...@email.arc.nasa.gov> on 2004/07/29 23:21:53 UTC

flat pdfs

has anybody tried serving non pipelined pdf files in forrest?  i have a 
bunch of publications in pdf format that i need to link to for download 
but the cocoon sitemap.xmap maps all files ending in .pdf to a 
pipeline. anybody found a good way to keep the pipeline and allow the 
download of pdf's from a given directory?

am pondering changing the regex in sitemap.xmap ... but figure 
someone's found a simpler solution.

thanks in advance.


--
Vance Dubberly
Application Developer
Asani Solutions LLC
650.604.4325

Act without doing; Work without effort.
Think of the small as large and the few as many.
Confront the difficult while it is still easy;
accomplish the great task by a series of small acts.

Lao Tzu


Re: flat pdfs

Posted by Vance Dubberly <va...@email.arc.nasa.gov>.

Thank you both... got my brain in one of those ruts where i couldn't 
see outside the xdocs directory!

-v



On Jul 29, 2004, at 2:44 PM, Dave Brondsema wrote:

>
> Yes; this is also explained in our FAQ: 
> http://forrest.apache.org/faq.html#link_raw
>
> Diwaker Gupta wrote:
>> I'm not sure if I understand you right, but I guess you want to serve
>> PDFs directly, without going through the forrest PDF pipeline right?
>> If thats the case, then its easily done. Infact if you do forrest
>> seed, the layout has samples of how to do this.
>> I have the following layout (for publications, much like you)
>> src/documentation/content/
>> |-- projects
>> |-- publications
>> |-- resume
>> `-- xdocs
>>     |-- articles
>>     |-- personal
>>     |   `-- iitk
>>     |-- projects
>>     `-- research
>> I put all my flat PDFs inside the publications directory, and I can
>> refer to them as "publications/whatever.pdf" in any href. You
>> shouldn't need to make any changes to sitemap or anything else.
>> HTH
>> Diwaker
>> On Thu, 29 Jul 2004 14:21:53 -0700, Vance Dubberly
>> <va...@email.arc.nasa.gov> wrote:
>>> has anybody tried serving non pipelined pdf files in forrest?  i 
>>> have a
>>> bunch of publications in pdf format that i need to link to for 
>>> download
>>> but the cocoon sitemap.xmap maps all files ending in .pdf to a
>>> pipeline. anybody found a good way to keep the pipeline and allow the
>>> download of pdf's from a given directory?
>>>
>>> am pondering changing the regex in sitemap.xmap ... but figure
>>> someone's found a simpler solution.
>>>
>>> thanks in advance.
>>>
>>> --
>>> Vance Dubberly
>>> Application Developer
>>> Asani Solutions LLC
>>> 650.604.4325
>>>
>>> Act without doing; Work without effort.
>>> Think of the small as large and the few as many.
>>> Confront the difficult while it is still easy;
>>> accomplish the great task by a series of small acts.
>>>
>>> Lao Tzu
>>>
>>>
>
>
> -- 
> Dave Brondsema : dave@brondsema.net
> http://www.splike.com : programming
> http://csx.calvin.edu : student org
> http://www.brondsema.net : personal
>
--
Vance Dubberly
Application Developer
Asani Solutions LLC
650.604.4325

That's the thing I learned to lust after as a programmer. It's not my 
ability to solve one problem, to plow this field, but the ability to 
build a plow that every farmer uses.

-- Scott Collins ( Mozilla.org )


Re: flat pdfs

Posted by Dave Brondsema <da...@brondsema.net>.
Yes; this is also explained in our FAQ: 
http://forrest.apache.org/faq.html#link_raw

Diwaker Gupta wrote:
> I'm not sure if I understand you right, but I guess you want to serve
> PDFs directly, without going through the forrest PDF pipeline right?
> If thats the case, then its easily done. Infact if you do forrest
> seed, the layout has samples of how to do this.
> 
> I have the following layout (for publications, much like you)
> src/documentation/content/
> |-- projects
> |-- publications
> |-- resume
> `-- xdocs
>     |-- articles
>     |-- personal
>     |   `-- iitk
>     |-- projects
>     `-- research
> 
> I put all my flat PDFs inside the publications directory, and I can
> refer to them as "publications/whatever.pdf" in any href. You
> shouldn't need to make any changes to sitemap or anything else.
> 
> HTH
> Diwaker
> 
> On Thu, 29 Jul 2004 14:21:53 -0700, Vance Dubberly
> <va...@email.arc.nasa.gov> wrote:
> 
>>has anybody tried serving non pipelined pdf files in forrest?  i have a
>>bunch of publications in pdf format that i need to link to for download
>>but the cocoon sitemap.xmap maps all files ending in .pdf to a
>>pipeline. anybody found a good way to keep the pipeline and allow the
>>download of pdf's from a given directory?
>>
>>am pondering changing the regex in sitemap.xmap ... but figure
>>someone's found a simpler solution.
>>
>>thanks in advance.
>>
>>--
>>Vance Dubberly
>>Application Developer
>>Asani Solutions LLC
>>650.604.4325
>>
>>Act without doing; Work without effort.
>>Think of the small as large and the few as many.
>>Confront the difficult while it is still easy;
>>accomplish the great task by a series of small acts.
>>
>>Lao Tzu
>>
>>
> 
> 
> 


-- 
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal

Re: flat pdfs

Posted by Diwaker Gupta <di...@gmail.com>.
I'm not sure if I understand you right, but I guess you want to serve
PDFs directly, without going through the forrest PDF pipeline right?
If thats the case, then its easily done. Infact if you do forrest
seed, the layout has samples of how to do this.

I have the following layout (for publications, much like you)
src/documentation/content/
|-- projects
|-- publications
|-- resume
`-- xdocs
    |-- articles
    |-- personal
    |   `-- iitk
    |-- projects
    `-- research

I put all my flat PDFs inside the publications directory, and I can
refer to them as "publications/whatever.pdf" in any href. You
shouldn't need to make any changes to sitemap or anything else.

HTH
Diwaker

On Thu, 29 Jul 2004 14:21:53 -0700, Vance Dubberly
<va...@email.arc.nasa.gov> wrote:
> has anybody tried serving non pipelined pdf files in forrest?  i have a
> bunch of publications in pdf format that i need to link to for download
> but the cocoon sitemap.xmap maps all files ending in .pdf to a
> pipeline. anybody found a good way to keep the pipeline and allow the
> download of pdf's from a given directory?
> 
> am pondering changing the regex in sitemap.xmap ... but figure
> someone's found a simpler solution.
> 
> thanks in advance.
> 
> --
> Vance Dubberly
> Application Developer
> Asani Solutions LLC
> 650.604.4325
> 
> Act without doing; Work without effort.
> Think of the small as large and the few as many.
> Confront the difficult while it is still easy;
> accomplish the great task by a series of small acts.
> 
> Lao Tzu
> 
> 


-- 
Diwaker Gupta
http://resolute.ucsd.edu/diwaker