|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi all,
I have just completed the transfer of a large site including a long overdue upgrade from 3.7 to 4.1 and am now trying to "iron out some wrinkles". In version 3.7 bullet lists were rendered with <typolist> tags and used images from the /media/bullets folder. In version 4.1 there is no /media/bullets folder so bullet lists are not rendered correctly (empty images of no defined size appear before each list item). I have been playing around with this for some time now. I have discovered that by opening a content element and saving it again, then RTE htmlarea substitutes all the <typolink> tags with <ul> and <li>. So that fixes the problem right? But a global search for "</typolist>" showed over 150 records needing attention. There must be a "cleaner" way to change this! Perhaps there is something I need to do with static templates? I expect there is a simple solution. Thanks for any clues! -Darryl _______________________________________________ TYPO3-linux mailing list TYPO3-linux (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...fo/typo3-linux |
|
#2
|
|||
|
|||
|
There is.
update tt_content set bodytext = replace(bodytext, '<typolist>','<ul>'); update tt_content set bodytext = replace(bodytext, '</typolist>','</ul>'); + clear all cache. D. On 3/14/07, Darryl Krause <DarrylK (AT) ywam (DOT) no> wrote: > I have been playing around with this for some time now. I have discovered > that by opening a content element and saving it again, then RTE htmlarea > substitutes all the <typolink> tags with <ul> and <li>. So that fixes the > problem right? > > But a global search for "</typolist>" showed over 150 records needing > attention. There must be a "cleaner" way to change this! Perhaps there is > something I need to do with static templates? I expect there is a simple > solution. -- Dimitri Tarassenko _______________________________________________ TYPO3-linux mailing list TYPO3-linux (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...fo/typo3-linux |
|
#3
|
|||
|
|||
|
Thanks Dimitri,
Seems like you're talking about a raw replace in the tt_content table in the database, right? I had thought of that, but wondered about the <li> tags? I just thought that there must have been some cleaner way of upgrading this as new versions were released. -Darryl PS. For now, as a temporary solution, I have just put a copy of the old media/bullets/ folder in place. But this leads to different rendering of existing and newer bullet lists. -----Opprinnelig melding----- Fra: typo3-linux-bounces (AT) lists (DOT) netfielders.de [mailto:typo3-linux-bounces (AT) lists (DOT) netfielders.de] På vegne av Dimitri Tarassenko Sendt: 14. mars 2007 14:16 Til: TYPO3 Installation on Linux and other Unices Emne: Re: [TYPO3-linux] Problems with Typolink after upgrade There is. update tt_content set bodytext = replace(bodytext, '<typolist>','<ul>'); update tt_content set bodytext = replace(bodytext, '</typolist>','</ul>'); + clear all cache. D. On 3/14/07, Darryl Krause <DarrylK (AT) ywam (DOT) no> wrote: > I have been playing around with this for some time now. I have discovered > that by opening a content element and saving it again, then RTE htmlarea > substitutes all the <typolink> tags with <ul> and <li>. So that fixes the > problem right? > > But a global search for "</typolist>" showed over 150 records needing > attention. There must be a "cleaner" way to change this! Perhaps there is > something I need to do with static templates? I expect there is a simple > solution. -- Dimitri Tarassenko _______________________________________________ TYPO3-linux mailing list TYPO3-linux (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...fo/typo3-linux _______________________________________________ TYPO3-linux mailing list TYPO3-linux (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...fo/typo3-linux |
|
#4
|
|||
|
|||
|
On 3/14/07, Darryl Krause <DarrylK (AT) ywam (DOT) no> wrote:
> Seems like you're talking about a raw replace in the tt_content table in the database, right? > I had thought of that, but wondered about the <li> tags? update tt_content set bodytext = replace(bodytext, '<typolist>','<ul><li>') where CType='list'; update tt_content set bodytext = replace(bodytext, '</typolist>','</li></ul>') where CType='list'; update tt_content set bodytext = replace(bodytext, char(13),'</li><li>') where CType='list'; Note - I'm not sure 'list' is a correct value for bullet lists, look it up. You also may need to check if your line ends are LF's or CRLFs, as well as add a cleanup of empty <li></li> lines if the content elements have empty lines at the end. > I just thought that there must have been some cleaner way of upgrading this as new versions were released. Nope . Not as far as I know.-- Dimitri Tarassenko _______________________________________________ TYPO3-linux mailing list TYPO3-linux (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...fo/typo3-linux |
|
#5
|
|||
|
|||
|
Hi,
On 3/14/07, Dimitri Tarassenko <mitka (AT) mitka (DOT) us> wrote: > On 3/14/07, Darryl Krause <DarrylK (AT) ywam (DOT) no> wrote: > > Seems like you're talking about a raw replace in the tt_content table in the database, right? > > I had thought of that, but wondered about the <li> tags? > > update tt_content set bodytext = replace(bodytext, > '<typolist>','<ul><li>') where CType='list'; > update tt_content set bodytext = replace(bodytext, > '</typolist>','</li></ul>') where CType='list'; > update tt_content set bodytext = replace(bodytext, > char(13),'</li><li>') where CType='list'; > > Note - I'm not sure 'list' is a correct value for bullet lists, look > it up. You also may need to check if your line ends are LF's or CRLFs, > as well as add a cleanup of empty <li></li> lines if the content > elements have empty lines at the end. > > > I just thought that there must have been some cleaner way of upgrading this as new versions were released. > > Nope . Not as far as I know.Since the original problem was that "In version 4.1 there is no /media/bullets folder so bullet lists are not rendered correctly (empty images of no defined size appear before each list item)," this problem can be fixed by creating a symlink to the /new location/ of the media directory: cd public_html (or whatever...) ln -s typo3/sysext/cms/tslib/media media However, I'd say Dmitry's solution is the better one (since it doesn't rely on superfluous images). -- Christopher Torgalson http://www.typo3apprentice.com/ _______________________________________________ TYPO3-linux mailing list TYPO3-linux (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/...fo/typo3-linux |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] 4.0.3 to 4.1 upgrade problems | Derek Harkness | typo3-english@lists.netfielders.de | 7 | 21.03.2007 16:11 |
| [TYPO3] tt_news 2.4.0 upgrade issue | Bing Du | typo3-english@lists.netfielders.de | 0 | 12.03.2007 20:52 |
| [TYPO3-linux] ImageMagick Problems - exec() disabled | Sandy Matheson | typo3-linux@lists.netfielders.de | 2 | 08.02.2007 15:18 |
| [TYPO3-linux] Install problems relating GD | Kari Salovaara | typo3-linux@lists.netfielders.de | 2 | 03.02.2007 10:46 |
| [TYPO3-UG France] Prolème - Upgrade 3.7 -> 3.8.1 | benoit at norrin.fr | typo3-france@lists.netfielders.de | 0 | 08.03.2006 16:49 |