[TYPO3] previous / next menu

Bas van der Togt b.vandertogt at profinit.com
Sat Mar 24 16:55:25 CET 2007


Thanks for your reply Peter!

One problem, if there's no previous page the whole div disappears.
Do you know an solution for this?

Typoscript:
# Prev
temp.Prev = HMENU
temp.Prev {
   special = browse
   special.items = prev
   special.items.prevnextToSection = 0
   special.prev.fields.title = <div class="prev">&nbsp;</div>
   1 = TMENU
   1.NO.linkWrap = |
}

CSS:
.prev {
   background: transparent url(../images/previous.gif) no-repeat;
   float: left;
   height: 7px;
   width: 7px;
   margin: 5px 3px 0px 3px;
}

cheers,
Bas

Peter Klein schreef:
> Hi Bas.
> Use CSS, and create a background image for the container that holds the 
> menu.
> When there's a next or previous button those will be shown on top of the 
> bacckground image.
> 
> --
> Peter Klein / Umloud Untd
> .
> "Bas van der Togt" <b.vandertogt at profinit.com> wrote in message 
> news:mailman.1.1174746287.9545.typo3-english at lists.netfielders.de...
>> Hello list,
>>
>> I build a next|prev menu but now i'm missing one thing.
>> I want to show an inactive picture which is not linked if there's no 
>> previous or next page. does anybody knows how to do this?
>>
>> cheers
>> Bas
>>
>> # ProductMenu
>> temp.ProductMenu = HMENU
>> temp.ProductMenu {
>>   special = browse
>>   special.items = prev|next
>>   special.items.prevnextToSection = 0
>>   special.next.fields.title = <img 
>> src="fileadmin/templates/images/next.gif" width="7" height="7" alt="" 
>> border="0">
>>   special.prev.fields.title = <img 
>> src="fileadmin/templates/images/previous.gif" width="7" height="7" alt="" 
>> border="0">
>>   1 = TMENU
>>   1.NO.linkWrap = | &nbsp;
>> } 
> 
> 


More information about the TYPO3-english mailing list