API 文档:https : //api.flutter.dev/flutter/material/Scaffold-class.html说:
Scaffold 被设计为 MaterialApp 的单一顶级容器,通常不需要嵌套脚手架。例如,在选项卡式 UI 中,bottomNavigationBar 是一个 TabBar 而主体是一个 TabBarView,您可能会想使每个选项卡栏视图成为具有不同标题的 AppBar 的脚手架。最好为更新 AppBar 的 TabController 添加一个监听器。
这是否意味着 Material App 下只需要一个 Scaffold 或每个页面一个单一的父 Scaffold。如果是第一个,我们如何导航?如果它的后,并不意味着通用AppBar和BottomBar每个导航得到重新渲染?最佳做法是什么。
以下显示菜单:
<a href="#" id="cityclick">ONZE WAARDEN</a>
<div id="citydrop">
<div class="dropbottom">
<div class="dropmid">
<ul>
<li><a href="#">FAQ</a>
</li>
<li><a href="#">ITC</a>
</li>
<li><a href="#">CLUB</a>
</li>
<li><a href="#">CULTUUR</a>
</li>
<li><a href="#">ROBITICA</a>
</li>
</ul>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
jQuery for如下:
$("#citydrop").hide();
$("#cityclick").mouseover(function () {
$("#citydrop").slideDown('slow');
});
$("#citydrop").mouseleave(function () {
$("#citydrop").slideUp('slow');
});
Run Code Online (Sandbox Code Playgroud)
问题: 当鼠标离开"cityclick"但尚未进入"citydrop"时,我无法弄清楚如何切换子菜单"citydrop".
我在这里试过jsfiddle
我用域模型创建了一个扩展Message.该模型与TYPO3 pages(具有页面的详细信息,如title,issite_root等)表有一个关系m:n .但是,通过使用该mapping to existing tables选项,它给出了type错误说页面:
The configured type field for table "pages" is of type int(11) unsigned
This means the type field can not be used for defining the record type.
You have to configure the mappings yourself if you want to map to this
table or extend the correlated class
Run Code Online (Sandbox Code Playgroud)
所以我只是创建没有映射的关系,以便我以后可以映射它setup.txt.

我Pages在MyExt/Classes/Domain/Model/所有getter/setter和repository中创建了模型MyExt/Classes/Domain/Repository/.
在我的setup.txt中,我这样做了:
config.tx_extbase {
persistence{
enableAutomaticCacheClearing = 1
updateReferenceIndex = 0
classes …Run Code Online (Sandbox Code Playgroud) 在我的扩展中MyExt,我将模型映射Page到pagesTYPO3中的表.首先它向我显示type mismatch错误,我无论如何都继续保存它.
发生以下事情:



在我,MyExt/Configuration/TypoScript/setup.txt我有这个:
config.tx_extbase.persistence.classes {
Tx_MyExt_Domain_Model_Page {
mapping {
tableName = pages
}
}
}
Run Code Online (Sandbox Code Playgroud)
这是一个错误吗?或者我做错了什么?
这是我的/Domain/Model/Page.php,只是一瞥.
class Page extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
* uid
* @var int
* @validate NotEmpty
*/
protected $uid;
/**
* title
* @var string
* @validate NotEmpty
*/
protected $title;
/**
* __construct
*
* @return Page
*/
public function __construct() {
//Do not remove the next line: …Run Code Online (Sandbox Code Playgroud) 我有一个包含名单列表的数组.在前端,必须以列出的方式列出.使用<ul> and <li>标签.
列表的一半应显示在一个<ul>标签下,另一半显示在另一个<ul>标签下.
像这样:
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
<ul>
<li>Four</li>
<li>Five</li>
<li>Six</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
现在问题是在FLUID中,<ul>当数组循环一半元素时,我没有找到结束标记的方法.
我想做这样的事情
<f:for each="{my_array}" as="item">
<li>{item}</li>
<!-- if condition where count=(my_array%2) then use </ul><ul>-->
</f:for>
Run Code Online (Sandbox Code Playgroud) 假设我有一个包含以下网页的项目(请参见屏幕截图)

红色,蓝色,帖子和博客页面的uid分别为1,2,3和4.
现在,我想在Typoscript中定义一个数组或某种列表,其中包含所有根网页的标题.这个数组,我可以在我的FLUID模板中使用它并显示所有标题.
例:
在TypoScript中
arrayOfTitles =具有uid 1,2,3和4的页面的#标题
在FLUID页面中
<f:for each="{arrayOfTitles}" as="foo">
<h1> {foo} </h1>
</f:for>
Run Code Online (Sandbox Code Playgroud)这是可能的吗?
我使用名为"Events"的Extension构建器创建了一个扩展.还创建了一个前端插件.创建的模型具有属性eventDate和eventtitle.控制器具有以下操作:Show, List, and New.
我将此插件添加到页面中.但它似乎没有奏效.
它向我显示了一个错误: $events = $this->eventRepository->findAll();在EventController.
php日志显示以下错误: Fatal error: Call to a member function findAll() on a non-object in ../typo3conf/ext/event/Classes/Controller/EventController.php on line 44
appache日志向我显示以下错误:
Thu May 09 19:19:26 2013] [error] [client ::1] PHP 30. TYPO3\\Event\\Controller\\EventController->listAction() /home/Public/Project/typo3/typo3_src-6.1.0/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:277, referer: http://localhost/Project/typo3/typo3/mod.php?M=web_ViewpageView&id=74
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我使用扩展生成器创建了一个扩展和插件,它生成一些 HTML 代码到一个文件中fileadmin/templates/List.html。这个内容进入我的网页的 template.html 作为
<f:section name="some-content">
<f:format.html> {some_content} </f:format.html>
</f:section>
Run Code Online (Sandbox Code Playgroud)
some_content 来自我的 Typoscript 模板
some_content < styles.content.get
some_content.select.where = colPos = 1
Run Code Online (Sandbox Code Playgroud)
该插件是从后端布局附加的
问题是在我的 HTML 页面中,我在<p>标签中获取了插件信息
<p class="bodytext"> </p>
<p class="bodytext"> <!-- CONTENT ELEMENT, uid:260/list [begin] --></p>
<p class="bodytext"> </p><div id="c260" class="csc-default"><p class="bodytext"> </p>
<p class="bodytext"> <!-- Plugin inserted: [begin] --></p>
<p class="bodytext"> </p>
<p class="bodytext"> <!-- Plugin inserted: [end] --></p>
<p class="bodytext"> </p></div><p class="bodytext"> <!-- CONTENT ELEMENT, uid:260/list [end] --></p>
<p class="bodytext"> </p>
Run Code Online (Sandbox Code Playgroud)
这搞砸了我的 CSS。
我正在尝试将服务实例(已在同一树级别中创建)注入另一个提供程序。但是在访问提供程序时,我得到了ProviderNotFoundException异常。在下面的代码中NotificationService依赖于AuthService. 这需要在构造函数中传递。因此,我使用Consumer和Provider.value文档中提到的注入它:https : //pub.dev/documentation/provider/latest/provider/Consumer-class.html
这是伪代码:
return MultiProvider(
providers: [
Provider<AuthService>(
create: (ctx) => AuthService(_storage),
dispose: (ctx, v) => v.dispose(),
),
Consumer<AuthService>(
builder: (context, v, child) {
return Provider.value(
value: Provider<NotificationService>(
create: (ctx) => NotificationService(v),
dispose: (ctx, v) => v.dispose(),
),
child: child
);
},
)
],
child: MyApp()
);
Run Code Online (Sandbox Code Playgroud)
在树线的某处,当尝试访问NotificationService实例时,我得到ProviderNotFoundException:
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final NotificationService _ns = Provider.of<NotificationService>(context); …Run Code Online (Sandbox Code Playgroud) typo3 ×6
fluid ×3
android ×2
arrays ×2
extbase ×2
flutter ×2
html ×2
jquery ×1
mouseevent ×1
navigation ×1
php ×1
plugins ×1
scaffolding ×1
typoscript ×1