From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bodhi Subject: Re: Reg: Publishing in html using property tags Date: Mon, 15 Aug 2011 13:44:06 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5299a0df857c904aa86d938 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QssJY-0003ki-B7 for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 04:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QssJW-0003Sr-WD for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 04:14:28 -0400 Received: from mail-iy0-f175.google.com ([209.85.210.175]:52342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QssJW-0003Sn-Pz for emacs-orgmode@gnu.org; Mon, 15 Aug 2011 04:14:26 -0400 Received: by iyn15 with SMTP id 15so5328850iyn.6 for ; Mon, 15 Aug 2011 01:14:26 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Puneeth Chaganti Cc: emacs-orgmode@gnu.org --bcaec5299a0df857c904aa86d938 Content-Type: text/plain; charset=ISO-8859-1 Dear Puneeth, The org-mode link works magically. Thanks! But the same doesn't work for the generated html page. The pages get built, and the ID gets created, the html href contains that unique ID, but the browser is unable to load foo.html from the link in bar.html. Did you get any success on that front? Any ideas? I'm running org-mode 7.4. On Mon, Aug 15, 2011 at 12:39 PM, Puneeth Chaganti wrote: > Hi Bodhi, > > On Mon, Aug 15, 2011 at 9:20 AM, Bodhi wrote: > > Hi Puneeth, > > Let us assume I have two files: foo.org and bar.org. > > foo.bar contains: > > :PROPERTIES: > > :CUSTOM_ID: testing > > :END: > > > > bar.org contains > > [[CUSTOM_ID:testing]] > > > > Now, I wish to click on bar.org's link, and it should open up the file > > foo.org. Is there a way to do so? To be more specific, I wish to put any > > link without any relative or absolute addressing, and I should still be > able > > to jump to links, using some kind of invisible data base which org-mode > > uses. And I wish to convert it to html for publishing these documents, > using > > the htmlize.el by Niksic. > > To be able to do this, you should let org-mode create a universal ID > for the heading that you want to link to. The following steps should > help you do this. > > 1. Make sure you have the org-id module loaded. > : (require 'org-id) > 2. In the file foo.org, go to the first heading (presuming that's the > heading you want to link to). > 3. Call the function =org-store-link=. > : M-x org-store-link > 4. Go to the location in bar.org, where you want to insert the link. > 5. Call the function =org-insert-link=. > : M-x org-insert-link > Use the arrow keys to select the link you want to insert, from the > list. > > HTH, > Puneeth > -- Regards, Bodhisatta Barman Roy --bcaec5299a0df857c904aa86d938 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Puneeth,
The org-mode link works magically. Thanks!
But the same= doesn't work for the generated html page.
The pages get built, and = the ID gets created, the html href contains that unique ID, but the browser= is unable to load foo.html from the link in bar.html.

Did you get any success on that front? Any ideas? I'm running org-= mode 7.4.

On Mon, Aug 15, 2011 at 12:39 = PM, Puneeth Chaganti <punchagan@gmail.com> wrote:
Hi Bodhi,

On Mon, Aug 15, 2011 at 9:20 AM, Bodhi <thebbroy@gmail.com> wrote:
> Hi Puneeth,
> Let us assume I have two files: foo.org and bar.org= .
> foo.bar contains:
> :PROPERTIES:
> :CUSTOM_ID: testing
> :END:
>
> bar.org contains
> [[CUSTOM_ID:testing]]
>
> Now, I wish to click on b= ar.org's link, and it should open up the file
> foo.org. Is there a w= ay to do so? To be more specific, I wish to put any
> link without any relative or absolute addressing, and I should still b= e able
> to jump to links, using some kind of invisible data base which org-mod= e
> uses. And I wish to convert it to html for publishing these documents,= using
> the htmlize.el by Niksic.

To be able to do this, you should let org-mode create a universal ID<= br> for the heading that you want to link to. =A0The following steps should
help you do this.

1. Make sure you have the org-id module loaded.
=A0 : (require 'org-id)
2. In the file foo.org, go= to the first heading (presuming that's the
=A0 heading you want to link to).
3. Call the function =3Dorg-store-link=3D.
=A0 : M-x org-store-link
4. Go to the location in bar.o= rg, where you want to insert the link.
5. Call the function =3Dorg-insert-link=3D.
=A0 : M-x org-insert-link
=A0 Use the arrow keys to select the link you want to insert, from the
=A0 list.

HTH,
Puneeth



--
Regards,
Bodh= isatta Barman Roy


--bcaec5299a0df857c904aa86d938--