Zen TYPO3 Forum

Our TYPO3 forum is available for freelancers, professionals and clients new to TYPO3 to discuss Basic TYPO3 templating, Typoscript, extension installation, administration and help with subscription templates. Please register for an account to post.

All Categories > TYPO3 General Discussion > Templates > Image before/after vertical menu
Total Posts: 3 - Pages (1): [1]
Author: raphaelm
Posted: Jul 03 2007 - 04:18 AM
Subject: re: Image before/after vertical menu
Thanks a lot for all the help. Works fine.
Author: mediatech
Posted: Jul 02 2007 - 07:58 PM
Subject: re: Image before/after vertical menu
If you want the image to show up on all pages you can create TypoScript HTML markers. At the bottom of Setup: TypoScript Setup code, add something like this.

# Image 1
#######################################
page.1 {
subparts.IMAGE1 = TEXT
subparts.IMAGE1.insertData = 1
subparts.IMAGE1.value (
<img src="fileadmin/images/my_image.gif" alt="" />
)
}

# Image 2
#######################################
page.1 {
subparts.IMAGE2 = TEXT
subparts.IMAGE2.insertData = 1
subparts.IMAGE2.value (
<img src="fileadmin/images/my_other_image.gif" alt="" />
)
}


The resulting HTML TypoScript markers will look like these.
<!-- ###IMAGE1### START -->
<!-- ###IMAGE1### END-->

<!-- ###IMAGE2### START -->
<!-- ###IMAGE2### END-->


Now insert the markers into your template to make the images appear.
<div id="left-content">

<!-- ###IMAGE1### START -->
<!-- ###IMAGE1### END-->


<!-- ###VERTNAV_TITLE### START-->
<!-- ###VERTNAV_TITLE### END-->

<!--###VERTNAV### START-->
<p>this is the where left menu goes</p>
<!--###VERTNAV### STOP-->

<!-- ###IMAGE2### START -->
<!-- ###IMAGE2### END-->


<div id="left-wrapper">

<!-- ###CONTENT_LEFT### START-->
<H2 align="justify">- Title -</H2>
<p>this is the where left content goes</p>
<!-- ###CONTENT_LEFT### END-->

<!-- end #left-wrapper -->
</div>

<!-- end #left-content -->
</div>


Gregory Remington
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990 . Skype: gremington
Author: raphaelm
Posted: Jul 01 2007 - 06:20 AM
Subject: Image before/after vertical menu
How can I insert an image before and after the vertical navigation? Is that possible. I tried putting the pic into the template.html file, but I did not get it to work.
Thanks
Total Posts: 3 - Pages (1): [1]
You must login to post a message to this conference.

 

CHC Forum provided by Cast Iron Coding

TYPO3 Support