Log in | Register | Lost password

Bottom
Any ideas for required Pagesetter examples?
  • Posted: 19.01.2004, 14:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'm going to ship a few examples of what Pagesetter can do with the next version. But what do you think would be good to clarify?

    For now I expect to ship the following:

    - News
    - Knowledge base / FAQ
    - Journal
    - Static HTML pages
    - Project database
    - Course statistics (collecting data from course instructors)
  • Posted: 27.01.2004, 10:19
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hello J?rn,

    First of all, my compliments! Your modules run very well and easy. Great job!

    I have built a small determination example on mij website. One can use this specific example to determine the name of an animal, caught from a ditch or pond. Bij answering Yes/No questions you finally determine the name of the caught animal. This is a method which can be used in primary school for teaching purposes.
    http://www.supero.nl/index.php?module=pagesetter&func=viewpub&tid=2&pid=1

    My example is written in Dutch, but you can hopefully understand the broad outline.

    In the next couple of weeks I'm going to use Photoshare and Pagesetter to create a Car Quiz for my friens. Each week I'm going to publish a small part of a Car-picture. The contestants can guess what car is it. The following week I'm publising the answer and the new Question. I've not sorted out how to create this, but I think I have to create a UserAPI and a Table to store the answers, but I'm not sure yet...

    I'll let you know when I'm finished!

    Greetz,
    Jeroen
  • Posted: 28.01.2004, 17:08
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks for the input.
  • Posted: 12.02.2004, 12:35
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Probably would be more than just an example, but I think it would be worth to analyze:

    If you have a look to: http://www.armo…ns&file=index
    you can see an heavily hacked Sections module (well, all the site is heavily hacked, based on postnuke .702 - I can understand why they did not updated to new releases).

    In short:
    - the module starts with a page containing "categories", "recent additions" and "top 10";
    - for each category you have a subpage with "recent aditions" and "top 10".

    The KB example could be a starting point (listbrowser plugin works more or less like categories and a plugin for top 10 should be rather easy). What remains are "bells & whistles", like icons for categories.

    I hope this can be of some use.
  • Posted: 14.02.2004, 00:33
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks for the URL. Quite a nice site. And, yes, I also think a lot of it can be done in Pagesetter.
  • Posted: 16.02.2004, 23:20
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have spent the day on a couple of interesting pagesetter templates. Neither need any code hacks but neither do they work in the "traditional" way.

    Take a look at the following URL's take care, they are not finished and lack niceties. If the methods I used are of interest then let me know

    The first is a magazine archive viewer. This is produced using just the viewpub method call and a heavily overloaded template and plugins. It works well enough though. I haven't got round to disabling the list view yet though as you will see if you load the home page. note that there have been no mags in 2004 yet so it shows blank if you try that. all years prior should give results though.

    http://beta.fia…b&tid=3&pid=66

    The second is the "about us" page. This gives a quick (and ugly) overview of the club and then lists officers of the club and is the template that led to my earlier query about the bool variables.

    This uses a new method (for me) to trigger the display. I have a fake publication called templateProxy which I access using the pid as a switch into the display of an arbitrary template which then access the data it needs using pnModApi calls. This is better than the method used above as it allows me to still have standard pagesetter views as well. The suggestion of using a fake pub was on the forum here somewhere so whoever that was, thanks.

    http://beta.fia…ub&tid=4&pid=1

    Please feel free to take a look around a let me know whether there is
    a) anything useful there.
    b) anything I should have done differently or should be wary of.

    Take care on the rest of the site though. it is not anywhere near ready for the public yet and you are the first to go there!!!!

    cheers

    Neil

  • Posted: 18.02.2004, 07:56
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have made some tests with pagesetter and I think that I have a very interesting example:

    If you replace in the plugin "listSelector"

    Quote


    $html = "<select name="\"$name\"">\n<option value="\"\""></option>\n";
    foreach ($items as $item)
    $html .= "<option value="\"$item[id]\"">$item[fullTitle]</option>\n";
    $html .= "</select>\n";

    return $html;

    With

    Quote


    $smarty->assign("lista",$items);

    Your are giving the array directly to smarty, so you can make something like that on your listheader template:

    Quote

























    And you can have something similar to this

    http://personales.ya.com/dorogoy/example-pagesetter.png

    The last section is made like an usual list so it is pageable and has everything that is not included in the sections called by the modified listSelector plugin. This page must be invoqued with a filter like "&filter=comite:null" on the URL.

    The sections are made dinamically, if one of the publications has a field "comite" with a value assigned from the list "comites" it will appear under a specified section, if not it will appear on the pageable "Otros informes" section that stores everything else.

    I know that this is quite dirty but it does what I was exactly expecting. I know that this example is not well explained so if someone can explain it better than myself...

    I am very new to smarty so I accept suggestions to improve it.

    Regards,

    Sergio

    [Editado el 18/2/2004 por dorogoy]

Template courtesy of Designs By Darren.