Menu with the TEXT

Menu with TEXT.

Here the Footer Menu after that Text comes..

 

menuTEXT

 

lib.footer_menu = COA
lib.footer_menu {
1= HMENU
1.special = directory
1.special.value = 18
1.= TMENU
1.{
wrap = <ul class=“footer-link”>|</ul>
NO {
wrapItemAndSub = <li style=“background:none;”>|</li> |*| <li>|</li> |*| <li>|</li>
stdWrap.htmlSpecialChars = 1
}
ACT < NO
ACT = 1
ACT.wrapItemAndSub = <li style=“background:none;”>|</li> |*| <li>|</li> |*| <li>|</li>
ACT.ATagParams = class=“selected”
ACT.stdWrap.htmlSpecialChars = 1
}

= HTML
2.value = <br /><strong>TEXT is Here…..</strong>
}

 

 

 

 

Current Date, Month Year using the TS

Current Date, Month Year using the TS.

curentdate_TS
lib.copyright = TEXT
lib.copyright.data = date:U
lib.copyright.strftime = %Y
lib.copyright.wrap= Copyright &copy;&nbsp; | &nbsp;test.com. All Rights Reserved.

Change Date Format in TYPO3…

For changes in the Date format in TYPO3 you have to made changes into this this file :

typo3/sysext/css_styled_content/static/setup.txt

in this change at

10 = TEXT
10 {
field = date
#strftime = %B %e, %y
strftime = %e-%m-%y
}

and for the Date format please refer below table.

Property: Description:
%a abbreviated weekday name (Sun, Mon, Tue)
%A full weekday name (Sunday, Monday, Tuesday)
%b abbreviated month name (Jan, Feb, Mar)
%B full month name (January, February, March)
%C century number (the year divided by 100 and truncated to an integer, range 00 to 99)
%d day of month (range 00 to 31)
%D same as “%m/%d/%y”
%e day of month, single digit (range 0 to 31)
%E number of days since unspecified epoch (integer, Date_Calc::dateToDays())
%H hour as decimal number (00 to 23)
%I hour as decimal number on 12-hour clock (01 to 12)
%j day of year (range 001 to 366)
%m month as decimal number (range 01 to 12)
%M minute as a decimal number (00 to 59)
%n newline character (\n)
%N month (1 to 12)
%O dst-corrected timezone offset expressed as “+/-HH:MM”
%o raw timezone offset expressed as “+/-HH:MM”
%p either ‘am’ or ‘pm’ depending on the time
%P either ‘AM’ or ‘PM’ depending on the time
%r time in am/pm notation, same as “%I:%M:%S %p”
%R time in 24-hour notation, same as “%H:%M”
%s seconds including the decimal representation smaller than one second
%S seconds as a decimal number (00 to 59)
%t tab character (\t)
%T current time, same as “%H:%M:%S”
%w weekday as decimal (0 = Sunday)
%U week number of current year, first sunday as first week
%y year as decimal (range 00 to 99)
%Y year as decimal including century (range 0000 to 9999)
%% literal ‘%’
Posted in Typo3. 1 Comment »

Add OWN Frame in TYPO3 Backend

Add OWN Frame in TYPO3 Backend…..

 

######### In TS…..

 

tt_content.stdWrap.innerWrap.cObject {

100 = TEXT

100.value = <div class=”heading”>|</div>

}

 

######## In Root Page Resource….

 

 

TCEFORM.tt_content.section_frame {

addItems.100 = Open Time Head

}

 

 

 

Storage Page ID using the TS in TYPO3 ……..

Storage Page ID using the TS in TYPO3 ……..

// Storage Pageid in Code

$pageid = $conf[‘StoragePid’];
$res = $GLOBALS[‘TYPO3_DB’]->exec_SELECTquery(‘*’,’tablename’,”deleted=0 and hidden=0 and pid=$pageid”,”,”);

// Storage Page ID in Backend Using TS….

# 48 is the FOLDER ID where the slider is store.
plugin.tx_slider_pi1.StoragePid=48

 

Banner PHP CODE…

 

function main($content, $conf) {
$this->conf = $conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
$this->fullURL = t3lib_div::getIndpEnv(‘TYPO3_SITE_URL’);
$cObject = t3lib_div::makeInstance(‘tslib_cObj’);

$GLOBALS[‘TSFE’]->additionalHeaderData[] = ‘<script src=”fileadmin/templates/js/jquery.bxslider.js” type=”text/javascript”></script>
<script type=”text/javascript”>
$(function(){
$(“#bxslider”).bxSlider({
auto : true,
mode: “fade”,
captions: true
});
})
</script>
‘;

$path = “uploads/tx_banner/”;
$pid = $this->conf[‘bannerStorage’];
$content .=’

<div id=”bxslider”>’;
$res = $GLOBALS[‘TYPO3_DB’]->exec_SELECTquery(‘title,image,link’,’tx_banner_data’,’hidden = 0 and deleted = 0 and pid = ‘.$pid.”);
if($GLOBALS[‘TYPO3_DB’]->sql_num_rows($res) > 0){
while($row = $GLOBALS[‘TYPO3_DB’]->sql_fetch_assoc($res)){
$this->siteURL = t3lib_div::getIndpEnv(‘TYPO3_SITE_URL’);
$cObject = t3lib_div::makeInstance(‘tslib_cObj’);
$lConf[‘img’] = ‘IMAGE’;
$lConf[‘img.’][‘file’] = $path.$row[‘image’];
$lConf[‘img.’][‘file.’][‘width’]=’685′;
$lConf[‘img.’][‘file.’][‘height’]=’240′;
$lConf[‘img.’][‘file.’][‘params’]=’-quality 100′;
$images = $cObject->IMAGE($lConf[‘img.’]);

$configurations[‘returnLast’] = ‘url’;
$configurations[‘parameter’] = $row[‘link’];
$pagelink = $this->fullURL.htmlspecialchars($cObject->typolink(NULL, $configurations));

$content .=’
<div><div class=”images”>’.$images.'</div>
<div class=”bannerText”>’;
if($row[‘link’] == “”){
$content .= ‘<span class=”banner_h”>’.$row[‘title’].'</span>’;
}else{
$content .= ‘<span class=”banner_h”><a href=”‘.$pagelink.'”>’.$row[‘title’].'</a></span>’;
}

$content .='</div>
</div>
‘;
}
}

$content .='</div>’;
return $this->pi_wrapInBaseClass($content);
}

Menu with the Resource Images

Menu with the Resource image…………..

 

lib.left_nav= HMENU
lib.left_nav.special = directory
lib.left_nav.special.value =PAGEID
lib.left_nav.1 = TMENU
lib.left_nav.1 {
wrap = <ul>|</ul>
NO {
allWrap.insertData = 1
allWrap= <li id=”menu_{field:uid}”>|</li>
stdWrap.wrap = <span class=”span_width”>|</span>
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10{
ATagParams.insertData=1
#stdWrap.wrap = <span>|</span>
ATagParams = title=”{field:title}”
allWrap.insertData=1
field = title
stdWrap.typolink = <span>|</span>
}
20= IMAGE
20 {
file.import = uploads/media/
file.import.field = media
file.import.listNum = 0
#   file.width = 18
#   file.height= 18
wrap = <span class=”icon”>|</span>
/*
stdWrap.typolink = |
stdWrap.typolink.insertData = 1
stdWrap.typolink.parameter.field = uid
*/
}

}
}
ACT = 1
ACT{
allWrap.insertData = 1
allWrap= <li id=”menu_{field:uid}” class=”active”>|</li>
stdWrap.wrap = <span class=”span_width”>|</span>
# ATagTitle.field = 1
# ATagParams = class = “testcls”
stdWrap.cObject = COA
stdWrap.cObject {

10 = TEXT
10{
ATagParams.insertData=1
#stdWrap.wrap = <span>|</span>
ATagParams = title=”{field:title}”
allWrap.insertData=1
field = title
stdWrap.typolink = <span>|</span>
}
20= IMAGE
20 {
file.import = uploads/media/
file.import.field = media
file.import.listNum = 0
# file.width = 26
# file.height= 17
wrap = <span class=”icon”>|</span>
/*
stdWrap.typolink = |
stdWrap.typolink.insertData = 1
stdWrap.typolink.parameter.field = uid
*/
}

}
}
}

HMenu – Menu and Text

HMenu TS  is HERE :

lib.copyright= COA
lib.copyright{
#wrap = <ul class=””>|</ul>
20= HMENU
20{
special = list
special.value = pid
1 = TMENU
1 {
NO.allWrap = <li>|</li>||<li>|</li>||<li>|</li>||<li>|</li>
NO.ATagTitle.field = title
}
}
10 = TEXT
10.value = <p>TEXT IS HERE </p>
}