fluid

TYPO3 Extbase fe_user UID in own model

自闭症网瘾萝莉.ら 提交于 2019-12-06 13:35:07
问题 I create a extbase Plugin in TYPO3 6.2. In one table i have a field "fuid" where i want to store the fe_users uid, to know which user can edit this record. I set the "fuid" in createAction: $newLocation->setFuID((int) $GLOBALS['TSFE']->fe_user->user['uid']); This work. In the Database is the right UID. But in the editAction: $location->getFuID() returns null Why? TCA: fu_i_d' => array( 'exclude' => 1, 'label' => 'LLL:EXT:pitss24/Resources/Private/Language/locallang_db.xlf:tx_pitss24_domain

Fluidtypo3 Flux - save in table field

ε祈祈猫儿з 提交于 2019-12-06 09:34:45
I'm trying to develop a frontend extensions with typo3 - fluidcontent. Is it possible to use the bodytext field of the tt_content table instead of the flexform field? I would like to connect this text element with the tt_content.bodytext field. <flux:field.text name="bodytext" label="Content" /> You can force Flux to save to the record itself, rather than the flexform field, by prefixing your field names with the name of the table that your form applies to . For example, since this implementation is for tt_content , you can name the field tt_content.bodytext and the value will be saved to that

how to include public resources to typo3 extbase extension

邮差的信 提交于 2019-12-06 06:49:16
I'm building an extension that creates a backend module that enables be_users to resize images. I'm trying to add / include css and javascript files by using the pageRenderer but the files are never included I can only apply css if add it directly in the fluid Template using a style tag and include the javascript file with a script tag. I tried something like this in the controller protected $pageRenderer; .... $this->pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Page\\PageRenderer'); $this->pageRenderer->addCssFile('/typo3conf/ext/extKey/Resources

Disable Lightbox in responsive design

核能气质少年 提交于 2019-12-06 04:38:10
I've searched previous SO posts regarding jQuery and responsive design but had no luck finding anything similar. My issue is, I have a website that when it hits > 960px it drops all the eye candy and becomes fluid. On some pages I use lightbox to preview a larger image off of a thumbnail. When the 960px is hit I would like to drop the lightbox effect. Here is how I lightbox set up: lightbox: <a href="images/some-img.jpg" rel="lightbox" title="some title">some text »</a> Is there way to say disable rel="lightbox" with jQuery at > 960px? Thanks in advance! You'll have to use js for this.

TYPO3 ver. 7.6.2 - Condition ViewHelpers evaluated only once

送分小仙女□ 提交于 2019-12-05 17:52:13
Problem: I wrote a conditional VH (extending AbstractConditionViewHelper ) and it works as usually, anyway I realized that in non-cached version it is evaluated only once. Initialy I thought that's my bug, but checked common <f:if> and the problem is identical :S In general when I visit my page for the first time, condition is evaluated and valid result is given, but when I'll refresh the page VH isn't called anymore (checked by setting breakpoint inside the VH) and VH is always treated as FALSE. Only any change in view's code will cause that VH will be evaluated once, and again next refresh

C# ListView Tile Width 100%?

烂漫一生 提交于 2019-12-05 05:53:55
问题 i have a ListView set to Tileview. The ListView width is 300 and so is the tile width. This works fine when the number of tiles does not overflow resulting in a scrollbar. When it does overflow however, when the vertical scrollbar appears, a horizontal scrollbar also appears because the vertical scrollbar lowers the listview width for the tiles. Is there a way i can have the tiles autoresize to fill the listview? See example image: What currently happens: What i want to happen: I tried

Ubuntu环境下安装PaddlePaddle

痞子三分冷 提交于 2019-12-05 02:16:03
开篇 深度学习技术是目前非常热门的技术,笔者在闲暇之余决定学习一下这门技术,入门选择了百度开源的PaddlePaddle框架。 paddlepaddle介绍 飞桨(PaddlePaddle) 是国际领先的端到端开源深度学习平台,集深度学习训练和预测框架、模型库、工具组件和服务平台为一体,拥有兼顾灵活性和高性能的开发机制、工业级的模型库、超大规模分布式训练技术、高速推理引擎以及系统化的社区服务等五大优势,致力于让深度学习技术的创新与应用更简单。 摘自百度百科,更多内容可查看百度 https://baike.baidu.com/item/%E9%A3%9E%E6%A1%A8/23472642?fromtitle=PaddlePaddle&fromid=20110894&fr=aladdin 环境准备 验证环境是否支持AVX指令集 if cat /proc/cpuinfo | grep -i avx; then echo Yes; else echo No; fi 默认安装的PaddlePaddle是支持AVX指令集版本,在终端输入上述命令,输出“Yes”表示支持,输出“No”表示不支持。 Ubuntu环境 # 命令 cat /proc/version 终端输出 Linux version 5.0.0-29-generic (buildd@lgw01-amd64-039) (gcc

Sizing width of an element as a percentage of its height or vice versa in a fluid design? [duplicate]

北城余情 提交于 2019-12-04 22:22:37
问题 This question already has answers here : Maintain the aspect ratio of a div with CSS (23 answers) Closed 3 years ago . Im making a responsive design, which has to keep the proportions of its elements (height to width) no matter what the screen size is, so i don't know the size in pixels for any of the elements and i can work only in %. I can set either the width or the height as a % of the browser size, but the i have no idea how to set the other property value. That using only CSS, making JS

Additional page property fields in TYPO3 CMS 6.2

…衆ロ難τιáo~ 提交于 2019-12-04 20:13:37
What would be the recommended method to add custom page property fields in TYPO3 6.2? In 4.5 I used TemplaVoila which had its own page module and made it easy to add data records on a page level. There are several approaches: The "vanilla" approach: Create an extension (and with it the file ext_emconf.php ) and then create a file ext_tables.sql in the extension root. In it you can put SQL-definitions for the new fields, by defining a CREATE TABLE statement for the pages table: CREATE TABLE pages( myNewField int(11) DEFAULT '', ); This SQL-definition will be merged with existing definitions for

Typo3 Fluid Image crop of with and height failure

て烟熏妆下的殇ゞ 提交于 2019-12-04 18:23:15
Using this code: <f:image src="/uploads/extkey/{image}" alt="" width="115c" height="70c" /> Produces following HTML output: <img src="typo3temp/_processed_/csm_testimage_31f6051846.gif" width="115" height="92" alt=""> The image has a wrong height now and there are white bars at top and bottom. I figured out that "92" comes from its proportion (original image is: 1280 × 1024). I guess if the white bars at top and bottom are cut out the height of 70 will be reached. Any ideas why Typo3 is doing that wrong and does some others here having the same problem? Using Typo3 6.1.5 ImageMagick 6 EDIT #2: