Skip to content

Commit

Permalink
version 10.1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Aug 31, 2020
1 parent 246f4d9 commit 1f4ec60
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 5 deletions.
10 changes: 9 additions & 1 deletion Classes/Controller/ContentController.php
Expand Up @@ -1132,7 +1132,7 @@ public function createAction(\Quizpalme\Camaliga\Domain\Model\Content $content)
$imageFileToUse = $imageFile;
}

# create reference
# create reference; but not all Options are used :-(
$resourceFactory = $this->objectManager->get('TYPO3\\CMS\\Core\\Resource\\ResourceFactory');
$falFileReference = $resourceFactory->createFileReferenceObject(
[
Expand Down Expand Up @@ -1174,6 +1174,14 @@ public function createAction(\Quizpalme\Camaliga\Domain\Model\Content $content)
}
}
}

// Position bestimmen?
if ($this->settings['getLatLon'] && $this->settings['maps']['key']) {
$contents = [];
$contents[] = $content;
$debug .= $this->getLatLon($contents);
}

// Anzeige
$this->view->assign('content', $content);
$this->view->assign('debug', $debug);
Expand Down
2 changes: 1 addition & 1 deletion Configuration/FlexForms/flexform_pi1.xml
Expand Up @@ -64,7 +64,7 @@
<numIndex index="1">Content->elegant</numIndex>
</numIndex>
<numIndex index="14">
<numIndex index="0">new/create</numIndex>
<numIndex index="0">LLL:EXT:camaliga/Resources/Private/Language/locallang_be.xlf:template.new</numIndex>
<numIndex index="1">Content->new;Content->create</numIndex>
</numIndex>
<numIndex index="15">
Expand Down
2 changes: 2 additions & 0 deletions Documentation/Introduction/WhatDoesItDo/Index.rst
Expand Up @@ -38,6 +38,8 @@ This flexible extension can display elements as e.g. carousel, gallery, list or

- Viewhelpers and utilities implemented.

- You can create new entries via frontend or backend.

- Backend module.

The extension is not allways easy to use, but it is very flexible and admins will like that.
Expand Up @@ -23,7 +23,7 @@ Diese flexible Extension kann Elemente z.B. als Karussell, Galerie, Liste oder a
- Viele Templates für die Ausgabe vorhanden.

- Man kann die Kategorien von TYPO3 benutzen, um die Elemente zu klassifizieren und die Ergebnisse im
Front-End einzuschränken (Suche nach Kategorien).
Frontend einzuschränken (Suche nach Kategorien).

- Auch eine Volltextsuche ist vorhanden.

Expand All @@ -39,6 +39,8 @@ Diese flexible Extension kann Elemente z.B. als Karussell, Galerie, Liste oder a

- Viewhelper fürs einbinden von CSS- und JS-Dateien.

- Neue Einträge können sowohl im Frontend als auch im Backend angelegt werden.

- Backend-Modul vorhanden.

Die Extension ist nicht immer einfach zu benutzen, aber sie ist sehr flexibel und Admins werden das mögen.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# camaliga

version 10.1.1
version 10.1.2

A carousel/gallery/map/list extension that can use the TYPO3 categories and different jQuery-plugins like Slick or Isotope.
Bootstrap support. Indexer for ke_search. Many features.
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Language/de.locallang_be.xlf
Expand Up @@ -57,6 +57,9 @@
<trans-unit id="template.search">
<target>Google map 2: automatisch erweitere Version (ungecachtes search-Template)</target>
</trans-unit>
<trans-unit id="template.new">
<target>Formular für neue Einträge im FE</target>
</trans-unit>
<trans-unit id="templateLayout">
<target>Template-Layout (siehe Doku):</target>
</trans-unit>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Language/locallang_be.xlf
Expand Up @@ -60,6 +60,9 @@
<trans-unit id="template.search">
<source>Google maps 2: (uncached search template)</source>
</trans-unit>
<trans-unit id="template.new">
<source>Create new entries in the frontend</source>
</trans-unit>
<trans-unit id="templateLayout">
<source>Template layout (see manual):</source>
</trans-unit>
Expand Down
10 changes: 10 additions & 0 deletions Resources/Private/Templates/Content/Create.html
Expand Up @@ -35,6 +35,16 @@
<label for="camaliga-country"><f:translate key="tx_camaliga_domain_model_content.country" />:</label><br />
{content.country}
</div>
<f:if condition="{content.latitude}">
<div class="form-group">
<label for="camaliga-latitude"><f:translate key="tx_camaliga_domain_model_content.latitude" />:</label><br />
{content.latitude}
</div>
<div class="form-group">
<label for="camaliga-longitude"><f:translate key="tx_camaliga_domain_model_content.longitude" />:</label><br />
{content.longitude}
</div>
</f:if>
<f:if condition="{content.falimage.uid}">
<div class="form-group">
<label for="camaliga-image"><f:translate key="tx_camaliga_domain_model_content.image" />:</label><br />
Expand Down
7 changes: 7 additions & 0 deletions Resources/Private/Templates/Content/New.html
@@ -1,4 +1,7 @@
<f:layout name="Default" />
<f:comment>
Note: you can add more fields here.
</f:comment>

<f:section name="main">
<f:flashMessages />
Expand Down Expand Up @@ -41,6 +44,10 @@
<label for="camaliga-country"><f:translate key="tx_camaliga_domain_model_content.country" /></label>
<f:form.textfield property="country" id="camaliga-country" class="form-control" />
</div>
<div class="form-group">
<label for="camaliga-country"><f:translate key="tx_camaliga_domain_model_content.custom1" /></label>
<f:form.textfield property="custom1" id="camaliga-country" class="form-control" />
</div>
<div class="form-group">
<label for="camaliga-falimage"><f:translate key="tx_camaliga_domain_model_content.image" /></label>
<f:form.upload name="image" class="form-control imageupload" />
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Expand Up @@ -14,7 +14,7 @@
'title' => 'Camaliga: CArousel/MAp/LIst/GAllery',
'description' => 'A carousel/gallery/map/list extension that can use the TYPO3 categories and different jQuery-plugins like Slick or Isotope. Bootstrap support. Indexer for ke_search.',
'category' => 'plugin',
'version' => '10.1.1',
'version' => '10.1.2',
'state' => 'stable',
'uploadfolder' => false,
'createDirs' => '',
Expand Down

0 comments on commit 1f4ec60

Please sign in to comment.