Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
fluid_bs
Commits
65422ae0
Commit
65422ae0
authored
Aug 04, 2017
by
bbaer
Browse files
basic template test
parent
bd58d2c5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/Fluid_bsController.php
deleted
100644 → 0
View file @
bd58d2c5
<?php
/**
* @author Benjamin Baer <benjamin.baer@math.uzh.ch>
*/
namespace
UNIVERSITY_OF_ZURICH\Fluid_bs\Controller
;
class
Fluid_bsController
extends
\
TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
public
function
showAction
()
{
$this
->
view
->
assign
(
'fluid_bsOutput'
,
'<strong>'
.
uniqid
()
.
'</strong>'
);
return
$this
->
view
->
render
();
}
}
\ No newline at end of file
Configuration/TypoScript/constants.txt
0 → 100644
View file @
65422ae0
Configuration/TypoScript/setup.txt
0 → 100644
View file @
65422ae0
plugin.tx_fluid_bs.view {
templateRootPath = EXT:fluid_bs/Resources/Private/Templates/
partialRootPath = EXT:fluid_bs/Resources/Private/Partials/
layoutRootPath = EXT:fluid_bs/Resources/Private/Layouts/
}
config.no_cache = 1
config.doctype = html5
page = PAGE
page.typeNum = 0
page.10 = FLUIDTEMPLATE
page.10 {
format = html
file = EXT:fluid_bs/Resources/Private/Templates/main_layout.html
partialRootPath = EXT:fluid_bs/Resources/Private/Partials/
layoutRootPath = EXT:fluid_bs/Resources/Private/Layouts/
variables {
content_main < styles.content.get
content_main.select.where = colPos = 0
}
}
page.includeCSS {
file1 = EXT:fluid_bs/Resources/Public/Stylesheets/bootstrap.min.css
file2 = EXT:fluid_bs/Resources/Public/Stylesheets/custom.css
}
page.includeJS {
file1 = https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
file2 = https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js
}
}
\ No newline at end of file
Resources/Private/
Template
s/standardPage.html
→
Resources/Private/
Layout
s/standardPage.html
View file @
65422ae0
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>
Bootstrap 101 Template
</title>
<!-- Bootstrap -->
<link
href=
"css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/css?family=Open+Sans"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:200"
rel=
"stylesheet"
>
<link
href=
"css/custom.css"
rel=
"stylesheet"
>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<f:layout
name=
"Foo"
/>
<nav
class=
"navbar navbar-inverse"
>
...
...
@@ -94,11 +71,3 @@
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"
></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script
src=
"js/bootstrap.min.js"
></script>
</body>
</html>
Resources/Private/Templates/Page/standardPage.html
0 → 100644
View file @
65422ae0
<div
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xmlns:f=
"http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
<<<<<<<
HEAD
xmlns:flux=
"http://typo3.org/ns/FluidTYPO3\Flux/ViewHelpers"
xmlns:v=
"http://typo3.org/ns/FluidTYPO3\Vhs/ViewHelpers"
>
=======
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
>>>>>>> 131fb9d9047c8778d2038ee8a602a690ec9e47b9
<f:layout
name=
"standardPage"
/>
<f:section
name=
"Configuration"
>
<flux:form
id=
"standardPage"
>
<!-- Input field for Fluid variable 'pageClass' -->
<flux:field.input
name=
"settings.pageBrand"
default=
"Public/Images/qfq_brand.png"
/>
<flux:field.input
name=
"settings.headerClass"
default=
"masthead"
/>
<!-- Backend layout grid (TYPO3 6.x and greater only) -->
<flux:grid>
<flux:grid.row>
<flux:grid.column
colPos=
"1"
name=
"Header"
style=
"width: 100%"
/>
</flux:grid.row>
<flux:grid.row>
<flux:grid.column
colPos=
"0"
name=
"Content"
style=
"width: 100%"
/>
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section
name=
"Content"
>
<!-- Render colPos=0 in this section -->
<v:content.render
column=
"0"
/>
</f:section>
<f:section
name=
"Header"
>
<!-- Render colPos=1 in this section -->
<v:content.render
column=
"1"
/>
</f:section>
</div>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment