* Need Guidance in developing and generating code using org-mode
@ 2020-02-27 17:09 KOKOU AFIDEGNON
0 siblings, 0 replies; 5+ messages in thread
From: KOKOU AFIDEGNON @ 2020-02-27 17:09 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]
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?
- Under Register, and Login heading, How do i generate html forms which
will post entries to specific destinations? and also generate code for
capturing the data?
- How do i link Activate and Logout heading to custom urls?
I m finding hard grasping orgmode i will be grateful if you can help
elucidate.
[-- Attachment #2: Type: text/html, Size: 5233 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Need Guidance in developing and generating code using org-mode
@ 2020-02-27 18:44 KOKOU AFIDEGNON
2020-02-27 19:18 ` Leslie Watter
0 siblings, 1 reply; 5+ messages in thread
From: KOKOU AFIDEGNON @ 2020-02-27 18:44 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]
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?
- Under Register, and Login heading, How do i generate html forms which
will post entries to specific destinations? and also generate code for
capturing the data?
- How do i link Activate and Logout heading to custom urls?
I m finding hard grasping orgmode i will be grateful if you can help
elucidate.
[-- Attachment #2: Type: text/html, Size: 5197 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need Guidance in developing and generating code using org-mode
2020-02-27 18:44 KOKOU AFIDEGNON
@ 2020-02-27 19:18 ` Leslie Watter
2020-02-28 13:57 ` Christian Moe
0 siblings, 1 reply; 5+ messages in thread
From: Leslie Watter @ 2020-02-27 19:18 UTC (permalink / raw)
To: KOKOU AFIDEGNON; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 2511 bytes --]
Hi Kokou,
See below ;-)
On Thu, Feb 27, 2020 at 3:46 PM KOKOU AFIDEGNON <kokou.afidegnon@gmail.com>
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
<https://orgmode.org/manual/CSS-support.html#CSS-support>
but basically add:
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style1.css" />
#+HTML_HEAD_EXTRA: <link rel="alternate stylesheet" type="text/css"
href="style2.css" />
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 code
> 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 ‘<h1>’, ‘<h2>’, etc. Each headline gets the ‘id’
attribute from ‘CUSTOM_ID’ property, or a unique generated value, see Internal
Links <https://orgmode.org/org.html#Internal-Links>.
When org-html-self-link-headlines is set to a non-nil value, the text of
the headlines is also wrapped in ‘<a>’ tags. These tags have a ‘href’
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
--
Leslie H. Watter
[-- Attachment #2: Type: text/html, Size: 9969 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need Guidance in developing and generating code using org-mode
2020-02-27 19:18 ` Leslie Watter
@ 2020-02-28 13:57 ` Christian Moe
2020-02-28 15:02 ` Diego Zamboni
0 siblings, 1 reply; 5+ messages in thread
From: Christian Moe @ 2020-02-28 13:57 UTC (permalink / raw)
To: leslie; +Cc: org-mode-email, KOKOU AFIDEGNON
Hi, Kokou,
Adding to what Leslie Watter writes:
>> - Under Register, and Login heading, How do i generate html forms
>> which will post entries to specific destinations? and also generate code
>> 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
>
And for capturing the data, you will of course need to provide scripts
on a server as targets for the html forms.
Org is great for quick writing and exporting to HTML. It can also be
used to publish whole static websites and blogs. Some people use a
combination of Org and other static blogging tools, like Jekyll, which
adds some helpful functionality.
However, if you want to dynamically serve pages only to logged-in users,
Org-mode may not be the tool you are looking for. You may want to look
at blogging platforms or content management systems. (If you like
writing in Org, you can still use it for drafting.)
Yours,
Christian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need Guidance in developing and generating code using org-mode
2020-02-28 13:57 ` Christian Moe
@ 2020-02-28 15:02 ` Diego Zamboni
0 siblings, 0 replies; 5+ messages in thread
From: Diego Zamboni @ 2020-02-28 15:02 UTC (permalink / raw)
To: Christian Moe; +Cc: org-mode-email, KOKOU AFIDEGNON
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
Hi Kokou,
In addition to what others have said, you might want to use Hugo (
https://gohugo.io/) for producing your website, and in this case you can
use the fantastic ox-hugo (https://ox-hugo.scripter.co/) to manage the
contents from within org-mode. It should be possible to use Hugo's features
to implement all the features you have mentioned.
--Diego
On Fri, Feb 28, 2020 at 3:11 PM Christian Moe <mail@christianmoe.com> wrote:
>
> Hi, Kokou,
>
> Adding to what Leslie Watter writes:
>
> >> - Under Register, and Login heading, How do i generate html forms
> >> which will post entries to specific destinations? and also generate
> code
> >> 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
> >
>
> And for capturing the data, you will of course need to provide scripts
> on a server as targets for the html forms.
>
> Org is great for quick writing and exporting to HTML. It can also be
> used to publish whole static websites and blogs. Some people use a
> combination of Org and other static blogging tools, like Jekyll, which
> adds some helpful functionality.
>
> However, if you want to dynamically serve pages only to logged-in users,
> Org-mode may not be the tool you are looking for. You may want to look
> at blogging platforms or content management systems. (If you like
> writing in Org, you can still use it for drafting.)
>
> Yours,
> Christian
>
>
[-- Attachment #2: Type: text/html, Size: 2214 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-02-28 15:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27 17:09 Need Guidance in developing and generating code using org-mode KOKOU AFIDEGNON
-- strict thread matches above, loose matches on Subject: below --
2020-02-27 18:44 KOKOU AFIDEGNON
2020-02-27 19:18 ` Leslie Watter
2020-02-28 13:57 ` Christian Moe
2020-02-28 15:02 ` Diego Zamboni
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).