Index: openacs-4/packages/acs-core-docs/www/tutorial-etp-templates.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-etp-templates.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-core-docs/www/tutorial-etp-templates.adp 8 Nov 2017 09:42:12 -0000 1.3 +++ openacs-4/packages/acs-core-docs/www/tutorial-etp-templates.adp 25 Apr 2018 08:38:28 -0000 1.4 @@ -3,11 +3,11 @@ OpenACS Edit This Page Templates -
+ leftLink="tutorial-cvs" leftLabel="Prev" + title="Chapter 10. Advanced +Topics" + rightLink="tutorial-comments" rightLabel="Next"> +

OpenACS Edit This Page Templates

<authorblurb>

by Nick Carroll @@ -46,11 +46,9 @@ Exercise 2: Checkout and Install edit-this-page (ETP)

  • -

    Checkout ETP from CVS:

    -cd ~/openacs/packages
    +

    Checkout ETP from CVS:

    cd ~/openacs/packages
                 cvs -d:pserver:anonymous\@openacs.org:/cvsroot login
    -            cvs -d:pserver:anonymous\@openacs.org:/cvsroot co edit-this-page
    -
    + cvs -d:pserver:anonymous\@openacs.org:/cvsroot co edit-this-page
  • Go to the package manager at http://yoursite/acs-admin/apm. And install the new package: edit-this-page.

  • Or use the "Add Application" form available on the Main site.

  • @@ -71,21 +69,18 @@ ETP Template
  • Browse the files for each of the above ETP templates at:

    -cd ~/openacs/packages/edit-this-page/templates
    -
    +cd ~/openacs/packages/edit-this-page/templates
  • Use the article template as the basis of our new col2 -template.

    -cp article-content.adp col2-content.adp
    +template.

    cp article-content.adp col2-content.adp
                 cp article-content.tcl col2-content.tcl
                 cp article-index.adp col2-index.adp
    -            cp article-index.tcl col2-index.tcl
    -
    + cp article-index.tcl col2-index.tcl
  • The template should provide us with the following ETP layout:

    -

    Table 10.1. table -showing ETP layout

    +

    Table 10.1. table showing ETP +layout

    @@ -106,10 +101,8 @@ col2 Template with ETP
    • Need to register your template with ETP so that it appears in -the drop-down menu that you would have seen in Exercise 3.

      -cd ~/openacs/packages/edit-this-page/tcl
      -            emacs etp-custom-init.tcl
      -
      +the drop-down menu that you would have seen in Exercise 3.

      cd ~/openacs/packages/edit-this-page/tcl
      +            emacs etp-custom-init.tcl
    • Use the function etp::define_application to register your template with ETP

        @@ -131,13 +124,13 @@ Who Wrote This and When

    This problem set was originally written by Nick Carroll in August 2004 for the University of Sydney Course EBUS5002.

    This material is copyright 2004 by Nick Carroll. It may be copied, reused, and modified, provided credit is given to the -original author.

    ($‌Id: tutorial-advanced.xml,v 1.53 -2017/08/07 23:47:54 gustafn Exp $)

    +original author.

    ($‌Id: tutorial-advanced.xml,v 1.54 +2017/12/24 13:15:07 gustafn Exp $)

    - + leftLink="tutorial-cvs" leftLabel="Prev" leftTitle="Add the new package to CVS" + rightLink="tutorial-comments" rightLabel="Next" rightTitle="Adding Comments" + homeLink="index" homeLabel="Home" + upLink="tutorial-advanced" upLabel="Up"> +