TYPO3 Forge: Issueshttp://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692016-03-19T13:30:52ZTYPO3 Forge
Redmine TYPO3 Core - Feature #75191 (Closed): Converting svg to png not possible without cropping or mask...http://forge.typo3.org/issues/751912016-03-19T13:30:52Zchristian rauchchri.rauch@gmail.com
<p>I tried to write a viewhelper which generates a Fallback Png for SVG Images. I added 'fileExtension' => 'png' to the processing Instructions but it gets ignored because of the following condition in LocalCropScaleMaskHelper.php</p>
<pre>
// SVG
if ($croppedImage === null && $sourceFile->getExtension() === 'svg') {
$newDimensions = $this->getNewSvgDimensions($sourceFile, $configuration, $options, $gifBuilder);
$result = array(
0 => $newDimensions['width'],
1 => $newDimensions['height'],
3 => '' // no file = use original
);
// all other images
}
</pre>
<p>First I thought about extending the condition like that</p>
<pre>
if ($croppedImage === null && $sourceFile->getExtension() === 'svg' && $configuration['fileExtension'] !=='svg') {
</pre>
<p>But this will always be true as the fileExtension will be one of gif, jpg, or png if not explicitly set...</p>
<p>Would it be possible to add an extra configuration parameter like forceSvgConvert or something like that</p>
<p>The condition could then look like this</p>
<pre>
if ($croppedImage === null && $sourceFile->getExtension() === 'svg' && !$configuration['forceSvgConvert']) {
</pre>
<p>And one could use processing Instructions like this to force the generation of a Fallback Png for a svg image</p>
<pre>
$processingInstructions = array(
'width' => $width,
'height' => $height,
'minWidth' => $minWidth,
'minHeight' => $minHeight,
'maxWidth' => $maxWidth,
'maxHeight' => $maxHeight,
'additionalParameters' => ' -background none',
'fileExtension' => 'png',
'forceSvgConvert' => true
);
</pre> TYPO3 Core - Feature #60522 (Rejected): Sorting of custom records in List Modulehttp://forge.typo3.org/issues/605222014-07-24T15:27:40Zchristian rauchchri.rauch@gmail.com
<p>If I add custom records to the page module with $TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables'] sorting is not possible.</p>
<p>the makeOrdinaryList function makes a call to $this->fwd_rwd_nav() but I dont get the Logic behind it, as it always return an array with two elements (0=>1, 1=>0)</p>
<pre>
while ($row = $this->getDatabase()->sql_fetch_assoc($result)) {
BackendUtility::workspaceOL($table, $row);
if (is_array($row)) {
*list($flag, $code) = $this->fwd_rwd_nav();
$out .= $code;*
if ($flag) {
$params = '&edit[' . $table . '][' . $row['uid'] . ']=edit';
$Nrow = array();
// Setting icons links
if ($icon) {
$Nrow['__cmds__'] = $this->getIcon($table, $row);
}
// Get values:
$Nrow = $this->dataFields($this->fieldArray, $table, $row, $Nrow);
// Attach edit icon
if ($this->doEdit) {
$Nrow['__editIconLink__'] = '<a href="#" onclick="' . htmlspecialchars(
BackendUtility::editOnClick($params, $this->backPath))
. '" title="' . $this->getLanguageService()->getLL('edit', TRUE) . '">'
. IconUtility::getSpriteIcon('actions-document-open') . '</a>';
} else {
$Nrow['__editIconLink__'] = $this->noEditIcon();
}
$out .= $this->addelement(1, '', $Nrow, 'class="db_list_normal"');
}
$this->eCounter++;
}
}
</pre>
<p>This is the only thing that prevents me from disabling the list module entirely in my use cases. I think it would be a great addition to typo3 because most editors are somehow confused when i explain the difference between the list and the page module to them.</p>
<p>I tried to implement it myself, but I failed because I don't understand enough of the typo3 core</p> TYPO3 Core - Bug #21834 (Closed): Icons for Word documents missinghttp://forge.typo3.org/issues/218342009-12-10T11:22:25Zchristian rauchchri.rauch@gmail.com
<p>Office 2007 Documents are not displayed with the correct File Icon because Typo3 doesn't know the File Extensions. (docx, pptx ....)<br />I think it would be enough to add the filetypes in t3lib\stddb\tables.php to the $FILEICONS array...</p>
<p>(issue imported from #M12998)</p>