Menu

pages, templates and content

Help
2002-09-06
2002-10-07
  • Maarten Stolte

    Maarten Stolte - 2002-09-06

    Hello,

    ive installed your package, which looks pretty good so far. The only big problem is the lack of documentation so far.
    Ive got some trouble figuring out what the functionality is of some bits and pieces.
    I can now build a page, with a template, within a site, and use some of those nice variables available to my template.
    Now id like to make something like a news part, where an editor can write articles, how would i go about for that?

     
    • John Voth

      John Voth - 2002-09-06

      Howdy Maarten,

      I would hang out here for a while. Alex and I seem to be developing the documentation right in front of our eyes :-)

      I hope to begin to compose documentation as I learn.

      Right now, the key to creating your website is to get a handle on the templates because the template is the basis on which all pages exist. Without a template no page is generated.

      What I am doing is playing around with the five or six templates that Alex has posted here at the bottom of the page: http://www.ampoliros.com/projects/web/magellan/docs.php

      Here's what you can do to start playing around:
      1. Create a test website.
      a. Site Name = test
      b. Id = test
      c. Password = test
      d. Leave the rest of the options blank
      e. Click the Create Site button
      2. Activate the Magellan module
      3. Take access to the site by clicking on the access icon.
      4. Click on the Web tab in the left nav panel.
      5. Click on the Templates icon in the left nav panel.
      6. Add in Alex's templates one by one.
      7. Click on the Pages icon in the left nav panel.
      8. Create a page.
      a. Page name = index.html
      b. Title = Hello World
      c. Content = Hello World!
      d. Template = standard <or the name of the template you created above>
      e. File name = index.html
      9. Click Create Page
      10. Then click on the Preview icon and you should see your content wrapped inside of the template.

      Now I know that I've made a pretty simplistic list here but I'm hoping that others may benefit from reading this. So, (being a Canadian) I will say sorry for that, eh?

      The next task is to experiement with the templates and see what they do.

      Open up that standard template in your favorite editor and study it for a moment. It's mainly HTML with a sprinkling of magical tags. It's those tags that Ampoliros fills in for you. I'm still learning the depth of their abilities. Go here and read a little about them: http://www.ampoliros.com/projects/web/magellan/docs.php
      That's the same page as you found the sample templates on.

      So, to start with, take the standard template and hack out everything but the header. Make sure that you maintain HTML table integrity though. Then add that new template into your test site. Apply it to index.html and see what you get.

      You may notice that there are a bunch of pictures missing when you view index.html with the standard template. That's because they have to be added into the media section of the site. You can do that by right-clicking/saving them from the ampoliros site to your harddrive and then add them into the site via the media icon on the leftside nav panel. It's identical to the template adding process (Thanks Alex for the consistency). Reference the images in your HTML something like this:
      <img src="media/arrowrightgray.gif">
      Notice the lack of a leading "/". That's because your media is buried here: /ampsites/test/media/.

      Well, that's all for now. It's just the start and there's so much more to learn and to write about.

      Stay tuned!

      John

       
    • John Voth

      John Voth - 2002-09-06

      Maarten,

      I just re-read my response to you and I realize that I did not specifically answer your question about news article creation. I'm sorry.

      But I am certain that creating a news article is going to be similar to creating a regular page just with a news article template applied to it. I guess I should investigate this further by installing the news module.

      John

       
    • Maarten Stolte

      Maarten Stolte - 2002-09-07

      Hi John,

      thanks for both replies. I have indeed setup most of the test site, and was going to try the templates, as you are doing, to try and get a grip on what they can do.
      As for the news example, are there any modules available to check out, cause as far as i understand it, modules are not the templates but rather extentions on the framework.

      Maarten

       
    • Nobody/Anonymous

      I have tried to follow john Voth's step by step, and manage to get to step 3. My ampoliros is up, magellan installed, but after the install, some of the pages would go to directory listings (e.g. Admin or Root) and not load up pages.

      I put in full references to some files by adding the full /usr/local/ampoliros/etc/ to the entry for amproot.php & ampsite.php in the auth.php files in admin and root.

      I guess I have missed something out if I am having to do this, and it would account for the directory listings.

      Most of Ampoliros works (create users/sites etc) but not being able to publish is a bit frustrating.

      Box:
      Suse Linux 7.3/MySQL

       

Log in to post a comment.

MongoDB Logo MongoDB