emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting to HTML without IDs
@ 2012-10-26 12:27 Vincent Beffara
  2012-10-26 12:48 ` Sebastien Vauban
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Beffara @ 2012-10-26 12:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi, 

I want to manage my web page using org-mode, and to have a navigation bar also encoded in org. The problem is that the org-to-html conversion function adds IDs to all headers, and the same ids occur on the nav bar and the main content. Things link sec-1, outline-2 and so on. The words 'sec' and 'outline' seem to be hardcoded. Of course this makes html validators a bit nervous ...

Is there a simple way to either remove those ids, or make them start at say 1001 for one part?

[In case it matters, I am using o-blog and org-mode 7.9.2 with mostly default configuration.] 

Thanks!

/v

-- 
Vincent Beffara

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exporting to HTML without IDs
  2012-10-26 12:27 Exporting to HTML without IDs Vincent Beffara
@ 2012-10-26 12:48 ` Sebastien Vauban
  2012-10-26 13:06   ` Vincent Beffara
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2012-10-26 12:48 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello Vincent,

Vincent Beffara wrote:
> I want to manage my web page using org-mode, and to have a navigation bar
> also encoded in org. The problem is that the org-to-html conversion function
> adds IDs to all headers, and the same ids occur on the nav bar and the main
> content. Things link sec-1, outline-2 and so on. The words 'sec' and
> 'outline' seem to be hardcoded. Of course this makes html validators a bit
> nervous ...
>
> Is there a simple way to either remove those ids, or make them start at say
> 1001 for one part?
>
> [In case it matters, I am using o-blog and org-mode 7.9.2 with mostly
> default configuration.]

Maybe adding CUSTOM-ID in your navigation bar would solve the problem.

You don't say whether you use the old (current) or the new (in the to-be
Org 8) HTML exporter??

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exporting to HTML without IDs
  2012-10-26 12:48 ` Sebastien Vauban
@ 2012-10-26 13:06   ` Vincent Beffara
  0 siblings, 0 replies; 3+ messages in thread
From: Vincent Beffara @ 2012-10-26 13:06 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

Hi, 
> Maybe adding CUSTOM-ID in your navigation bar would solve the problem.
> 
> You don't say whether you use the old (current) or the new (in the to-be
> Org 8) HTML exporter??

Don't know, meaning probably the old one ... a CUSTOM-ID property is ignored, but it sounds like what I am looking for.

Right now I fixed it by using (replace-gegexp-in-string "id=\"" "id=\"nav-" navbar) in the template, but that implies having a template in the first place, which is not always the case.

/v

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-26 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 12:27 Exporting to HTML without IDs Vincent Beffara
2012-10-26 12:48 ` Sebastien Vauban
2012-10-26 13:06   ` Vincent Beffara

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).