List Info

Thread: slug modification




slug modification
user name
2008-04-11 13:44:13
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



Re: slug modification
user name
2008-04-11 13:51:31
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

[1-2]

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