Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 64444279 authored by Nicolas BEJEAN's avatar Nicolas BEJEAN
Browse files

Correction du PDF Path dans le widget

parent 78fab7e6
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,14 @@ class Pdf extends Template implements BlockInterface
return $this->getData('pdf_id');
}
/**
* Récupère le path du PDF
*/
public function getPath($pdf)
{
return '/media/mediamanager/pdf/' . $pdf;
}
/**
* Récupère active_title
*/
......
......@@ -5,7 +5,7 @@
"php": "~5.5.0|~5.6.0|~7.0.0"
},
"type": "magento2-module",
"version": "1.1.2.22",
"version": "1.1.3.22",
"license": [
"OSL-3.0",
"AFL-3.0"
......
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="NicolasBejean_MediaManager" setup_version="1.1.2.22" />
<module name="NicolasBejean_MediaManager" setup_version="1.1.3.22" />
</config>
\ No newline at end of file
......@@ -2,7 +2,7 @@
/* @var $block \NicolasBejean\MediaManager\Block\Widget\Pdf */
$pdfBlock = $block->getPdf();
$pdfPath = $pdfBlock->getData('pdf_path');
$pdfPath = $block->getPath($pdfBlock->getData('pdf_path'));
$activePdf = $pdfBlock->getData('enabled');
$activeWrapper = $block->getActiveWrapper();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment