|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
[TYPO3-english] TT_NEWSHi All
How can I by using Typoscript customise BROWSE_LINKS? Thanks Clay _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: [TYPO3-english] TT_NEWSHi Clay,
Clay Sissing wrote > > > How can I by using Typoscript customise BROWSE_LINKS? > If you look into the setup.txt file located in "\typo3conf\ext\tt_news\static\ts_new\" you can see that the following options are available for customizing page browser: plugin.tt_news { # Pagebrowser settings usePiBasePagebrowser = 0 pageBrowser { maxPages = 7 showResultCount = 1 showPBrowserText = 0 dontLinkActivePage = 1 tableParams = cellpadding="2" align="center" # settings for the extended pageBrowser from TYPO3 3.8.0 showFirstLast = 1 pagefloat = center showRange = 1 disabledLinkWrap = <span style="color:#bbb;">|</span> inactiveLinkWrap = | activeLinkWrap = <strong>|</strong> LinksWrap =| showResultsWrap = |<br /> showResultsNumbersWrap = browseBoxWrap = browseLinksWrap = | } } Hope this contains information on what you are looking for. -- *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> _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: [TYPO3-english] TT_NEWSThanks
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 -----Original Message----- From: typo3-english-bounces@... [mailto:typo3-english-bounces@...] On Behalf Of Prakash Sent: 09 July 2009 16:46 To: typo3-english@... Subject: Re: [TYPO3-english] TT_NEWS Hi Clay, Clay Sissing wrote > > > How can I by using Typoscript customise BROWSE_LINKS? > If you look into the setup.txt file located in "\typo3conf\ext\tt_news\static\ts_new\" you can see that the following options are available for customizing page browser: plugin.tt_news { # Pagebrowser settings usePiBasePagebrowser = 0 pageBrowser { maxPages = 7 showResultCount = 1 showPBrowserText = 0 dontLinkActivePage = 1 tableParams = cellpadding="2" align="center" # settings for the extended pageBrowser from TYPO3 3.8.0 showFirstLast = 1 pagefloat = center showRange = 1 disabledLinkWrap = <span style="color:#bbb;">|</span> inactiveLinkWrap = | activeLinkWrap = <strong>|</strong> LinksWrap =| showResultsWrap = |<br /> showResultsNumbersWrap = browseBoxWrap = browseLinksWrap = | } } Hope this contains information on what you are looking for. -- *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> _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: [TYPO3-english] TT_NEWSAm 09.07.2009, 18:02 Uhr, schrieb Clay Sissing <clay@...>:
> 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? this contains information on what you are looking for. how about modifying template file? Best regards Phil -- I never knew how good Opera is as a newsreader! Try it! (used Thunderbird and Evolution before) _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: [TYPO3-english] TT_NEWSHi 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> _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
|
|
Re: [TYPO3-english] TT_NEWSClay Sissing wrote:
> 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? tt_news can either user its own pagebrowser or a pagebrowser from a userscript - both ways are not recommaned. the recommanded way is to use the pagebrowser from pi_base which can either user tables or custom wraps. I think the latter one is what you want. try this: # use the extended pagebrowser usePiBasePagebrowser = 1 pageBrowser { maxPages = 7 showResultCount = 1 showPBrowserText = 0 dontLinkActivePage = 1 showFirstLast = 1 pagefloat = center showRange = 1 hscText = 1 showResultsNumbersWrap = | browseBoxWrap = <div class="news-list-browse">|</div> showResultsWrap = <div class="showResultsWrap">|</div> browseLinksWrap = <div class="browseLinksWrap">|</div> disabledLinkWrap = <span class="disabledLinkWrap">|</span> inactiveLinkWrap = | activeLinkWrap = <span class="activeLinkWrap">|</span> activeLinkWrap.stdWrap.wrap = <span class="activeLinkWrap">|</span> } hth rupert _______________________________________________ TYPO3-english mailing list TYPO3-english@... http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english |
| Free embeddable forum powered by Nabble | Forum Help |