Overwrite output path

22 views
Skip to first unread message

Axel Hernández Ferrera

unread,
Oct 21, 2012, 8:21:13 AM10/21/12
to doc...@googlegroups.com

I'm trying to overwrite the output path of a file. I think that it could be possible listening to a server events and modifying the files collection, is that right? Is there any example of doing this?

Benjamin Lupton

unread,
Oct 21, 2012, 6:02:12 PM10/21/12
to doc...@googlegroups.com
Hey Axel,

Not sure on the on the over-writing of the output path, it's probably possible by over-riding one of the standard meta data variables but no official support for it at this time.

However, from what you've said on IRC you mainly just want the ability to specify a custom URL (or many custom URLs) for a document. You can do this easily by setting the `url` (string) and `urls` (array of strings) meta data variables.

E.g.
---
title: "Some document with a custom url"
url: '/my-custom-url'
urls: ['/also-support-this-one','/and-this-one']
---

Does that help? :)
Reply all
Reply to author
Forward
0 new messages