Menu

Tutorials?

Help
John Voth
2002-07-26
2002-07-31
  • John Voth

    John Voth - 2002-07-26

    Hello,

    Is anyone out there?

    I'm searching for tutorials on how to use Magellan.
    Are there any out there?

     
    • Alex Pagnoni

      Alex Pagnoni - 2002-07-30

      Sorry, as for Ampoliros, at this stage there are no tutorials. Some template examples will be added very soon anyway. I think I'll publish www.ampoliros.com site templates, what do you think?

       
    • Alex Pagnoni

      Alex Pagnoni - 2002-07-30

      Following your question at the Ampoliros support forum, here's my reply:

      You are right, site is dependant upon both pages and templates. You may have as many template as you wish, one for all pages or even one for each page (not very useful, by the way).

      Templates are common HTML (or any other format) file, containing special tags. Those tags are special because they are interpretated by Magellan. Magellan parses the template and replace the tags with the right content.

      Magellan tags are HTML comments containing a "@" and the tag name. e.g.: <!--@SITEURL-->

      Being comments, you can edit templates with any HTML editor out there or you favourite text editor.

      There are two types of tags: general and item ones. General tags have the same content all over the template, like the above mentioned <!--@SITEURL-->.

      Item tags take place into blocks of template that have to be repeated as many times as the item related to the page; e.g. you have associated some ecommerce products to the page, and the block of HTML code which describes the products is repeated for each product.

      Item tags are placed into a block like this:

      <!--@BEGIN_MY_PRODUCTS-->
      random html code here; this never changes: <!--@SITEURL-->; this changes every time <!--@MY_PRODUCT_NAME-->.
      <!--@END_MY_PRODUCTS-->

      If you have associated 8 products to the page with that template, that block will be repeated 8 times.

      Every module that extends Magellan can define his own tags. Magellan gives the following tags:

      SITEID
      SITENAME
      SITEURL
      SITECOMPLETENAME
      SITEADDRESSA
      SITEADDRESSB
      SITETOWN
      SITESTATE
      SITEZIP
      SITECOUNTRY
      SITEFISCALCODE
      SITEEMAIL
      SITEPHONE
      SITEFAX

      and for each page:

      PAGENAME
      PAGEMEDIAURL
      PAGEMEDIALINK
      PAGELINKNAME
      PAGELINK
      PAGEDESCRIPTION
      PAGETITLE
      PAGEMETADESC
      PAGEMETAKEYS

      (put <!--@ before and --> after every tag)

      There are also tags for web users management, I'll show them in a template example sooner or later.

       
    • John Voth

      John Voth - 2002-07-30

      Right on!

      I'll attempt to use this info today.

      You mention above that you are tempted to post the ampoliros site templates and my response is "please do!" I can then learn by example.

      Thanks Alex!

       
      • Alex Pagnoni

        Alex Pagnoni - 2002-07-31

        Ok, I've added a docs page containing my above post and the Ampoliros site templates. Check this url: http://www.ampoliros.com/projects/web/magellan/docs.php

         

Log in to post a comment.

MongoDB Logo MongoDB