Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

slug modification

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


admin at designo

Apr 11, 2008, 11:44 AM

Post #1 of 2 (112 views)
Permalink
slug modification

Hi,

is there a possibility to modify the slug of a generated file based on
element values?

I have the following situation:

- a story containing several hcard-elements
- additional output channel 'VCF' burning each element to its own .vcf
file
- .vcf-files are burned to the same category as the html-file named
slug.vcf, slug1.vcf ...

That works fine so far but having file names like 'family-name_given-
name.vcf' would be much more usable.

Can this be accomplished by using $burner->set_page_extensions() ?


Thanks for your ideas!

Guido


david at kineticode

Apr 11, 2008, 11:51 AM

Post #2 of 2 (101 views)
Permalink
Re: slug modification [In reply to]

On Apr 11, 2008, at 11:44, Guido Buelskaemper wrote:

> I have the following situation:
>
> - a story containing several hcard-elements
> - additional output channel 'VCF' burning each element to its
> own .vcf file
> - .vcf-files are burned to the same category as the html-file named
> slug.vcf, slug1.vcf ...
>
> That works fine so far but having file names like 'family-name_given-
> name.vcf' would be much more usable.
>
> Can this be accomplished by using $burner->set_page_extensions() ?

Yes. That would give you, potentiall, "slug_family-name_given-
name.vcf". You'd set the page extensions to a list of "_$family_name\_
$given_name).

HTH,

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.