Func Parameter für Content3.0 um CRPCalendar einzubinden  Unten

  • Im Modul Location gibt es die Möglichkeit andere Module einzubinden. Ich möchte gerne aus dem Modul CrpCalender upcoming events anzeigen lassen. Eingeben wurde das so. Es wird aber nichts angezeigt:
    module=crpCalendar, type=user, func=view, query=&sortOrder=ASC&typeList=upcoming

    Jazzie

    nice greetings from the city of cologne
  • So wie hier: http://foerdefl…locationid/682?

    Das hab ich in der Datei "locations_user_location_display.htm" so gemacht:

    Code

    <!--[pnmodavailable modname="crpCalendar" assign="crpCalendar"]-->
    <!--[if $crpCalendar]-->
    <!--[ getDatesFromCrpCalendar bylocation=$location.locationid typeList="upcoming" assign="dates" ]-->
    <!--[if $dates|@count > 0]-->
    <h3 class="category"><!--[pnml name="_LOCATIONS_LOCATION_DATES"]--></h3>
    <p>
    <a href="<!--[pnmodurl modname="locations" type="user" func="display" locationid=$location.locationid theme="rss"]-->" title="Termine abonnieren"><img src="themes/ff2008/images/feed.png" alt="RSS-Icon" class="floatright noborder" /></a>
    </p>
    <ul>
    <!--[foreach item='date' from=$dates]-->
    <li><!--[ $date.start_date|pndate_format:"datetimebrief"]--> | <a href="<!--[pnmodurl modname="crpCalendar" type="user" func="display" eventid=$date.eventid]-->"><!--[$date.title|truncate:"50":"&hellip;"]--></a></li>
    <!--[/foreach]-->
    </ul>
    <div class="edit"><!--[pnml name="_LOCATIONS_LOCATION_DATE"]--> <a href="<!--[pnmodurl modname="crpCalendar" type="user" func="new"]-->"><!--[pnml name="_ADD"]--></a></div>
    <!--[/if]-->
    <!--[/if]-->


    Gruß Steffen

    "If you want people to RTFM, make a better FM!"
  • Hi Steffen vielen Dank für die schnelle Antwort. Ich hatte das anders gedacht. Im Modul Content habe ich eine Seite angelegt. Als Inhaltselement kann man dann ein Modul auswählen. An der stelle http://www.sued-kompass.de/index.php?module=Inhalte&func=view&pid=4 an der jetzt schau mal rein steht wollte ich das Modul als Inhaltselement aufrufen.
    Dafür gibt es ein Auswahlfeld in der Modul Func= usw eingegeben werden kann...
    Ich weuß nur nicht welche Parameter mann verwenden muss für die quereys icon_confused
    Jazzie

    nice greetings from the city of cologne
  • Oh ich seh auch gerade, dass ich da oben ein Plugin aufrufen, dass ich mir dafür selbst geschrieben habe. Das ist aber auch total einfach:

    Code

    <?php

    function smarty_function_getDatesFromCrpCalendar($param, &$smarty) {
       
        $result = pnModAPIFunc('crpCalendar', 'user', 'getall', $param);
       
        if ($param['assign'])  {
             $smarty->assign($param['assign'], $result);
        } else {
             return $result;
        }
    }


    Du siehst, ich hol die Daten über die API-Funktion "getall" mit den Parametern bylocation (ID der Location) und typeList="upcoming". Ich bin mir nicht ganz sicher, ob es dafür auch schon eine GUI-Funktion gibt.

    Du könntest aber das Locations-Plugin für Content so erweitern, dass gleich unter der Adresse die Termine angezeigt werden. Den Code hast Du jetzt hier komplett icon_wink

    Gruß Steffen

    "If you want people to RTFM, make a better FM!"
  • 0 Benutzer

Diese Angaben basieren auf den Useraktivitäten der letzten 30 Minuten.