From: cpb <cpb@snotbubble.com>
To: emacs-orgmode@gnu.org
Subject: properties using other properties
Date: Tue, 23 Jan 2018 17:28:05 +1100 [thread overview]
Message-ID: <86bmhlozre.fsf@snotbubble.com> (raw)
Is there a way to set properties using other properties? Doesn't matter
if its on export only, though it would be nice to have it in-situ.
here's an example (obviously doesn't work), where a project properties
for the project client only needs the CLIENT property filled, the rest
of it automatically populates on export. Would save having to duplicate
the data where there are a lot of projects.
* client1
:PROPERTIES:
:CUSTOM_ID: client1
:NAME: a client
:ADDRESS: an address
:EMAIL: an email
:URL: a website
:END:
* project1
:PROPERTIES:
:CUSTOM_ID: project1
:NAME: a project
:CLIENT: client1
:CLIENT_NAME: {{{property(NAME,#{{{property(CLIENT)}}})}}}
:CLIENT_ADDRESS: {{{property(ADDRESS,#{{{property(CLIENT)}}})}}}
:CLIENT_EMAIL: {{{property(EMAIL,#{{{property(CLIENT)}}})}}}
:EXPORT_FILE_NAME: ./a_project
:END:
project....: {{{property(NAME)}}}
for........: {{{property(CLIENT)}}}
{{{property(CLIENT_ADDRESS)}}}
{{{property(CLIENT_EMAIL)}}}
next reply other threads:[~2018-01-23 6:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 6:28 cpb [this message]
2018-01-25 0:19 ` properties using other properties Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86bmhlozre.fsf@snotbubble.com \
--to=cpb@snotbubble.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).