Skip to content

Commit 2d6964e

Browse files
committed
[TASK] More features
1 parent db8cd34 commit 2d6964e

37 files changed

+393
-14
lines changed

Resources/Private/Extensions/_main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/extbase.ts">
1414
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/indexed_search.ts">
1515
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/news/news.ts">
16+
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:modernpackage/Resources/Private/Extensions/rgsmoothgallery.ts">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{namespace n=Tx_News_ViewHelpers}
2+
3+
<f:if condition="{news}">
4+
<f:for each="{news}" as="newsItem">
5+
<article class="span4 inner-news-teaser">
6+
<header>
7+
<h3>
8+
<n:link newsItem="{newsItem}" settings="{settings}">
9+
{newsItem.title}
10+
</n:link>
11+
</h3>
12+
<span class="muted"><small>
13+
<f:format.date format="d.m.Y">{newsItem.datetime}</f:format.date>
14+
</small></span>
15+
</header>
16+
<div class="row-fluid">
17+
<f:if condition="{newsItem.mediaPreviews}">
18+
<f:then>
19+
<div class="span5">
20+
<n:link newsItem="{newsItem}" settings="{settings}" class="thumbnail">
21+
<f:alias map="{mediaElement: newsItem.mediaPreviews.0}">
22+
<f:if condition="{mediaElement.type} == 0">
23+
<f:image src="uploads/tx_news/{mediaElement.image}" title="{mediaElement.title}" alt="{mediaElement.alt}" maxWidth="{settings.list.media.image.maxWidth}" maxHeight="{settings.list.media.image.maxHeight}" />
24+
</f:if>
25+
<f:if condition="{mediaElement.type} == 1">
26+
<f:render partial="Detail/MediaVideo" arguments="{mediaElement: mediaElement}" />
27+
</f:if>
28+
</f:alias>
29+
</n:link>
30+
</div>
31+
<div class="span7">
32+
<f:render section="text" arguments="{_all}" />
33+
</div>
34+
</f:then>
35+
<f:else>
36+
<div class="span12">
37+
<f:render section="text" arguments="{_all}" />
38+
</div>
39+
</f:else>
40+
</f:if>
41+
</div>
42+
</article>
43+
</f:for>
44+
</f:if>
45+
46+
<f:section name="text">
47+
<f:if condition="{newsItem.teaser}">
48+
<f:then>
49+
<f:format.html>
50+
<f:format.crop maxCharacters="{settings.cropMaxCharacters}" respectWordBoundaries="1">{newsItem.teaser}</f:format.crop>
51+
</f:format.html>
52+
</f:then>
53+
<f:else>
54+
<f:format.html>
55+
<f:format.crop maxCharacters="{settings.cropMaxCharacters}" respectWordBoundaries="1">{newsItem.bodytext}</f:format.crop>
56+
</f:format.html>
57+
</f:else>
58+
</f:if>
59+
60+
<p>
61+
<n:link newsItem="{newsItem}" settings="{settings}" class="btn pull-right">
62+
<f:translate key="more-link" />&raquo;</n:link>
63+
</p>
64+
</f:section>

Resources/Private/Extensions/news/news.ts

+21-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
plugin.tx_news {
1515
view {
16-
templateRootPath = EXT:modernpackage/Resources/Private/Extensions/news/Templates/
17-
partialRootPath = EXT:modernpackage/Resources/Private/Extensions/news/Partials/
18-
layoutRootPath = EXT:modernpackage/Resources/Private/Extensions/news/Layouts/
19-
widget.Tx_News_ViewHelpers_Widget_PaginateViewHelper.templateRootPath = EXT:modernpackage/Resources/Private/Extensions/news/
16+
templateRootPath = EXT:modernpackage/Resources/Private/Extensions/news/main/Templates/
17+
partialRootPath = EXT:modernpackage/Resources/Private/Extensions/news/main/Partials/
18+
layoutRootPath = EXT:modernpackage/Resources/Private/Extensions/news/main/Layouts/
19+
widget.Tx_News_ViewHelpers_Widget_PaginateViewHelper.templateRootPath = EXT:modernpackage/Resources/Private/Extensions/news/main/
2020
}
2121

2222
settings {
@@ -33,6 +33,23 @@ plugin.tx_news {
3333
}
3434
}
3535

36+
[globalVar = TSFE:id = 1]
37+
plugin.tx_news {
38+
view {
39+
templateRootPath = EXT:modernpackage/Resources/Private/Extensions/news/home/Templates/
40+
}
41+
settings {
42+
cropMaxCharacters = 100
43+
list {
44+
media.image {
45+
maxWidth = 140
46+
maxHeight = 120
47+
}
48+
}
49+
}
50+
}
51+
[global]
52+
3653

3754
#-------------------------------------------------------------------------------
3855
# EXT:news Latest news
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# ******************************************************************************
2+
# (c) 2013 Georg Ringer <typo3@ringerge.org>
3+
#
4+
# You can redistribute it and/or modify it under the terms of the
5+
# GNU General Public License as published by the Free Software Foundation;
6+
# either version 2 of the License, or (at your option) any later version.
7+
# ******************************************************************************
8+
9+
# **********************************************************
10+
# Configuration for rgsmoothgallery, using flexslider
11+
# **********************************************************
12+
13+
14+
#-------------------------------------------------------------------------------
15+
# Configuration
16+
#-------------------------------------------------------------------------------
17+
includeLibs.rgsmoothgallery = typo3conf/ext/rgsmoothgallery/Classes/Rendering/ConfigurationRendering.php
18+
19+
tt_content.image.20 {
20+
# Set some classes around
21+
imageStdWrap.dataWrap.override {
22+
if.isTrue.field = tx_rgsmoothgallery_rgsg
23+
cObject = COA
24+
cObject {
25+
10 = TEXT
26+
10.value (
27+
<div class="flexslider" id="slideshow"> <ul class="slides">| </ul></div>
28+
)
29+
20 = TEXT
30+
20.value =
31+
}
32+
}
33+
34+
# Add the JS configuration
35+
#imageStdWrap.stdWrap.append = USER
36+
#imageStdWrap.stdWrap.append {
37+
# stdWrap.if.isTrue.field = tx_rgsmoothgallery_rgsg
38+
# userFunc = Tx_Rgsmoothgallery_Rendering_ConfigurationRendering->user_renderConfiguration
39+
#}
40+
41+
# Override the title field and use the caption
42+
1.altText.field.override = imagecaption
43+
1.altText.field.override.if.isTrue.field = tx_rgsmoothgallery_rgsg
44+
1.titleText.field.override = imagecaption
45+
1.titleText.field.overrideif.isTrue.field = tx_rgsmoothgallery_rgsg
46+
47+
# Don't render the caption if not needed
48+
caption.stdWrap.if.isFalse.field = tx_rgsmoothgallery_rgsg
49+
50+
# Render just the image
51+
rendering.rgsmoothgallery {
52+
allStdWrap {
53+
wrap = <div class="csc-textpic-imagewrap">|</div>
54+
innerWrap.cObject = CASE
55+
innerWrap.cObject {
56+
key.field = imageorient
57+
# above-center
58+
0 = TEXT
59+
0.value = <div class="csc-textpic-center-outer"><div class="csc-textpic-center-inner">|</div></div>
60+
# below-center
61+
8 < .0
62+
}
63+
}
64+
oneImageStdWrap {
65+
wrap = <li>|</li>
66+
}
67+
68+
imgTagStdWrap {
69+
wrap =|
70+
}
71+
caption {
72+
required = 1
73+
wrap = <div class="caption">|</div>
74+
}
75+
}
76+
77+
renderMethod.stdWrap {
78+
override = rgsmoothgallery
79+
override.if.isTrue.field = tx_rgsmoothgallery_rgsg
80+
}
81+
}
82+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
<!DOCTYPE html>
2+
<f:layout name="Default" />
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>TYPO3 Sitestarter Content</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<meta name="description" content="">
9+
<meta name="author" content="">
10+
11+
<!-- Stylesheets -->
12+
<link href="css/bootstrap.css" rel="stylesheet">
13+
<link href="css/bootstrap-responsive.css" rel="stylesheet">
14+
<link href="css/style.css" rel="stylesheet">
15+
<link href="css/mediaqueries.css" rel="stylesheet">
16+
<link href="css/yoxview.css" rel="stylesheet">
17+
18+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
19+
<!--[if lt IE 9]>
20+
<script src="js/html5shiv.js"></script>
21+
<![endif]-->
22+
23+
<!-- Le fav and touch icons -->
24+
<link rel="shortcut icon" href="img/favicon.png">
25+
26+
</head>
27+
28+
<body>
29+
<f:section name="body">
30+
31+
<div class="container"><!-- BEGIN: container -->
32+
<f:render partial="Page/header" />
33+
34+
<section class="content"><!-- BEGIN: CONTENT -->
35+
36+
<f:cObject typoscriptObjectPath="lib.content.0">
37+
<div class="flex-container"><!-- BEGIN: SLIDER -->
38+
<div class="flexslider" id="slideshow">
39+
<ul class="slides">
40+
<li>
41+
<img src="img/gallery/bootstrap-mdo-sfmoma-02.jpg" alt="">
42+
43+
<p class="flex-caption">Donec id elit non mi porto!</p>
44+
</li>
45+
<li>
46+
<img src="img/gallery/bootstrap-mdo-sfmoma-01.jpg" alt="">
47+
48+
<p class="flex-caption">This image is so lorem ipsum!</p>
49+
</li>
50+
<li><img src="img/gallery/bootstrap-mdo-sfmoma-03.jpg" alt=""></li>
51+
</ul>
52+
</div>
53+
</div>
54+
<!-- END: SLIDER -->
55+
</f:cObject>
56+
<hr>
57+
58+
<section class="row-fluid teaser"> <!-- BEGIN: TEASER -->
59+
60+
<article class="span6 inner-teaser">
61+
<div class="row-fluid">
62+
<f:cObject typoscriptObjectPath="lib.content.11">
63+
<div class="span6"><a href="#" class="thumbnail"><img src="img/placeholder/260x180.png" alt=""></a></div>
64+
<div class="span6">
65+
<h2>Auszug aus Bereich 1</h2>
66+
67+
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
68+
fermentum massa justo sit amet risus. Etiam porta sem malesuada magna. </p>
69+
70+
<p><a class="btn" href="#">View details &raquo;</a></p>
71+
</div>
72+
</f:cObject>
73+
</div>
74+
</article>
75+
76+
<article class="span6 inner-teaser">
77+
<div class="row-fluid">
78+
<f:cObject typoscriptObjectPath="lib.content.12">
79+
<div class="span6"><a href="#" class="thumbnail"><img src="img/placeholder/260x180.png" alt=""></a></div>
80+
<div class="span6">
81+
<h2>Auszug aus Bereich 2</h2>
82+
83+
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
84+
fermentum massa justo sit amet risus. Etiam porta sem malesuada magna. </p>
85+
86+
<p><a class="btn" href="#">View details &raquo;</a></p>
87+
</div>
88+
</f:cObject>
89+
</div>
90+
</article>
91+
</section>
92+
<!-- END: TEASER -->
93+
94+
<section class="news-teaser"><!-- BEGIN: NEWS -->
95+
<div class="row-fluid hidden-desktop hidden-tablet">
96+
<h2>News</h2>
97+
</div>
98+
<div class="row-fluid">
99+
<f:cObject typoscriptObjectPath="lib.content.3">
100+
<article class="span4 inner-news-teaser">
101+
<header>
102+
<h3>Aktuellste Meldung</h3>
103+
<span class="muted"><small>21.03.2013</small></span>
104+
</header>
105+
<div class="row-fluid">
106+
<div class="span5">
107+
<a href="#" class="thumbnail"><img src="img/placeholder/140x120.png" alt=""></a>
108+
</div>
109+
<div class="span7">
110+
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris... </p>
111+
112+
<p><a class="btn" href="#">View details &raquo;</a></p>
113+
</div>
114+
</div>
115+
</article>
116+
117+
<article class="span4 inner-news-teaser">
118+
<header>
119+
<h3>Aktuellste Meldung</h3>
120+
<span class="muted"><small>21.03.2013</small></span>
121+
</header>
122+
<div class="row-fluid">
123+
<div class="span5">
124+
<a href="#" class="thumbnail"><img src="img/placeholder/140x120.png" alt=""></a>
125+
</div>
126+
<div class="span7">
127+
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris... </p>
128+
129+
<p><a class="btn" href="#">View details &raquo;</a></p>
130+
</div>
131+
</div>
132+
</article>
133+
</f:cObject>
134+
<div class="span4 contactdata">
135+
<f:cObject typoscriptObjectPath="lib.content.13"><!-- CONTACT -->
136+
<h2>Kontaktdaten <i class="icon-envelope pull-right"></i></h2>
137+
<address>
138+
<p>Cyberhouse Gmbh<br />Hafenstraße 2a <br />4020 Linz <br /> Tel: +43 (0) 732 / 78 12 98 <br /> Tel: +43 (0) 732 / 78 12 98 -
139+
220
140+
<br>
141+
<a href="mailto:[email protected]">[email protected]</a><br>
142+
<a href="#">www.cyberhouse.at</a></p>
143+
</address>
144+
</f:cObject>
145+
</div>
146+
</div>
147+
148+
</section>
149+
<!-- END: NEWS -->
150+
<div class="row-fluid">
151+
<a id="up" href="" class="pull-right">to top</a>
152+
</div>
153+
<hr>
154+
</section>
155+
<!-- END: CONTENT -->
156+
157+
<f:render partial="Page/footer" />
158+
159+
</div>
160+
<!-- END: container -->
161+
</f:section>
162+
163+
<!-- Le javascript
164+
================================================== -->
165+
<!-- ??? -->
166+
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
167+
<!-- jquery -->
168+
<script src="js/jquery-1.9.1.js"></script>
169+
<!-- bootstrap -->
170+
<script src="js/bootstrap.js"></script>
171+
<!-- flexslider (gallery) -->
172+
<script src="js/jquery.flexslider-min.js"></script>
173+
<!-- Lightbox -->
174+
<script src="js/jquery.yoxview-2.21.min.js"></script>
175+
<!-- placeholder script (forms) -->
176+
<script src="js/placeholder.js"></script>
177+
<!-- custom scripts -->
178+
<script src="js/script.js"></script>
179+
180+
</body>
181+
</html>

Resources/Private/TsConfig/Page/rte/default.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ RTE.default {
5959
buttons.formatblock.removeItems = h1,h2,h5,h6,pre,address, DIV, P
6060

6161
# Buttons die gezeigt/versteckt werden
62-
showButtons = bold, italic, left, center, right, orderedlist, unorderedlist, link, insertcharacter, removeformat, findreplace, undo, redo, outdent, indent
63-
hideButtons = formatblock, blockstyle, blockstylelabel, textstyle, textstylelabel, image,line, underline, insertparagraphafter, insertparagraphbefore, fontstyle, fontsize, strikethrough, lefttoright, righttoleft, bgcolor, textindicator, emoticon, user, spellcheck, inserttag, subscript, superscript, acronym, about, chMode, showhelp, copy, cut, paste, justifyfull, textcolor, table, tableproperties, rowproperties, rowAinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, toggleborders, cellmerge,
62+
showButtons = bold, italic, left, center, right, orderedlist, unorderedlist, link, insertcharacter, removeformat, findreplace, undo, redo, outdent, indent,chMode
63+
hideButtons = formatblock, blockstyle, blockstylelabel, textstyle, textstylelabel, image,line, underline, insertparagraphafter, insertparagraphbefore, fontstyle, fontsize, strikethrough, lefttoright, righttoleft, bgcolor, textindicator, emoticon, user, spellcheck, inserttag, subscript, superscript, acronym, about, showhelp, copy, cut, paste, justifyfull, textcolor, table, tableproperties, rowproperties, rowAinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, toggleborders, cellmerge,
6464

6565

6666
# Hält die RTE Icons gegroupt zusammen

0 commit comments

Comments
 (0)