[TYPO3-english] Re: Backend layout No edit access

2017-08-07 Thread Naberd Zendi

wel not sure wth is wrong there, had to modify core file

/typo3/sysext/backend/Classes/View/PageLayoutView.php

} elseif (isset($columnConfig['colPos']) && $columnConfig['colPos'] !== ''
   && 
!GeneralUtility::inList($this->tt_contentConfig['activeCols'], $columnConfig['colPos'])
   ) {
$grid .= 
$this->tt_content_drawColHeader($this->getLanguageService()->sL($columnConfig['name'])
   . ' (' . 
$this->getLanguageService()->getLL('noAccess') . ')', '', '');
and instead of noAccess message i set there to return normal values
$grid .= $head[$columnKey] . $content[$columnKey]; 
___

TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: [Typo3 7.6] Check for PDF (as media asset) inside content element?

2017-08-07 Thread Christian Hackl

try {file} or {_all} , choose what you 
need and set it in a if statement or a switch... :)
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] [Typo3 7.6] Check for PDF (as media asset) inside content element?

2017-08-07 Thread Dave Zen

Hi,

I want to check in fluid if the editor has added a PDF file to a content 
element but I'm not sure how to do that.

If the editor adds a PDF file (as a media asset) I want to display a button 
where the user can download this PDF, otherwise no button should be shown.

Now my code looks like this:
PDF

This will generate a button no matter if the pdf is included or not. How can I 
check if a PDF was added by the editor in the content element?
I know that there is the possibility to use  with a condition but I'm not 
sure how the condition should look like in this context.

Thank you very much.
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english