Coder Social home page Coder Social logo

lochmueller / calendarize Goto Github PK

View Code? Open in Web Editor NEW
75.0 75.0 82.0 2.72 MB

📆 Best TYPO3 Calendar ever 📆

Home Page: http://typo3.org/extensions/repository/view/calendarize

PHP 90.09% HTML 8.21% JavaScript 0.21% Shell 1.48%
events extension typo3 typo3-extension

calendarize's Introduction

Hi there 👋

My name is Tim and I am a PHP backend developer working for HDNET in Werther, Germany.

Some facts...

  • 🔭 I’m currently working on TYPO3 Extensions.
  • 🌱 I’m currently learning A-Frame.io for VR features.
  • 🤔 I’m looking for help with game design in TypeScript/A-Frame.io.
  • 💬 Ask me anything about TYPO3.
  • 📫 Your reach me via GitHub.
  • ⚡ Fun fact: I love playing games in the garden -> My Games

calendarize's People

Contributors

albig avatar artus70 avatar cabi avatar christianfutterlieb avatar digit42 avatar etlam avatar garbast avatar georgringer avatar gregor-agnes avatar hannesbochmann avatar jalr avatar koll051 avatar lochmueller avatar markusa86 avatar mediaessenz avatar mkalus avatar monosize avatar mrvoss avatar okmiim avatar phvt avatar pjeweb avatar reneroboter avatar schweriner avatar scmika avatar sirdiego avatar sypets avatar tillhoerner avatar twestner avatar wazum avatar webian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calendarize's Issues

Commit 2cdeccb breaks february

The fix according to month-switch failure 2cdeccb solves the problem of going back to february. But now the view of february is broken:

calendarize_february

It shows only the last day (29) of february. The other months are working fine.

Faceted Search (ke_search) Indexer is not working

Hello,

the default Indexer is not working for my extension records. It does not return any records from the database for multiple reasons:

KeSearchIndexer.php Line 55:
$indexRepository->setOverridePageIds(GeneralUtility::intExplode(',', $indexerConfig['storagepid']));

The field name of the storagePid in the Indexer Config is named "sysfolder". So the line should be:

$indexRepository->setOverridePageIds(GeneralUtility::intExplode(',', $indexerConfig['sysfolder']));

Then Repository still won't return any records of my Extension. My records using Calendarize got the uniqueRegisterKey "TgmEvents". When calling the IndexRepository on line 56, the Respository has never been informed which records should be returned so I have to add the following line in the KeSearchIndexer.php before:

$indexRepository->setIndexTypes(array('TgmEvents'));

This should be configurable in the indexer config of course.

But then: Still no records. The function getDefaultConstraints of the Repository add's my record to the query with this line:
$constraints[] = $query->in('uniqueRegisterKey', $this->indexTypes);

For any reasons: This is not working. Heres where I had to stop my research. I only can say using "equals" instead of "in" solves the problem herer.

Greetings from Schwerin, Germany and thanks for the extensions.

Events on last day of month won't be shown

Hey,
first I want to say thank you very much for the extension - nice work!

Currently running in troubles with events on 31th October - they wont be added to the month view. Using PHP 5.4 and TYPO3 6.2.15.

I guess the problem is located in the IndexRepository line 167:

For example october:

This
$endTime = mktime(0, 0, 0, $month + 1, 0, $year);

results for me in 1446246000 (2015-10-30 23:00:00).

Maybe this would be a better solution?
$endTime = mktime(0, 0, 0, $month + 1, 1, $year);

Greetings from Schwerin, Germany

start_date vs. end_date

In the IndexRepository the start_date is used to filter relevant entries. From my point of view it would be better to use the end_date.

If there is an event for more than one day, the event could also be interesting for some people (even if it's already in progress).

At least an option to select wich date is relevant would be nice.

Markus

Curious bug

Hi,

After last upgrade (thanks for it :) ) i have this trouble on my page:
Configuration Error Basic configuration settings are missing. It seems, that the Static Extension TypoScript is not loaded to your TypoScript configuration. Please add the calendarize TS to your TS settings.

But this message appear on a page with 2 calendarize plugin (one calendar view and one list view)
The calendar view works perfectly, the list view don't show the abstract and show this message.

My static template is loaded (if not nothing could appear)

Do you have an idea?
I'm on a 7.6.4 with the last master of calendarize

Thanks a lot.

Add weekday to calendarize_info

For recurring schedules on certain weekdays it would be helpful to see the abbreviation of the weekday in calendarize_info (e.g. Mi. 27.01.2016 - Mi. 27.01.2016).
This might be added to the collapsed IRRE field info too.

category selection

Hi,
in an previous issue you wrote: "The category selection (example with the default Event Model) is part of the next release...". Do you meen, that calendarize will use the TYPO3 categories to limit the event list. I think, this is very useful, especially for calendarize_news.

By the way: I love your extension
Stephan

year.view variable $year empty

when config the contentelement as year.view then the variable $year in controller ist empty and you will get no results from repository.
my quick and dirty solution
/**
* Year action
*
* @param int $year
*
* @return void
*/
public function yearAction($year = null)
{
$date = DateTimeUtility::normalizeDateTime(1, 1, $year);
if ($year == null){
$year = date('Y');
}
$this->view->assign('indices', $this->indexRepository->findYear($year));
$this->view->assign('date', $date);
}

regards
jochen kast

Add support for typo3 categories

It would be nice to have the option to limit the output to a subset of events at once. One way would be the support of different sys-folder (see #7) or to have the option to select an category of events to show.

Round SIM_ACCESS_TIME (optional)

A mechanism to round SIM_ACCESS_TIME to "hours", "2 hours", "4 hours", "6 hours", "12 hours" to speed up the selection by repeating the SELECT queries more often (use the query cache).

The mechanism is optional.

[BUG] Day view leaves out one day of date range events

Hi,
create a range event by setting a start_date and an end_date in the calendarize configuration (frequeny none, some start_time, some end_time). Use a calender view, a list view and a date view.

The calender shows the event correctly via highlighting all event-days. But if you click on the day before the end_date you will see the day view which does not show the event has highlighted the day in the calender. All other days show the correct day view.

(I tried this with master version on 6.2.15)

Frontend times differ by backend time by +1

Hi,
the start- and endtimes in the frontend have an offset by +1 which is not influenced by serverTimeZone. In the backend at the bottom of the calendarize tab they are right. The rendered times in frontend will be correct if using moment.js, but it would be nice to have correct times without javascript.

calendarize version: 1.6.1
calendarize_news: 0.3.0
[SYS][serverTimeZone] = 1
[SYS][phpTimeZone] = Europe/Berlin
useMomentJsDateAndTimeOutput = 0

Add support for multi language installations

I setup an website with multiple languages and need the option to create Events in all languages the website supports. Would be nice if calendarize supports the following scenarios:

  • Create events in the default language only
  • Create events in a non default language only
  • Create events with localisation - default language plus translations
  • Create events that are set to "All languages" should show up in all language.

[BUG] Event disappears if event is saved/created at start_date

Hi,
in version 1.7.1 and master an event disappears if it is saved at the same day of the event (start_date). Calendarize Information and the list view do not show events on start_date. An entry is created in tx_calendarize_domain_model_index. The day view shows these events correctly.

could the calender be cached?

Hi,
the admin panels tells me that there is a USER_INT object for each calendarize plugin which slows down the website (some people like to integrate a calender on every page :( ) and which prevents indexed_search from indexing pages (list view). Is this necessary and why? Could this be changed?

Fe-Plugin does not respect storagepage

If I define different sysfolder for diverent kind of events, it is not possible to filter the event list in frontend by selecting one of this folders. I always get the hole list.

Highlighting in calendar only respects start_date - not ranges defined with start_date and end_date

Hi,

if there is an event that lasts more than one day I should enter a start_date and an end_date and the frequency should be none. But I also could also enter only a start_date and a till_date with frequency daily, which causes the creation of many events. The calendar highlights every day in range but list view will become unreadable (on event for every day).

Couldn't the IndexOnDayViewHelper not only test start_day but instead the range between start_date and end_date (maybe as option)?

(sorry, only looked at version 1.7.1 and actual changelog)

Filter events by categories

Hi,
sorry, one more question: I use the newest calendarize from github with TPO3 7.6.4 and try to filter events in list view by categories
In the file '...\layout\default.html' I added without success:

<f:for each="{event.categories}" as="category">
    <f:if condition="{category.uid} == 3">
        <div class="calendarize">
            <f:render section="Main" />
        </div>
    </f:if>
</f:for>

Regards
Tom

realurl (2.0.6) broke calendarize

Another upgrade of realurl (2.0.6) broke calendarize :(

Fatal error: Call to a member function convertToSafeString() on null in /var/www/_minisites/htdocs/typo3conf/ext/realurl/Classes/Encoder/UrlEncoder.php on line 252

Thanks

Realurl in autoconf and calendarize

Hi,

When i activate realurl autoconf i have this message on pages with calendarize :
Fatal error: Class 'tx_realurl_advanced' not found in /var/www/lib/typo3_packages/typo3_src-7.6.2/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4505

Can you explain what's the problem?

Thanks a lot

Show only the next date per Event

Hi,

a customer has a feature request. He wants to only display the next upcoming date from one "Event". Maybe you can add a input field in the flexform to limit how much dates per event will shown in the view.

Thanks for this great extension.
Tobias

Booking Feature

Integrate a basic booking feature for the events

  • Event fields
    -- Is bookable? (bool)
    -- Booking limit (int) inkl. unlimited
  • Booking record with the event, index, time and user information
  • Booking controller for the process (form, confirm, thank-you-page)
  • Mail Service for Admin and user E-Mail

Feature Request: Dont' hide past events

Hi,
it would be helpful to have the option to show events for e.g. a whole year even if the event is over. I would use it to show the activities of an organization in a special time period.

Regards & thanks for the great extension
Hobokens

Dependency to "typo3-ter/autoloader" inside composer.json don't work in TYPO3 6.2

Because of this:

"require": {
"typo3-ter/autoloader": "~1.6"
}

inside composer.json I can not install calendarize using new installation method of TYPO3 using composer.

The package "typo3-ter/autoloader" will not be found.

Removing helps, but maybe (I'm not sure) it also works, if you add the TYPO3-Composer-Repository in a repository section:

"repositories": [
{
"type": "composer",
"url": "http://composer.typo3.org/"
}
]

EDIT: I had a conversation with helhum on slack about this problem. May be it's a bug comes from TYPO3/Composer-Repository-Server.. Stay tuned

EDIT2: helhum mean it's better (at the moment) to remove dependencies (require-section) inside composer.json or whole composer.json, before it is fixed inside TYPO3

table, tx_calendarize_domain_model_configuration, is not allowed on this page

Hi,

I'm using TYPO3 7.6.2 with the newest versiond of news, calendarize_news, calendarize and autoloader. I included When I try to insert a Date for a news I get the error message above on saving.
I included the four templates and checked the table. Everything looks fine. Did I miss any configuration?

Thx for any help.

calendarize is not PHP-7 compatible

After switch my environment to php 7, I get this error in calendar list view:
PHP Warning: Declaration of HDNET\Calendarize\ViewHelpers\Link\IndexViewHelper::render(HDNET\Calendarize\Domain\Model\Index $index, $pageUid = NULL) should be compatible with TYPO3\CMS\Fluid\ViewHelpers\Link\PageViewHelper::render($pageUid = NULL, array $additionalParams = Array, $pageType = 0, $noCache = false, $noCacheHash = false, $section = '', $linkAccessRestrictedPages = false, $absolute = false, $addQueryString = false, array $argumentsToBeExcludedFromQueryString = Array, $addQueryStringMethod = NULL) in /var/www/vhosts/website.de/httpdocs/preview/web/typo3conf/ext/calendarize/Classes/ViewHelpers/Link/IndexViewHelper.php line 17

2 Installation Problems

Hi Tim,

sorry, it's me again. I have two strange installtion problems:

  1. Although I can see the js-files and the css-files in the TSOB they are not included in the page (take a look at the screnenshots)
    installation_tsob
    installation_year_view

  2. The more link and the title link in listview link to the list view (id=135) instead to detail view although i've configured the plugin correctly (detail view id=134). I have the same problem with the day view.

Regards and thanks for your great extensions!
Hobokens

Standalone usage of IndexRepository

Not really an issue, but odds I faced using the IndexRepository in a scheduler task – maybe you have some suggestions.

  • what is the function of the $contentObject inside the repo? At least I have to pass an array [uid:-1] to my own IndexRepo instance to prevent an error thrown in EventSearch (invalid sql statement because of missing uid).
  • what does the dispatched signal slot?
  • inside a scheduler task, IndexRepo:getDefaultConstraints() will make the root page the storage pid – the only workaround I found was adding TS setting config.tx_extbase.persistence.storagePid which seems to be no nice solution.

nice to have ordering for yearview

    $query->setOrderings([
        'start_date' => QueryInterface::ORDER_DESCENDING,
        'start_time' => QueryInterface::ORDER_DESCENDING,
    ]);

or like in indexRepository -> public function findByTraversing

Feature Request: Location field

Hi,
It would be really great to have a special location field in calendarize event. I tried to add it by myself but I don't have the experience to understand calendarize with autoloader.

Regards
Hobokens

Copy of a record (like tx_news) does not appear

Hi,
copy a record which has a calendarize configuration attached, unhide the new record. The configuration is copied correctly. But the index created is not correct anymore because the field 'hidden' in 'tx_calendarize_domain_model_index' is still set to 1. In the UI there exists a field hidden but the value there does not correspond to the index in the database. Recreation of index with scheduler does not change this field. Therefore the new record is not shown in list or calender view and nobody is able to change that with the UI.

(tested autoload 1.11.4, calendarize_news 0.3.1 and calendarize master on 6.2 LTS)

calendarize_hidden

Categories and Frontend

Hallo Tim,

folgende Zeilen in der ext_tables.php bereiten mir Kopfzerbrechen:
if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.0.0')) {
// $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['calendarize_calendar'] .= ',categories';
}

Wenn diese Zeile drin ist, werden die Kategorien auf einer Seite, wo das Plugin fürs Frontend eingebunden wird, nicht unter dem Reiter Categories angezeigt, sondern sind direkt im Plugin. Dort allerdings kann man keine Kategorie auswählen, die dann auch gespeichert würde. Die Änderungen verfallen einfach.
Ist die Zeile draußen, sind Kategorien da wo man sie vermutet und Änderungen wirken sich direkt auch auf die Anzeige im Frontend aus (sehr fein übrigens).

Kannst du mit den Code erklären? Ist das ein Bug oder ein Feature? :)

Ich nutze Typo3 in der Version 7.6.2

Schöne Grüße
Evelyn

Real url error

Hi,

I have tried your master with realurl 2.0.0 but i have this error now :

Fatal error: Class 'DmitryDulepov\Realurl\Encoder\UrlEncoder' not found in /var/www/lib/typo3_packages/typo3_src-7.6.2/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 4505

monthly entries in month of start date

It seems that monthly schedules are incorrect for the month of the start date. Samples:

  • setup:
  • start: 01.01.2016, 08:00
  • monthly / last / thursday
  • result: first shown schedule is 25.02. (expected: 28.01.)
  • setup:
  • start: 28.01.2016, 08:00
  • monthly / last / thursday
  • start: 28.01.2016, 08:00
  • monthly / first / thursday
  • result: first shown schedules are 28.01., 28.01. (expected: 28.01., 04.02.)
  • setup:
  • start: 02.02.2016, 08:00
  • monthly / last / thursday
  • start: 02.02.2016, 08:00
  • monthly / first / thursday
  • result: first shown schedules are 02.02., 02.02. (expected: 04.02., 25.02.)

Your extension is very helpful – thank you for sharing!

Restrict registration to certain types

It would be nice to enable cType restriction in the Register:extTables() to add the calendarize fields only to certain types. In Register:createTcaConfiguration() the method ExtensionManagementUtility::addToAllTCAtypes is called, which supports a typelist as third parameter.
(not sure whether this interferes with "required" configuration)

Date in own Model

Hi,

how is it possible to get the Date from the Calendarize Repository in my own Model/Controller? Is there an example anywhere? I just want to display the date in a list view from my extension.

Thanks for your help and for the geat extension.

Tobias

DateTime Modify fails due to leapyear?

In the Month view you use a ViewHelper to change the month of the date objekt. Today, on march 30th, the functions fails for me. I can't go back to february when using the ViewHelper like this:

<c:dateTime.modify modification="-1 month">{date}</c:dateTime.modify>

The result is 1. March. So the link to the last month does not work for me and always returns March...

I'm using PHP 5.6 but I don't think this error is caused by PHP. Using the ViewHelper in the Month.html Tempalte to this solves the problem for me:

<c:dateTime.modify modification="first day of last month">{date}</c:dateTime.modify>

Or the complete month switcher:

<f:if condition="{settings.monthPid}">
                    <f:if condition="{c:ifDateUpper(base: settings.dateLimitBrowserPrev, check:date)}">
                        <c:dateTime.modify modification="first day of last month">{date}</c:dateTime.modify>
                        <c:link.month pageUid="{settings.monthPid}" date="{date}">
                            &lt;
                        </c:link.month>
                        <c:dateTime.modify modification="first day of next month">{date}</c:dateTime.modify>
                    </f:if>
                </f:if>
                <f:format.date format="%B %Y">{date}</f:format.date>
                <f:if condition="{settings.monthPid}">
                    <f:if condition="{c:ifDateLower(base: settings.dateLimitBrowserNext, check:date)}">
                        <c:dateTime.modify modification="first day of next month">{date}</c:dateTime.modify>
                        <c:link.month pageUid="{settings.monthPid}" date="{date}">
                            &gt;
                        </c:link.month>
                        <c:dateTime.modify modification="first day of last month">{date}</c:dateTime.modify>
                    </f:if>
                </f:if>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.