Log in | Register | Lost password

Bottom
pgCalendar extending
  • Posted: 10.10.2005, 12:26
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi all,

    I start with pagesetter and I really start liking it more and more,... I got pgcalendar running and it seeems to work well,... but I NEED MORE!!!

    I used the import Function from pagesetter to import the postcalendar data's, the start and the endate, the summery and the description,.... and a lot of other fields which are not supported by pgcalendar, I need to extend the calendar, so that the other fields like the fee are also shown by the template and I tried to get it run by myself, I do know how to access one or the other field from pagesetter, and maybe I can make it flexible too, but where I get the indes from? how can I program it that I know which pagesetter publication I am in, at this time pgcalendar is shown,...

    Or is there an easy way to extend pgcalendar to my needs,...

    I would also like to see a Flyer to each event,...

    thanks and greetings
    bernie
  • Posted: 10.10.2005, 13:04
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It's very simple:

    in the pgcalendar-templates (Default-classic.html and Default-list.html) you can change (near by line 60) the generated link as followed, so that the pagesetter-template (-full) is used, where you can do what you want ;)

    This is the old code:

    Code

    <a href="<!--[pnmodurl modname="pgcalendar" func="viewpub" tid=$event.core.tid pid=$event.core.pid]-->"><!--[$event.core.title]--></a>

    This is the new code:

    Code

    <a href="<!--[pnmodurl modname="pagesetter" func="viewpub" tid=$event.core.tid pid=$event.core.pid]-->"><!--[$event.core.title]--></a>


    You can see an example here:
    http://rettungsnetz.org/index.php?module=Kalender&tid=9



    edited by: hilope, Oct 10, 2005 - 02:04 PM
  • Posted: 10.10.2005, 13:26
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Ok, hopefully I understood it now, I will giveem a try tonight,.... but it seems working with your calendar!

    When you have some time, mybe you can explain how this works then? I just can guess right now,... but I will try!

    Thank you very very much!!!

    greetings
    bernie
  • Posted: 11.10.2005, 00:55
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    You should not change the default templates.
    Please carefully read the README.TXT file in the pgcalendar release.

    In your case: Copy the Default-event.html file (this is the full event) to your pgcalendar theme directory and change the name of it as described in the README.TXT file. Edit the xxxx-event.html file in order to satisfy your needs. Repeat the process with the Default-print-event.html file.

    That?s all.

Template courtesy of Designs By Darren.