[TYPO3-english] TT_NEWS
Prakash
spabhat at chandanweb.com
Fri Jul 10 08:23:53 CEST 2009
Hi Clay,
Clay Sissing wrote:
> Thanks
>
> That is exactly what I was looking for.
> Can you tell me is it possible to wrap the Pagebrowser in a ul instead
> of a table?
>
> Thanks
> Clay
Yes, you can, but not totally using Typoscript!
You need to use bit of typoscript and a custom pagebrowser function.
Seems complicated?
Not really, tt_news has an example script located in it's extension
folder at this url:
typo3conf\ext\tt_news\res\example_userPageBrowserFunc.php
All you need to do is copy this file "example_userPageBrowserFunc.php"
to a folder in fileadmin.
ex: fileadmin/templates/myext/example_userPageBrowserFunc.php
Now change the code in the above PHP file, and also make sure to include
this Typoscript:
# include the php script for the pageBrowser userfunction
includeLibs.userPageBrowserFunc =
fileadmin/templates/myext/example_userPageBrowserFunc.php
# call user function
plugin.tt_news.userPageBrowserFunc = user_substPageBrowser
plugin.tt_news {
# Pagebrowser settings
pageBrowser {
maxPages = 20
# set this to '0' if you want the pagebrowser to display only numbers
showPBrowserText = 1
tableParams = cellpadding=2
showResultCount = 1
}
# Example for overriding values from locallang.php with html-code
that displays images
_LOCAL_LANG.default {
pi_list_browseresults_prev = <img src="typo3/gfx/pil2left.gif"
border="0" height="12" width="7" alt="previous" title="previous">
pi_list_browseresults_next = <img src="typo3/gfx/pil2right.gif"
border="0" height="12" width="7" alt="next" title="next">
}
}
If you look in to the file "example_userPageBrowserFunc.php: you will
clearly get an idea on how to totally customize pagebrowser to suit your
needs.
--
*Regards,
Prakash A Bhat*
Skype/Yahoo/GTalk/MSN: spabhat
Ph: +91 80 420 33 515
Mobile: +91 94481 40430
www.chandanweb.com <http://www.chandanweb.com>
Chandan Web Solutions <http://www.chandanweb.com>
<http://www.chandanweb.com>
More information about the TYPO3-english
mailing list