This forum is for churches and ministries using Web-Empowered Church tools or packages. If you are a WEC customer, please submit a ticket. If you are reporting a bug with one of our plugins, please email us. If you are a business entity and want help that you cannot find here, please look at our services.
Notice: we are using new forum software and most messages from last 2 years were transferred. If you had an account before, please login to post a message on the forum.
Change rendering of page title in template
| Author |
Message |
|
Written on: 09/11/2011
|
|
jaco graaff
Topic creator
registered since: 07/30/2009
Posts: 4
|
in the Templavoila framework there is and option to render the pagetitle as a page heading by default
"Page Title as Content Headline"
I would like to change the way this title is rendered using typoscript optionsplit
Is there anyone that could maybe show me in some direction to look at without creating new page template from scratch
it seems like this is hardcoded in the core_templates: datastructures of the extension
example:
typo3conf/ext/templavoila_framework/core_templates/datastructures/f1(page).xml
from line 151
I see the wrapper of the title:
wrap = <h1 class="csc-firstHeader centralHeadline">|</h1>
----------------------------------------------------------------------------
<TypoScript><![CDATA[
10 = LOAD_REGISTER
10 {
containerWidth = {$containerWidth}
maxImageWidth = {$containerWidth}
originalContainerWidth.data = register:containerWidth
nestingLevel = 0
}
20 = COA
20 {
wrap = <div id="contentBlock-1"><!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end--><div class="clearOnly"> </div></div>
10 = TEXT
10 {
data = page:title
htmlSpecialChars = 1
wrap = <h1 class="csc-firstHeader centralHeadline">|</h1>
if {
value.data = register:autoMainHeadline
equals = 0
negate = 1
}
}
}
20.20 = RECORDS
20.20 {
source.current = 1
tables = tt_content
}
]]></TypoScript>
----------------------------------------------------------------------------
must I recreate the datasctructures to be able to access the embedded typoscript
I would like to do some optionsplit magic to either render a graphic header or
wrap = | |*| |*| <b>|</b>
- I split the headers and headline up using space or a special character and then automatically render it with different styles/colors
Obviously I want it as simple for editors and not require them to manually onclude a title
thanks
Jaco
|
|
Written on: 09/14/2011
|
|
jaco graaff
Topic creator
registered since: 07/30/2009
Posts: 4
|
I can do it in javascript using jquery after the page load - although I prefer to limit client side code to be executed for layout...
[code]
$("h1.centralHeadline" .each(function () {
//do some javascript here
});
[/code]
(note: the [code] tag does not seem to work in this forum)
[This article was edited 2 times, at last 14.09.2011 at 21:24.]
|