Commit 65422ae0 authored by bbaer's avatar bbaer
Browse files

basic template test

parent 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
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
<!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>
<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
Supports Markdown
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