From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leslie Watter Subject: Re: Need Guidance in developing and generating code using org-mode Date: Thu, 27 Feb 2020 16:18:17 -0300 Message-ID: References: Reply-To: leslie@watter.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f6f827059f93959c" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43979) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7Og3-0001Dw-4O for emacs-orgmode@gnu.org; Thu, 27 Feb 2020 14:18:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7Og1-0003Rf-JD for emacs-orgmode@gnu.org; Thu, 27 Feb 2020 14:18:31 -0500 Received: from mail-io1-f43.google.com ([209.85.166.43]:42352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7Og1-0003RM-Cp for emacs-orgmode@gnu.org; Thu, 27 Feb 2020 14:18:29 -0500 Received: by mail-io1-f43.google.com with SMTP id z1so671513iom.9 for ; Thu, 27 Feb 2020 11:18:29 -0800 (PST) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: KOKOU AFIDEGNON Cc: org-mode-email --000000000000f6f827059f93959c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kokou, See below ;-) On Thu, Feb 27, 2020 at 3:46 PM KOKOU AFIDEGNON wrote: > Hi, > > Here is my sample org entry which i want to build a website for. > > > 1. * Home > 2. ** Design > 3. *My Sample design attempt* > 4. The journey has been quite long coupled with heuristic approaches > 5. This is an attempt to generate an html file from my blog written in > 6. org-mode. > 7. * Archives > 8. ** By Categories > 9. ** By Date > 10. ** By Author > 11. * Account > 12. > 13. ** Register > 14. - username > 15. - password > 16. - email > 17. - Gender > 18. > 19. ** Login > 20. - Username > 21. - Password > 22. > 23. ** Activate > 24. > 25. ** Logout > > > I have been able to to export using C-c C-e h o > > > - How do i insert my personal template with custom CSS and JS? > > CSS: you'll need to read: https://orgmode.org/manual/CSS-support.html#CSS-support but basically add: #+HTML_HEAD: #+HTML_HEAD_EXTRA: Javascript: https://orgmode.org/manual/JavaScript-support.html#JavaScript-support > > - Under Register, and Login heading, How do i generate html forms > which will post entries to specific destinations? and also generate co= de > for capturing the data? > > To use forms, you'll probably will use raw HTML: https://orgmode.org/manual/Quoting-HTML-tags.html#Quoting-HTML-tags > > - How do i link Activate and Logout heading to custom urls? > > To change headline links you'll need to read: https://orgmode.org/org.html#Headlines-in-HTML-export Headlines are exported to =E2=80=98

=E2=80=99, =E2=80=98

=E2=80=99, e= tc. Each headline gets the =E2=80=98id=E2=80=99 attribute from =E2=80=98CUSTOM_ID=E2=80=99 property, or a unique generated = value, see Internal Links . When org-html-self-link-headlines is set to a non-nil value, the text of the headlines is also wrapped in =E2=80=98=E2=80=99 tags. These tags hav= e a =E2=80=98href=E2=80=99 attribute making the headlines link to themselves. You'll have to put an CUSTOM_ID to the *custom url *you'll need > I m finding hard grasping orgmode i will be grateful if you can help > elucidate. > Hope this helps Cheers, LEslie --=20 Leslie H. Watter --000000000000f6f827059f93959c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Kokou,=C2=A0

See below ;-)

Hi,=C2=A0

Here is my sample org entry which i want = to build a website for.=C2=A0

  1. *= Home
  2. ** Design
  3. *My Sample design attempt*
  4. =
  5. The journey has been quite long coupled with heuristic ap= proaches
  6. This is an attempt to generate an htm= l file from my blog written in
  7. org-mode.
  8. * Archives
  9. ** By Categories<= /font>
  10. ** By Date
  11. ** By Autho= r
  12. * Account
  13. ** Register
  14. - username
  15. = - password
  16. - email=
  17. - Gender
  18. <= /li>
  19. ** Login
  20. - Username
  21. - Password
  22. =
  23. ** Activate
  24. ** Logout

I have been able= to to export using=C2=A0C-c C-e=C2=A0h o

  • How do i ins= ert my personal template with custom CSS and JS?=C2=A0

but basically add:

#+HTML_HEAD: <link rel=3D&= quot;stylesheet" type=3D"text/css" href=3D"style1.css&q= uot; />
#+HTML_HEAD_EXTRA: <link rel=3D"alternate stylesheet&= quot; type=3D"text/css" href=3D"style2.css" />

=C2=A0
  • Under Register, and Log= in heading, How do i generate html forms which will post entries to specifi= c destinations? and also generate code for capturing the data?=C2=A0
To use forms, you'll prob= ably will use raw HTML:

=C2=A0
<= div>
  • How do i link A= ctivate and Logout heading to custom urls?=C2=A0

To change headline links you'l= l need to read:=C2=A0https://orgmode.org/org.html#Headlines-in-HTML-export=C2=A0=

Headlines are exported to =E2=80=98= <h1>=E2=80=99, =E2=80=98<h2>=E2= =80=99, etc. Each headline gets the =E2=80=98id=E2= =80=99 attribute from =E2=80=98CUSTOM_ID=E2=80=99 p= roperty, or a unique generated value, see=C2=A0Internal Links.

When=C2=A0org-html-self-link= -headlines=C2=A0is set to a non-nil=C2=A0value, the tex= t of the headlines is also wrapped in =E2=80=98<a>=E2=80= =99 tags. These tags have a =E2=80=98href=E2=80=99 attribute m= aking the headlines link to themselves.

You'll ha= ve to put an CUSTOM_ID to the custom url you'll need


=C2=A0
I m finding= hard grasping orgmode i will be grateful if you can help elucidate.=C2=A0<= /div>

Hope this he= lps

Cheers,

LEslie=C2=A0<= /div>


--
Leslie H. Watter
--000000000000f6f827059f93959c--