Commit a7f9dc46 authored by Dirk Wildt's avatar Dirk Wildt
Browse files

0.0.1

parent 40cb76ad
Pipeline #70 canceled with stages
......@@ -138,11 +138,11 @@ class ContentController extends AbstractController
{
$this->init();
if(!$this->singlePluginRequirement())
{
$this->_viewAssignSingleError();
return;
}
// if(!$this->singlePluginRequirement())
// {
// $this->_viewAssignSingleError();
// return;
// }
// var_dump(__METHOD__, __LINE__, $this->settings);
// var_dump(__METHOD__, __LINE__, $this->settings['xblogId']);
......
......@@ -6,6 +6,17 @@
</TCEforms>
<type>array</type>
<el>
<settings.flexform.pi1.list.label>
<TCEforms>
<exclude>1</exclude>
<label>LLL:EXT:xblog/Resources/Private/Language/FlexForms/Content.xlf:sheet_list.label</label>
<config>
<type>input</type>
<size>40</size>
<default>xBlog</default>
</config>
</TCEforms>
</settings.flexform.pi1.list.label>
<settings.flexform.pi1.list.max>
<TCEforms>
<exclude>1</exclude>
......
......@@ -10,6 +10,25 @@ plugin {
// xBlogPluginList, xBlogPluginSingle, xBlogFlexformTable
general = LOAD_REGISTER
general {
// cObject.data = flexform : pi_flexform:settings.flexform.pi1.list.label
xBlogFlexformListLabel =
xBlogFlexformListLabel {
cObject = TEXT
cObject {
data = flexform : pi_flexform:settings.flexform.pi1.list.label
ifEmpty {
stdWrap {
cObject = USER
cObject {
userFunc = Netzmacher\Refresh\Compatibility\Frontend\ContentObject\ContentObjectRenderer->getTextFlexform
data = flexform: pi_flexform:settings.flexform.pi1.list.label
dontdebug = 1
}
ifEmpty = xBlog
}
}
}
}
// cObject.data = flexform : pi_flexform:settings.flexform.pi1.ctrl.plugin.list
xBlogPluginList =
xBlogPluginList {
......
......@@ -69,6 +69,25 @@ plugin {
}
// cObject.data = flexform : pi_flexform:settings.flexform.pi1.list.max
xBlogFlexformListMax =
xBlogFlexformListMax {
cObject = TEXT
cObject {
data = flexform : pi_flexform:settings.flexform.pi1.list.max
ifEmpty {
stdWrap {
cObject = USER
cObject {
userFunc = Netzmacher\Refresh\Compatibility\Frontend\ContentObject\ContentObjectRenderer->getTextFlexform
data = flexform: pi_flexform:settings.flexform.pi1.list.max
dontdebug = 1
}
ifEmpty = 10
}
}
}
}
// cObject.data = flexform : pi_flexform:settings.flexform.pi1.list.max
xBlogFlexformListMax =
xBlogFlexformListMax {
cObject = TEXT
cObject {
......
......@@ -7,10 +7,9 @@ plugin {
// single = LOAD_REGISTER
flexform =
flexform {
// xBlogFlexformTable
// xBlogFlexformListLabel
single = LOAD_REGISTER
single {
dummy =
}
}
}
......
......@@ -17,19 +17,33 @@ plugin {
// singlePluginAvailable
rules =
rules {
// key, default, exclusive
singlePluginAvailable = CASE
singlePluginAvailable {
// data = register:xBlogModeReceive
key =
key {
data = register:xBlogModeReceive
}
// value = 1
default = TEXT
default {
value = 1
}
// if (value.data = GP:tx_xblog_pi1|plugin) = (equals.data = register:xBlogPluginSingle)
exclusive = TEXT
exclusive {
data = GP:tx_xblog_pi1|plugin
intval = 1
// (value.data = GP:tx_xblog_pi1|plugin) = (equals.data = register:xBlogPluginSingle)
if =
if {
// data = GP:tx_xblog_pi1|plugin
value =
value.data = GP:tx_xblog_pi1|plugin
// data = register:xBlogPluginSingle
equals=
equals.data = register:xBlogPluginSingle
}
value = 1
}
}
# singlePluginAvailable = TEXT
......
......@@ -13,14 +13,47 @@ plugin {
10 < plugin.tx_xblog.register.flexform.list
// 10 < plugin.tx_xblog.register.flexform.list
10 = LOAD_REGISTER
// data = register:xBlogFlexformListLabel
20 = TEXT
20 {
value = xBlog
data = register:xBlogFlexformListLabel
wrap = <h1>|</h1>
}
30 < plugin.tx_xblog.templates.tables.x.list
// 20 < plugin.tx_xblog.templates.tables.x.list
30 = CONTENT
// xBlogContent
30 = LOAD_REGISTER
30 {
// cObject < plugin.tx_xblog.templates.tables.x.list
xBlogContent =
xBlogContent {
cObject < plugin.tx_xblog.templates.tables.x.list
// cObject < plugin.tx_xblog.templates.tables.x.list
cObject = CONTENT
}
}
// 10: register:xBlogContent. 20: value = Opps, no item available.
40 = COA
40 {
// data = register:xBlogContent, if.isTrue xBlogContent
10 = TEXT
10 {
// isTrue.data = register:xBlogContent
if =
if.isTrue.data = register:xBlogContent
data = register:xBlogContent
}
// value = Opps, no item available. if.isFalse xBlogContent
20 = TEXT
20 {
// isFalse.data = register:xBlogContent
if.isFalse.data = register:xBlogContent
value = Opps, no item available.
lang {
de = Opps, kein Eintrag vorhanden.
en = Opps, no item available.
}
wrap = <p>|</p>
}
}
}
}
}
......
......@@ -20,11 +20,17 @@ plugin {
20 = COA
20 {
wrap = <table>|</table>
// data = register:xBlogFlexformListLabel
10 = TEXT
10 {
data = register:xBlogFlexformListLabel
noTrimWrap = |<tr><td>register:xBlogFlexformListLabel</td><td>|</td></tr>|
}
// data = field:pages
20 = TEXT
20 {
data = field:pages
noTrimWrap = |<tr><td>record storage pid</td><td>|</td></tr>|
noTrimWrap = |<tr><td>record storage pid (field:pages)</td><td>|</td></tr>|
}
// data = register:xBlogFlexformTable
30 = TEXT
......
......@@ -13,12 +13,62 @@ plugin {
10 < plugin.tx_xblog.register.flexform.single
// 10 < plugin.tx_xblog.register.flexform.single
10 = LOAD_REGISTER
20 < plugin.tx_xblog.templates.tables.x.single
// 20 < plugin.tx_xblog.templates.tables.x.single
20 = CONTENT
// Link to list
30 = TEXT
// xBlogContent: if.isTrue.cObject < plugin.tx_xblog_pi1.settings.general.rules.singlePluginAvailable
20 = COA
20 {
// isTrue.cObject < plugin.tx_xblog_pi1.settings.general.rules.singlePluginAvailable
if =
if.isTrue.cObject < plugin.tx_xblog_pi1.settings.general.rules.singlePluginAvailable
// xBlogContent
20 = LOAD_REGISTER
20 {
// cObject < plugin.tx_xblog.templates.tables.x.single
xBlogContent =
xBlogContent {
cObject < plugin.tx_xblog.templates.tables.x.single
// cObject < plugin.tx_xblog.templates.tables.x.single
cObject = CONTENT
}
}
}
// 10.data = register:xBlogContent, if.isTrue xBlogContent. 20.value = Opps, no item available. if.isFalse xBlogContent
30 = COA
30 {
// data = register:xBlogContent, if.isTrue xBlogContent
10 = TEXT
10 {
// isTrue.data = register:xBlogContent
if =
if.isTrue.data = register:xBlogContent
data = register:xBlogContent
}
// value = Opps, no item available. if.isFalse xBlogContent
20 = COA
20 {
// isFalse.data = register:xBlogContent
if =
if.isFalse.data = register:xBlogContent
// data = register:xBlogFlexformListLabel
10 = TEXT
10 {
data = register:xBlogFlexformListLabel
wrap = <h1>|</h1>
}
// value = Opps, no item available.
20 = TEXT
20 {
value = Opps, no item available.
lang {
de = Opps, kein Eintrag vorhanden.
en = Opps, no item available.
}
wrap = <p>|</p>
}
}
}
// Link to list
40 = TEXT
40 {
value = List
lang {
de = Liste
......
......@@ -20,9 +20,15 @@ plugin {
20 = COA
20 {
wrap = <table>|</table>
// data = GP:tx_xblog_pi1|uid
10 = COA
// data = register:xBlogFlexformListLabel
10 = TEXT
10 {
data = register:xBlogFlexformListLabel
noTrimWrap = |<tr><td>register:xBlogFlexformListLabel</td><td>|</td></tr>|
}
// data = GP:tx_xblog_pi1|uid
15 = COA
15 {
wrap = <tr>|</tr>
10 = TEXT
10 {
......@@ -35,6 +41,22 @@ plugin {
intval = 1
noTrimWrap = |<td>|</td>|
}
}
// data = GP:tx_xblog_pi1|plugin
16 = COA
16 {
wrap = <tr>|</tr>
10 = TEXT
10 {
value = GP:tx_xblog_pi1|plugin
noTrimWrap = |<td>|</td>|
}
20 = TEXT
20 {
data = GP:tx_xblog_pi1|plugin
intval = 1
noTrimWrap = |<td>|</td>|
}
}
// data = field:pages
20 = TEXT
......
# xBlog',
# xBlog
Blog the data of any extension!
## Manual
......
......@@ -19,6 +19,14 @@
<source>Title length</source>
<target>Länge des Titels</target>
</trans-unit>
<trans-unit id="sheet_list.label">
<source>Label of this list</source>
<target>Name dieser Liste</target>
</trans-unit>
<trans-unit id="sheet_list.max">
<source>Items per page</source>
<target>Einträge pro Seite</target>
</trans-unit>
<trans-unit id="sheet_single">
<source>Item</source>
<target>Eintrag</target>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment