font-size,typo3-6.2.x , How can I add a fontsize selector in typo3 6.2?


How can I add a fontsize selector in typo3 6.2?

Question:

Tag: font-size,typo3-6.2.x

I want to add a fontsize selector in typo3 6.2. so I have created the following three files:

fontsize_normal.css
fontsize_medium.css
fontsize_large.css

and the relevant typoscript settings looks as follows:

config {
  linkVars = L(0-2)
  uniqueLinkVars = 1
}

obj.fontsize = COA
obj.fontsize {
  1 = TEXT
  1.wrap = <div>|</div>
  1.value = A   
  1.value.typolink.parameter.data = page:uid
  1.value.typolink.additionalParams = &L=0

  2 < .1
  2.wrap = <div>|</div>
  2.value = A+
  2.value.typolink.additionalParams = &L=1

  3 < .1
  3.wrap = <div>|</div>
  3.value = A++
  3.value.typolink.additionalParams = &L=2
}

But if I include the css I am getting a blank screen, so something should be wrong

page = PAGE
page {
  includeCSS {
    [globalVar = GP:L = 0]
    selectorcss = fileadmin/system/Public/Css/fontsize_normal.css
    [globalVar = GP:L = 1]
    selectorcss = fileadmin/system/Public/Css/fontsize_medium.css
    [globalVar = GP:L = 2]
    selectorcss = fileadmin/system/Public/Css/fontsize_large.css
    [global]
  }
}

Answer:

Multiple problems here :

'L' is used as the language variable. Using this (without disabling it) will conflict with TYPO3's languages selection. You will need to create your own variable.

Conditions can not be used INSIDE your typoscript:

[globalVar = GP:L = 0]
page = PAGE
page {
  includeCSS {
    selectorcss = fileadmin/system/Public/Css/fontsize_normal.css
  }
}
[global]

Aldo you can create a font size selector with typoscript, I think a javascript approach would be much easier and flexible. It will give you the option to manipulate your DOM (or replacing your stylesheet, or loading a new stylesheet, or setting a new body font-size , etc ...) and you can safe your settings in a cooky for further use.

On a usability point of view, Font-size selectors are obsolete: Users can set there own font size in a browser & font-sizes should be relative (using em's instead of px)..


Related:


Custom content element is not rendered in front-end


typo3,typo3-6.2.x
Need help with a custom content element that is not being rendered. This is my typoscript: tt_content.cat_button = FLUIDTEMPLATE tt_content.cat_button { template = FILE template.file = EXT:so_product/Resources/Private/Templates/ContentELements/CategoryButton.html layoutRootPath = EXT:so_product/Resources/Private/Layouts/ } Even if I misspell CategoryButton.html, there won't be an error message. So how will I know if the correct...

Flexbox: text item `font-size: 0' and taking up space


html5,css3,font-size,flexbox
div { display: flex ; font-size: 0 ; justify-content: space-between } div > a { font-size: 10pt } ­ <div> Banana <a>Meat grinder</a> <a>Phone</a> </div> Live Why does the Flexbox text item take up space when its font-size is set to 0? Is there a way around it, e.g. selector...

how to allow the user to change font Swift


swift,font-size
I am building an application that display details and i want to allow user to change font of these details I have done some researches but all of them were to go to device's settings and change the font from there so, is there any way to have similar settings...

google sitemap for tx_news records with dd_googlesitemap_dmf (or alternative)


typo3,sitemap,typo3-6.2.x
I try to let typo3 generate a sitemap for all the news records. For that I tried the dd_googlesitemap_dmf extention. The dd_googlesitemap works (it creates a sitemap for all the typo3 pages - but not for extensions). I filled in the basic infos into the configuration and called the url...

Windows phone Store app Font size Issue


fonts,windows-runtime,windows-store-apps,windows-phone-8.1,font-size
I have created windows phone 8.1 Store app. I have change setting: setting->ease of access->Text size to MAX Now if I launch my app all fonts are disturbed to too larger font sizes, which was not happening in earlier silverlight apps Is there any way to create app irrespective of...

Wrap entire column in a div using Typoscript


typo3,typo3-6.2.x
I have a normal and a left column, and want to wrap them each in a div. What's the correct Typoscript for this? I can only find code for wrapping each element in something. This is what I've got so far: page = PAGE page.typeNum = 0 page.10 < styles.content.get...

font size discrepancy between tumblr and hard coded


html,css,font-size
I have an odd issue... When im comparing two elements on a website I have coded on my server compared to a tumblr site I created on their server, there is a 2px font size discrepancy. both sites have this code: <body> <h1>Text</h1> I have no font sizes set anywhere...

How to make font-size relative to parent div?


css,font-size
I want text inside my div to remain same size in % percentage ratio to a parent div. I.E. I want my text to have font-size of 50% of parents div width. So when page size is changing, text always remains the same size in %. Here Is what I'm...

why can't my typo3 6.2 ajax action be found?


ajax,typo3-6.2.x
I am trying to hit an ajax action "ajaxfactsAction()" in my controller Factoids. But when the ajax call is made I get a 303 error and a redirect to another page. This is what I have in my template that calls the ajax: <f:section name="main"> <h1>I am</h1> <f:form action=""> <f:form.select...

Why do Font-Size and CssClass properties are not working in CheckBoxList in aspx page?


css,asp.net,fonts,font-size,checkboxlist
I want to increase the font size of checkboxlist values so I added Font-Size = "large" property inside <asp:CheckBoxList> but it's not working. <form id="form1" runat="server"> <table> <tr> <td style="padding-left:50px;padding-top:20px"> <asp:CheckBoxList runat="server" ID="ChkList" RepeatColumns="4" repeatLayout="Table" RepeatDirection="Horizontal" Font-Size="Large"></asp:CheckBoxList> </td> </tr> <tr> <td style="padding-left:50px; padding-top:10px;"> <asp:Button...

Access tx_fed_page_flexform in fluidtemplate


typo3,fluid,typo3-6.2.x
This question is related to Access fluidpage configuration in template. I try the same as in the question above. But as flux:flexformis outdated and replaced with flux:form there may be some changes I'm not aware of. With the following code I try to access the flex:form.fields from the menu-items: <v:page.menu...

Resizing font based on html length


javascript,jquery,css,font-size
I know there are a lot of similar posts, but I have not thus far been able to solve this. context: User selects a home, homes have unique titles, depending on title, resize font to prevent overflow JS Fiddle: https://jsfiddle.net/9uvpun5o/3/ $(function() { var that = $('#title'), planName = that.html().length ;...

Typoscript USER / USER_INT objects in powermail input fields


typoscript,fluid,extbase,typo3-6.2.x
I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript. But when I add the plugin as userfunction, then it will display strange output in frontend. See my typoscript code below; lib.companyname = USER_INT lib.companyname {...

In extbase, how to access item by another value than uid


typo3,extbase,typo3-6.2.x
In a custom extbase extension, I need to call a show action, passing it another value than uid (this is a continuation of Use other than primary key as RealURL id_field). As the value "other than uid" is not resolved, it results in the exception http://wiki.typo3.org/Exception/CMS/1297759968 EDIT: here's the current...

disabling cache for development Purposes in Typo3 Version 6.2.9


caching,typo3-6.2.x
I'm very new to Typo3 and am struggling with a few cached images that refuse to update. There has to be a option to deactivate all caching somewhere, and to flush everything. I need to know how....

Typo3 6.2: “Could not find a suitable type converter for ”String“ ” exeption after update


php,typo3,typo3-6.2.x
Typo3 was from a very old version updated to Typo3 6.2. The most things are working now, but I have one own written extension that give me the following error: Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1297759968: Exception while property mapping at property path "":Could not find a suitable...

Copy typo3 to a new domain


typo3,typo3-6.2.x
I try to copy a typo3 installtion to a new directory (and new domain), but got some problems I can't figure out where they come from. What I have done is: I copied all the files to the new directory (New domain is mapped to this directory). I copied the...

How can I render preview of FE plugin diplayed in Page module


typo3,backend,extbase,typo3-6.2.x,typo3-extensions
I have developed TYPO3 (6.2) extensions with some FE plugins. I need to change informations about plugin, which is displayed in the backend on page view. Now only Title and name of plugin is displayed ... I have used flexforms for configure the plugin and I would like to show...

What is the default px, pt for font-size :small?


html,css,css3,fonts,font-size
What is the default px, pt for font-size:small ? .navigation li a{ font-weight:400; font-family: "Segoe UI",Segoe,Tahoma,Arial,Verdana,sans-serif; text-decoration:none; **font-size:small;** } ...

Edit Publish Date in second language


typo3,typo3-6.2.x
Some of you might know the issue with the publishing and expiring date of elements and pages in other languages than the default. Setting the dates in the default language works perfectly. I copied the element into the secondary language. But there, the backend form fields (starttime / endtime) are...

What is the relationship between typo3 cms and typo3 flow?


typo3,typo3-6.2.x,typo3-flow
Typo3 CMS is an Open Source content management system and TYPO3 Flow is a PHP-based application framework, then is there any relation between Typo3 CMS and TYPO3 Flow. Please help me to find an answer. Thanks in advance....

How to change font size in JQuery knob


jquery,canvas,input,font-size,jquery-knob
I have a problem in jQuery Knob plugin.I want to change the font size inside the circle and change the content of the input text.

Automatically go into list view when going to a folder


typo3,typo3-6.2.x
When clicking on a folder in TYPO3 CMS backend, I get this message: The current page is a folder. Folders usually don't contain content elements but are used for collecting other types of records. Can I make TYPO3 go into list view automatically? I don't see no reason why it...

How to use Hook “processDatamap_postProcFieldArray” in TYPO3 6.x


php,typo3,extbase,typo3-6.2.x
Use case: When saving an object (in backend, maybe in frontend too later) I want to manipulate values before saving to database. Problem: The file seems to get included (shows an error on save if I choose a wrong file path) but the function does not seem to be executed...

How to access TCA-fields in the Fluid template for a custom content element


typo3,fluid,typo3-6.2.x
I've created a custom content element called cat_but (category button). I've added TCA and content element wizard without problem. The category button have only one field: sys_category. Exactly one category should be selected. From this, I want to render a link action to a controller using that category as argument....

Display Extbase FileReference with Fluid


typo3,fluid,extbase,typo3-6.2.x
In an extbase extension, I have a FileReference Object. It was created with extension_builder originally. From The Model: /** * apprenticeshipDocument * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference */ protected $apprenticeshipDocument = NULL; etc. In the frontend, <f:debug>{institution.apprenticeshipDocument}</f:debug> gives me this: First Thing: originalResource is missing. Second: When calling {institution.apprenticeshipDocument.uidLocal} directly, the value is...

how to set different font sizes in the same html header?


html,css,fonts,font-size
I want to create an html header as follows "Version1: (10.3.4) vs Version2: (10.3.4)" and I want the version number be smaller than the words "Version1" and "Version2" how can I do this?...

TYPO3 tt_content structure: t3_origuid vs l18n_parent


typo3,typo3-6.2.x
I had to import a few posts from one TYPO3 site into another, which lead into some exploring of the DB structure. A specific question arose: In localised content elements (tt_content entries with sys_language_uid = 1), the fields t3_origuid and l18n_parent are redundantly filled. l18n_parent is required for the backend...

Is there a way to up-size the font with CSS to fit the screen?


html,css,css3,responsive-design,font-size
I'm thinking about improving the front page of the OpenBSD ports web-site, which lists about 71 categories of the ports. My idea is to use a couple of columns (maybe ul {-moz-columns: 9em;} also with a limit to at most 8 columns at 89em and above, @media (min-width: 89em) {ul...

Change Font Size on rCharts Sankey Diagram


r,font-size,rcharts,sankey-diagram
I'm using the following code to create a Sankey Diagram using rCharts. I wish to increase the font size of the text printed on the Sankey Diagram. I can't find a manual to show me how to do this. Thoughts? rm(list = ls()) require(reshape) require(rCharts) require(rjson) target <- c('TMF', 'TMF',...

IE9 Input and Select zoom issue using EM unit


html,css,internet-explorer,internet-explorer-9,font-size
I have a page, all styles are authored using em unit for sizing. I am facing a strange issue in IE9. I have a requirement to have custom zoom buttons. By clicking on that button, I am increasing the font-size of body. Eg from 1em to 2em and all child...

Typo3 6.2 fluid pagination not working as expected


typo3,fluid,extbase,typo3-6.2.x,typo3-4.5
My typo3 6.2(Upgraded from Typo3 4.5) fluid paginate displays all the items instead of 5 items. My Repository Method : public function getRandomLocation($iLimit) { $query = $this->createQuery(); $result = $query->statement("Select * FROM tx_sfel_domain_model_ttblocationsproduktegruppen WHERE hidden = 0 AND deleted = 0 AND logo != '' ORDER BY uid LIMIT 0,...

How to get filename in Typo3 solr extension with FAL and own Extbase extension


solr,typo3,extbase,typo3-6.2.x,fal
Before FAL, I can get the filename of an image from my own Extbase extension in the solr config file "typo3/ext/solr/Configuration/TypoScript/Solr/setup.txt" via index { queue { tx_myextension = 1 tx_myextension { fields { ... myimage_stringS = articleimage ... } } } } Where "articleimage" was a database field with the...

click a button to change text font-size of in javascript/css


javascript,jquery,html,css,font-size
To get a clear picture of what i am doing check this example or check the following code This example is to change text size of h1, h2, p. Is there a way in javascript/css that I can change text size of "body" that I can change the whole page...

How to disable cache for a image carousel in TYPO3


caching,typo3,typoscript,extbase,typo3-6.2.x
My TYPO3 extension has a lib that generates random 5 images from the total stock, for example out of the 100 images. This is done randomly every time the page is loaded. Only default the TYPO3 cache is enabled so every time the same 5 images are showed. As the...

Font Boosting Issue in Android Lollipop


android,html5,android-5.0-lollipop,font-size
We recently noticed font boosting issue in Android Lollipop OS. If user modifies font size in settings Menu, application is reloading if it is already running and all fonts are modified based on selected font size in device settings. If we are setting below metatag viewport, issue is not exist...

TYPO3 Solr extension and facets


solr,typo3,typoscript,typo3-6.2.x
I have a small question about TYPO3 solr facets.At present in my website I have 6 different indexing configuration available. Two of them are custom extension table's and one is tt_news and rest of the 3 are pages table with some custom condition. I managed to add this using additionalWhereClause...

iOS7 - Adjusting font size of multiline label to fit its frame


ios,fonts,uilabel,font-size
I need to fit a multiline attributed text in a UILabel's frame. Reading this thread How to adjust font size of label to fit the rectangle? I started from Niels' solution in order to work with attributed text. Here's the code: the 't' of 'prospect' is put in a new...

Use v:content.render in a Contentelement


typo3,fluid,typo3-6.2.x
I try to render some Elements from another page via fluid in a Partial and try to use v:content.render. As you can see in the code I want to render 3 elements from the page with the Uid 9. But as soon as I have the v:content.render element in it...

Any idea with font-size of 1.05em/1.2em?


css,styles,font-size
I saw a vid on Youtube and noticed that the font-size of body is 1.05em/1.2em. http://i.stack.imgur.com/KvWbY.png However, I tried this setting like 1.4em/1em vs. 1.4em. It seems to be a little bigger for 1.4em/1em, but there's no difference between 1.4em/1.4em or things like this. Any idea with this kind of...

How does my frontend usergroup list get lost between Extbase action controller and Fluid template partial in TYPO3 6.2?


typo3,fluid,extbase,typo3-6.2.x,typo3-extensions
I'm using TYPO3 CMS 6.2.12 and Extension Builder 6.2.0 to model a Report class and build an extension to manage it. One of the domain driven design requirements is that a report author be a logged-in front end user. A second requirement is that the author choose a single group...

Typoscript add class to the first element using stdWrap


typo3,typoscript,typo3-6.2.x
I have a custom requirement to display an image slider using TypoScript. The images are taken from default tt_content image content element. I've added the following TypoScript code to implement this; lib.homeslider = COA lib.homeslider { 10 = CONTENT 10 { table = tt_content select { where = colPos =...

Android EditText setHint's font size dynamically


android,android-edittext,font-size,dynamically-generated
I've been struggling with setting size of hints in my EditText. The hint's font size becomes too large and the layout starts to look horrible! EditText dummy = new EditText(); dummy.setHint("some hint"); How do I dynamically and programmatically change the hint's font size w.r.t my priorly set MAX_HINT_SIZE (in pixels)?...

Typo3 extbase database query


typo3,extbase,typo3-6.2.x,queryinterface
I have an extbase database query like below. $query = $this->createQuery(); $result = $query->statement("Select * FROM table1 WHERE hidden = 0 AND deleted = 0 AND (".$PublicationYears.") AND logo != '' ORDER BY uid ASC LIMIT 0, ".$iLimit." ")->execute(); return $result; $PublicationYears = "ttra = '12' or ttra = '13'...

Language detection not working in Typo3 6.2.12


typo3,typoscript,typo3-6.2.x,language-detection
I've a website which has 2 languages: German (de) as default and English (en) as translated. I am trying to implement language detection functionality in the website using the extension "rlmp_language_detection" version 7.0.0. What I want to achieve is, for the countries Austria (at), Switzerland (ch) and Germany (de), the...

JTextPane last line with smaller font size


java,size,line,font-size,jtextpane
I have issue with JTextPane. If I write something to JTextPane on last line, the last line has another size than other previous lines. After pressing ENTER row moves a little up. I figured out, that this behavior is just in case when font size is smaller then 12. Last...

Typo3 - extbase - Missing type information, probably no @param annotation for parameter “$currentPage”


annotations,typo3,extbase,typo3-6.2.x
I get the following error in Typo3 Backend: Missing type information, probably no @param annotation for parameter "$currentPage" in Tx_OptivoBm_Controller_NewsletterController->newAction() The function is set up like that: /** * action new * * @param $currentPage * @param $newNewsletter * @dontvalidate $newNewsletter * @return void */ public function newAction($currentPage) { if...

Change font size according to user input using Jquery


jquery,css,html5,forms,font-size
I have the following code: <div id="font"> <h2>Font Size</h2> <input type="text" name="font" value="15" /> px <br /><span id="warning"></span> </div> which allows the user to input a font size into the form and the text would change according to what the user puts in, additionally I would like for a warning...

TYPO3-Upgrade 4.5 to 6.2: namespaces


namespaces,typo3,typo3-6.2.x
I'm updating an old TYPO3 to latest verison 6.2.12. As I do so I replace deprecated classes with the proper namespaces. E.g. t3lib_div to \TYPO3\CMS\Core\Utility\GeneralUtility or t3lib_extmgm to \TYPO3\CMS\Core\Utility\ExtensionManagementUtility. But I cant find the proper namespaced class for t3lib_svbase. Any suggestions? . And I absolutely have no clue what I...

How to change default “Page Not Found” window (template) in TYPO3 v6.2.x


typo3,typo3-6.2.x
I made a website with TYPO3 v6.2.x. When the url goes wrong it shows the default typo3 "page not found" template(window). Its shown below. I need to change it. So that I want to add custom text or images to show the error page as my style(without typo3 logo and...