List Info

Thread: RE: Way to adjust $burner->set_burn_again to burn folders vs. files?




RE: Way to adjust $burner->set_burn_again to burn folders vs. files?
user name
2007-10-31 11:59:35
The first page of course would be

/root/cat/mystorydirectory.html...

which might not be what you want, but you could just reburn
the first
page a 2nd time to /root/cat/mystorydirectory/1/index.html
and not link
to mystorydirectory.html at all.

It's definitely hacky, but it might work.  It might *suck
less* than
other options 



-----Original Message-----
From: Beaudet, David P. [mailto-Beaudet
NGA.GOV] 
Sent: Wednesday, October 31, 2007 12:56 PM
To: userslists.bricolage.cc
Subject: RE: Way to adjust $burner->set_burn_again to
burn folders vs.
files?



So assuming you set your slug to
"mystorydirectory" and your output
channel uses a ".html" extension, and you set your
list of "extensions"
to:

"/2/index"
"/3/index"
"/4/index"

with set_page_extensions,

I *think* the burner would try to use the following URLs for
pages 2-4:

"/root/cat/mystorydirectory/2/index.html"
"/root/cat/mystorydirectory/3/index.html"
"/root/cat/mystorydirectory/4/index.html"

unless my memory is just being optimistic or the burner does
not permit
slashes in the extensions...



-----Original Message-----
From: Phillip Smith [mailto:phillipcommunitybandwidth.ca] 
Sent: Wednesday, October 31, 2007 12:41 PM
To: userslists.bricolage.cc
Subject: Re: Way to adjust $burner->set_burn_again to
burn folders vs.
files?


Hrmph... looking at $burner->set_page_extensions(page_extensions) it  
doesn't seem possible:

$b = $burner->set_page_extensions(page_extensions)
Sets page extensions to be used during burning. Will revert
to page  
numbering once the extensions are all used. Each of the page
 
extensions passed must be unique or an exception will be
thrown.

Throws: NONE.

Side Effects: NONE.

Notes:

Example:

    $burner->set_page_extensions(qw(intro main conc));
    $burner->display_pages('page');
for a 3 page story with a slug of story and a filetype of
html will  
produce burnt pages with filenames storyintro.html,
storymain.html,  
and storyconc.html.



On Oct 31, 2007, at 12:26 PM, Beaudet, David P. wrote:

>
> Did you try using a "/" in the list of file
"extensions" passed to the
> burner via:
>
> # set list of page extensions
> $burner->set_page_extensions(page_extensions);
>
> If my memory is functional today, I don't think the
distribution code
> uses categories much... just looks at the path of the
story  
> resources it
> has been asked to distribute... so while I have no idea
if it would  
> work
> or not, it might be worth a quick try.
>
> -----Original Message-----
> From: Phillip Smith [mailto:phillipcommunitybandwidth.ca]
> Sent: Wednesday, October 31, 2007 12:17 PM
> To: Bricolage Users
> Subject: Way to adjust $burner->set_burn_again to
burn folders vs.
> files?
>
>
> Hi there,
>
> Just wondering if there's a way to adjust
$burner->set_burn_again to
> burn in folders -- e.g.: /2/index.html, /3/index.html,
etc. -- vs.
> the files index1.html, index2.html, and so on?
>
> Thanks in advance,
>
> Phillip.
>
> --
> Phillip Smith,
> Simplifier of Technology
> Community Bandwidth
>
>

--
Phillip Smith,
Simplifier of Technology
Community Bandwidth
http://www.community
bandwidth.ca



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )