[TYPO3-english] Please help: Moving from one template to another
karl.wallace at roomthree.com
Wed Aug 17 10:37:00 CEST 2011
Yes that will work
As an alternative, what I do when I need to create a new template when I'm
already using an exisiting one is to copy the DS and TO records of the
template you want to use as a basis. You need to be in list view (DS and TO
records can be found in the storage folder usually)
Then you just rename them both and point the TO to the new html file. Be
sure to associate the TO with the new DS as it's easy to forget to change
the value in the drop down.
All the fields will be present with the correct names but you will have to
An important point to note is that if your mapping is lost the content is
NOT lost, once you remap the field to your html template the content will
still be there.
Using this method it's just easier as all the fields have the correct name
already, plus you save time creating the fields for a totally new template.
Hope this helps
"Joshua Heinrich Karp" <jhkarp at gmail.com> wrote in message
news:mailman.448.1313530120.578.typo3-english at lists.typo3.org...
Thanks for your very informative reply. So when I build and map the new DS
in TV, I will name the fields the same as in the main template that the
wizard makes. Then I'll just switch the template over on the rootpage. Is
2011/8/16 Björn Pedersen <pedersen at frm2.tum.de>
> Am 16.08.2011 08:46, schrieb Joshua Heinrich Karp:
> > Hi,
> > I have constructed a site with a single template in TV. Due to some
> > cross-browser compatibility problems, I rewrote the HTML and CSS for
> > this
> > template. The new HTML is completely different from the old markup, but
> > field structure in the DS should basically remain the same. I would like
> > create a new template in TV with this revised markup and then transfer
> > site over to this new template.
> > I tried creating a new TV Data Structure, but when I switched a page
> > over
> > that template all the content from that page vanished -- I assume
> > because
> > the file name and/or mapping had changed. That was disheartening.
> You should normally just create a new TV template by mapping it to your
> new HTML template and then switch the selectedt template on the page.
> The file name of the template does not matter.
> If you create a new data structure, you have to make sure to keep the
> fields names.
> Why: TV uses 3 xml structures for it's templating process:
> 1.) The data structure where the field names and their BE and frontend
> rendering are defined.
> 2.) The mapping xml (TV template object) where each field from the DS
> is mapped to some part of the html file.
> 3) The flexfield xml in the pages table ( or tt_content for FCE's) where
> there content is mapped to the names of the data structure.
> So, the field names are the essential key for the content mapping.
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
More information about the TYPO3-english