From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Accessing the communication channel from a link exporter Date: Fri, 02 Sep 2016 08:30:02 -0400 Message-ID: References: <87inuf1sn8.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfnd7-0000oA-PL for emacs-orgmode@gnu.org; Fri, 02 Sep 2016 08:31:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfnd2-0004Yo-OP for emacs-orgmode@gnu.org; Fri, 02 Sep 2016 08:31:32 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:33485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfnd2-0004R8-L3 for emacs-orgmode@gnu.org; Fri, 02 Sep 2016 08:31:28 -0400 Received: by mail-qk0-f182.google.com with SMTP id z190so115953502qkc.0 for ; Fri, 02 Sep 2016 05:31:07 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Arun Isaac Cc: org-mode-email , Nicolas Goaziou I think this is the kind of thing you can use a filter for, or a function in the org-export-before-processing-hook to change the paths prior to export. Arun Isaac writes: >> Out of curiosity, what kind of link are you using, that is dependant >> about context ? > > Actually, I don't need the context of the link in the org document. I > need some properties defined in the plist of the component in > org-publish-project-alist. So, I use the info communication channel to > access these properties. > > I maintain a few websites with org mode. When I publish an image link > with org, the exported HTML contains the full filesystem path of the > image. The page wouldn't work if I published it on the web. My link type > needs to know the path of the web server's docroot to remove that > component from the full filesystem path. This path is defined in one of > the properties in org-publish-project-alist, and I need the info > communication channel to access it. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu