|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi!
I'm new to TYPO3 and just creating my first site. I learned Futuristic Template Building about DS/TO creation, but i don't understand how i can apply one huge html template with huge number of fields to many TO with different mapped fields. For ex.: <div id ="wcont"> <div id="top"><h1>Top.</h1></div> <div id="mmnu"> <ul class="mnu"> <li class="tmnu"><a href="#">Menu L1 </a> <ul> <li><a href="#">Menu L2</a></li> </ul> </a> </li> </ul> <div id="cont">Text.</div> <div id="foot">Footer.</div> </div> And what if i modify this template adding to it next 2 divs?: <div id="brmnu">Breadcrumb</div> <div id="totop"><a href="#top">To top</a></div> If i add them to main template, but don't map - they show their content "Breadcrumb" and "To top". But i want to add them to main DS and make two TO - as shown first above and other - with new added fields mapped to divs. How i can hide these divs from first TO and show them only in second (third etc) TOs? Or... How i can manage my templates/DS/TO to minimize number of files/operations/etc? -- with respect, MaaBoo _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#2
|
|||
|
|||
|
Hi MaaBoo
you can create many DS/TO out ouf the same template file. you usualie dont use One Big DS to do everything. the DS/TS konzept is more for different displays of the same data. so you could have an "info-box" element whitch kontains of an headline. text and image. but comes in different "layouts" like full width. and an other just in 50% width. if you for both elements the same DS you are able to switch the layout and all data are kept Correctly. a more visual explanation is kaspers christmas tutorial were he shows how to use templaVoila in action. her are all podcasts http://typo3.org/podcasts/ here is the one that might bee intersting for you: Christmas Special: Build a Website, Bob! Mon 18. Dec 2006, 21:00 http://castor.t3o.punkt.de/files/pod...ld-website.m4v greets chris On Tue, 19 Aug 2008 16:53:46 +0200, maaboo <maaboo (AT) gmail (DOT) com> wrote: > Hi! > > I'm new to TYPO3 and just creating my first site. I learned Futuristic > Template Building about DS/TO creation, but i don't understand how i can > apply one huge html template with huge number of fields to many TO with > different mapped fields. For ex.: > > <div id ="wcont"> > <div id="top"><h1>Top.</h1></div> > <div id="mmnu"> > <ul class="mnu"> > <li class="tmnu"><a href="#">Menu L1 > </a> > <ul> > <li><a href="#">Menu L2</a></li> > </ul> > </a> > </li> > </ul> > <div id="cont">Text.</div> > <div id="foot">Footer.</div> > </div> > > And what if i modify this template adding to it next 2 divs?: > > <div id="brmnu">Breadcrumb</div> > <div id="totop"><a href="#top">To top</a></div> > > If i add them to main template, but don't map - they show their content > "Breadcrumb" and "To top". But i want to add them to main DS and make > two TO > - as shown first above and other - with new added fields mapped to divs. > How > i can hide these divs from first TO and show them only in second (third > etc) > TOs? Or... How i can manage my templates/DS/TO to minimize number of > files/operations/etc? -- Christian Wolff // Berlin http://www.connye.com Latest Projects: http://www.bizim-tur.de/ | http://www.flycall.de | http://www.atr24.de _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#3
|
|||
|
|||
|
Hi MaaBoo,
I think the behavior you are experiencing is because you are probably using the same HTML file for both TOs. In effect the DS fields are not being used but the HTML you have in the template still shows up (as expected). If you make a copy of the HTML file, delete the two items that you do not want and use that for the basis of the other TOs it will work. As before you would not map those DS fields on those templates. In others words you can have one DS but you have to use multiple HTML files for the TOs. BTW. What you are trying to do works best with fields that have TS driven output. If they are fields which are for the user to place content then it is best to do an additional DS. Hope this helps, Ron On Aug 19, 2008, at 9:53 AM, maaboo wrote: > Hi! > > I'm new to TYPO3 and just creating my first site. I learned Futuristic > Template Building about DS/TO creation, but i don't understand how i > can > apply one huge html template with huge number of fields to many TO > with > different mapped fields. For ex.: > > <div id ="wcont"> > <div id="top"><h1>Top.</h1></div> > <div id="mmnu"> > <ul class="mnu"> > <li class="tmnu"><a href="#">Menu L1 > </a> > <ul> > <li><a href="#">Menu L2</a></li> > </ul> > </a> > </li> > </ul> > <div id="cont">Text.</div> > <div id="foot">Footer.</div> > </div> > > And what if i modify this template adding to it next 2 divs?: > > <div id="brmnu">Breadcrumb</div> > <div id="totop"><a href="#top">To top</a></div> > > If i add them to main template, but don't map - they show their > content > "Breadcrumb" and "To top". But i want to add them to main DS and > make two TO > - as shown first above and other - with new added fields mapped to > divs. How > i can hide these divs from first TO and show them only in second > (third etc) > TOs? Or... How i can manage my templates/DS/TO to minimize number of > files/operations/etc? > -- > with respect, MaaBoo > _______________________________________________ > TYPO3-project-templavoila mailing list > TYPO3-project-templavoila (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-templavoila _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#4
|
|||
|
|||
|
Hi Ron,
I use the method you described quite often (one DS, multiple HTML files & TOs). Sometimes I experience a nasty little problem with that constellation. Maybe you know a solution: The DS elements that are not used together with a certain TO and HTML file must never get mapped. If I accidentally map one of these elements, or if I change an HTML+TO later to not include that element any more, there is no way to wipe the associated mapping. TV continues to show an error message for the defect mapping and - as I cannot remap it - there seems to be no way to get rid of that. Any ideas? Cheers, Jörg. Ron Hall schrieb: > Hi MaaBoo, > > I think the behavior you are experiencing is because you are probably > using the same HTML file for both TOs. In effect the DS fields are not > being used but the HTML you have in the template still shows up (as > expected). > > If you make a copy of the HTML file, delete the two items that you do > not want and use that for the basis of the other TOs it will work. As > before you would not map those DS fields on those templates. In others > words you can have one DS but you have to use multiple HTML files for > the TOs. > > BTW. What you are trying to do works best with fields that have TS > driven output. If they are fields which are for the user to place > content then it is best to do an additional DS. > > Hope this helps, > Ron > > On Aug 19, 2008, at 9:53 AM, maaboo wrote: > >> Hi! >> >> I'm new to TYPO3 and just creating my first site. I learned Futuristic >> Template Building about DS/TO creation, but i don't understand how i can >> apply one huge html template with huge number of fields to many TO with >> different mapped fields. For ex.: >> >> <div id ="wcont"> >> <div id="top"><h1>Top.</h1></div> >> <div id="mmnu"> >> <ul class="mnu"> >> <li class="tmnu"><a href="#">Menu L1 >> </a> >> <ul> >> <li><a href="#">Menu L2</a></li> >> </ul> >> </a> >> </li> >> </ul> >> <div id="cont">Text.</div> >> <div id="foot">Footer.</div> >> </div> >> >> And what if i modify this template adding to it next 2 divs?: >> >> <div id="brmnu">Breadcrumb</div> >> <div id="totop"><a href="#top">To top</a></div> >> >> If i add them to main template, but don't map - they show their content >> "Breadcrumb" and "To top". But i want to add them to main DS and make >> two TO >> - as shown first above and other - with new added fields mapped to >> divs. How >> i can hide these divs from first TO and show them only in second >> (third etc) >> TOs? Or... How i can manage my templates/DS/TO to minimize number of >> files/operations/etc? >> -- >> with respect, MaaBoo >> _______________________________________________ >> TYPO3-project-templavoila mailing list >> TYPO3-project-templavoila (AT) lists...netfielders.de >> http://lists.netfielders.de/cgi-bin/...ct-templavoila >> > _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#5
|
|||
|
|||
|
Looks like there are two ways to handle this. One is a new approach
that I just got from reading Dimity's post on this thread. (Thanks, Dimitry). Previously in this situation I would just hit "Clear all" and remap the entire template. However, I just tested a new approach based on Dimitry's response using the Ch.Mode button. This is what I did. 1) Deleted an HTML element in the file used by the TO (this causes the situation you described) 2) At this point you see the error string but not the Ch.Mode button. 3) I then mapped that field to some element in the HTML file. (it doesn't matter which one.) 4) The Ch.Mode button is then available. Click it and, as Dimitry indicated, click the Ch.Mode button. 5) Change the "Action" selector from whatever it is (inner, outer, etc.) to the empty selection. and hit "Set" The element is then unmapped. Again, thanks Dimitry. This is going to save me a lot of remapping. Ron On Aug 21, 2008, at 4:00 AM, Joerg Wagner wrote: > Hi Ron, > I use the method you described quite often (one DS, multiple HTML > files > & TOs). Sometimes I experience a nasty little problem with that > constellation. Maybe you know a solution: > The DS elements that are not used together with a certain TO and HTML > file must never get mapped. If I accidentally map one of these > elements, > or if I change an HTML+TO later to not include that element any more, > there is no way to wipe the associated mapping. TV continues to show > an > error message for the defect mapping and - as I cannot remap it - > there > seems to be no way to get rid of that. > Any ideas? > > Cheers, > Jörg. > > > > Ron Hall schrieb: >> Hi MaaBoo, >> >> I think the behavior you are experiencing is because you are probably >> using the same HTML file for both TOs. In effect the DS fields are >> not >> being used but the HTML you have in the template still shows up (as >> expected). >> >> If you make a copy of the HTML file, delete the two items that you do >> not want and use that for the basis of the other TOs it will work. As >> before you would not map those DS fields on those templates. In >> others >> words you can have one DS but you have to use multiple HTML files for >> the TOs. >> >> BTW. What you are trying to do works best with fields that have TS >> driven output. If they are fields which are for the user to place >> content then it is best to do an additional DS. >> >> Hope this helps, >> Ron >> >> On Aug 19, 2008, at 9:53 AM, maaboo wrote: >> >>> Hi! >>> >>> I'm new to TYPO3 and just creating my first site. I learned >>> Futuristic >>> Template Building about DS/TO creation, but i don't understand how >>> i can >>> apply one huge html template with huge number of fields to many TO >>> with >>> different mapped fields. For ex.: >>> >>> <div id ="wcont"> >>> <div id="top"><h1>Top.</h1></div> >>> <div id="mmnu"> >>> <ul class="mnu"> >>> <li class="tmnu"><a href="#">Menu L1 >>> </a> >>> <ul> >>> <li><a href="#">Menu L2</a></li> >>> </ul> >>> </a> >>> </li> >>> </ul> >>> <div id="cont">Text.</div> >>> <div id="foot">Footer.</div> >>> </div> >>> >>> And what if i modify this template adding to it next 2 divs?: >>> >>> <div id="brmnu">Breadcrumb</div> >>> <div id="totop"><a href="#top">To top</a></div> >>> >>> If i add them to main template, but don't map - they show their >>> content >>> "Breadcrumb" and "To top". But i want to add them to main DS and >>> make >>> two TO >>> - as shown first above and other - with new added fields mapped to >>> divs. How >>> i can hide these divs from first TO and show them only in second >>> (third etc) >>> TOs? Or... How i can manage my templates/DS/TO to minimize number of >>> files/operations/etc? >>> -- >>> with respect, MaaBoo >>> _______________________________________________ >>> TYPO3-project-templavoila mailing list >>> TYPO3-project-templavoila (AT) lists...netfielders.de >>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>> >> > _______________________________________________ > TYPO3-project-templavoila mailing list > TYPO3-project-templavoila (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-templavoila _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#6
|
|||
|
|||
|
One modification to my previous instructions on this that makes it a
little simpler. This is what I just tested. 1) Deleted an HTML element in the file used by the TO (this causes the situation described) 2) At this point you see the error string. 3) I then started to map that field to some element in the HTML file. (it doesn't matter which one.) 4) During the mapping process I changed the "Action" selector from whatever it is (inner, outer, etc.) to the empty selection. and hit "Set" The filed is then unmapped. Basically the difference from the previous instructions is that you don't have to try to get the Ch.Mode button to appear. But the idea is the same. Thanks, Ron On Aug 21, 2008, at 9:57 AM, Ron Hall wrote: > Looks like there are two ways to handle this. One is a new approach > that I just got from reading Dimity's post on this thread. (Thanks, > Dimitry). > > Previously in this situation I would just hit "Clear all" and remap > the entire template. > > However, I just tested a new approach based on Dimitry's response > using the Ch.Mode button. This is what I did. > > 1) Deleted an HTML element in the file used by the TO (this causes the > situation you described) > > 2) At this point you see the error string but not the Ch.Mode button. > > 3) I then mapped that field to some element in the HTML file. (it > doesn't matter which one.) > > 4) The Ch.Mode button is then available. Click it and, as Dimitry > indicated, click the Ch.Mode button. > > 5) Change the "Action" selector from whatever it is (inner, outer, > etc.) to the empty selection. and hit "Set" > > The element is then unmapped. > > Again, thanks Dimitry. This is going to save me a lot of remapping. > > Ron > > > On Aug 21, 2008, at 4:00 AM, Joerg Wagner wrote: > >> Hi Ron, >> I use the method you described quite often (one DS, multiple HTML >> files >> & TOs). Sometimes I experience a nasty little problem with that >> constellation. Maybe you know a solution: >> The DS elements that are not used together with a certain TO and HTML >> file must never get mapped. If I accidentally map one of these >> elements, >> or if I change an HTML+TO later to not include that element any more, >> there is no way to wipe the associated mapping. TV continues to show >> an >> error message for the defect mapping and - as I cannot remap it - >> there >> seems to be no way to get rid of that. >> Any ideas? >> >> Cheers, >> Jörg. >> >> >> >> Ron Hall schrieb: >>> Hi MaaBoo, >>> >>> I think the behavior you are experiencing is because you are >>> probably >>> using the same HTML file for both TOs. In effect the DS fields are >>> not >>> being used but the HTML you have in the template still shows up (as >>> expected). >>> >>> If you make a copy of the HTML file, delete the two items that you >>> do >>> not want and use that for the basis of the other TOs it will work. >>> As >>> before you would not map those DS fields on those templates. In >>> others >>> words you can have one DS but you have to use multiple HTML files >>> for >>> the TOs. >>> >>> BTW. What you are trying to do works best with fields that have TS >>> driven output. If they are fields which are for the user to place >>> content then it is best to do an additional DS. >>> >>> Hope this helps, >>> Ron >>> >>> On Aug 19, 2008, at 9:53 AM, maaboo wrote: >>> >>>> Hi! >>>> >>>> I'm new to TYPO3 and just creating my first site. I learned >>>> Futuristic >>>> Template Building about DS/TO creation, but i don't understand how >>>> i can >>>> apply one huge html template with huge number of fields to many TO >>>> with >>>> different mapped fields. For ex.: >>>> >>>> <div id ="wcont"> >>>> <div id="top"><h1>Top.</h1></div> >>>> <div id="mmnu"> >>>> <ul class="mnu"> >>>> <li class="tmnu"><a href="#">Menu L1 >>>> </a> >>>> <ul> >>>> <li><a href="#">Menu L2</a></li> >>>> </ul> >>>> </a> >>>> </li> >>>> </ul> >>>> <div id="cont">Text.</div> >>>> <div id="foot">Footer.</div> >>>> </div> >>>> >>>> And what if i modify this template adding to it next 2 divs?: >>>> >>>> <div id="brmnu">Breadcrumb</div> >>>> <div id="totop"><a href="#top">To top</a></div> >>>> >>>> If i add them to main template, but don't map - they show their >>>> content >>>> "Breadcrumb" and "To top". But i want to add them to main DS and >>>> make >>>> two TO >>>> - as shown first above and other - with new added fields mapped to >>>> divs. How >>>> i can hide these divs from first TO and show them only in second >>>> (third etc) >>>> TOs? Or... How i can manage my templates/DS/TO to minimize number >>>> of >>>> files/operations/etc? >>>> -- >>>> with respect, MaaBoo >>>> _______________________________________________ >>>> TYPO3-project-templavoila mailing list >>>> TYPO3-project-templavoila (AT) lists...netfielders.de >>>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>>> >>> >> _______________________________________________ >> TYPO3-project-templavoila mailing list >> TYPO3-project-templavoila (AT) lists...netfielders.de >> http://lists.netfielders.de/cgi-bin/...ct-templavoila > > _______________________________________________ > TYPO3-project-templavoila mailing list > TYPO3-project-templavoila (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-templavoila _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#7
|
|||
|
|||
|
Many thanks Ron, this exactly solves my problem!
I was aware of the possibility to "clear all" and remap, but with 20+ to 40 elements to map this is a pain in the ass. So your solution is VERY welcome! Thanks again. Cheers, Jörg. Ron Hall schrieb: > One modification to my previous instructions on this that makes it a > little simpler. > > This is what I just tested. > > 1) Deleted an HTML element in the file used by the TO (this causes the > situation described) > > 2) At this point you see the error string. > > 3) I then started to map that field to some element in the HTML file. (it > doesn't matter which one.) > > 4) During the mapping process I changed the "Action" selector from > whatever it is (inner, outer, > etc.) to the empty selection. and hit "Set" > > The filed is then unmapped. > > Basically the difference from the previous instructions is that you > don't have to try to get the Ch.Mode button to appear. But the idea is > the same. > > Thanks, > Ron > > > On Aug 21, 2008, at 9:57 AM, Ron Hall wrote: > >> Looks like there are two ways to handle this. One is a new approach >> that I just got from reading Dimity's post on this thread. (Thanks, >> Dimitry). >> >> Previously in this situation I would just hit "Clear all" and remap >> the entire template. >> >> However, I just tested a new approach based on Dimitry's response >> using the Ch.Mode button. This is what I did. >> >> 1) Deleted an HTML element in the file used by the TO (this causes the >> situation you described) >> >> 2) At this point you see the error string but not the Ch.Mode button. >> >> 3) I then mapped that field to some element in the HTML file. (it >> doesn't matter which one.) >> >> 4) The Ch.Mode button is then available. Click it and, as Dimitry >> indicated, click the Ch.Mode button. >> >> 5) Change the "Action" selector from whatever it is (inner, outer, >> etc.) to the empty selection. and hit "Set" >> >> The element is then unmapped. >> >> Again, thanks Dimitry. This is going to save me a lot of remapping. >> >> Ron >> >> >> On Aug 21, 2008, at 4:00 AM, Joerg Wagner wrote: >> >>> Hi Ron, >>> I use the method you described quite often (one DS, multiple HTML >>> files >>> & TOs). Sometimes I experience a nasty little problem with that >>> constellation. Maybe you know a solution: >>> The DS elements that are not used together with a certain TO and HTML >>> file must never get mapped. If I accidentally map one of these >>> elements, >>> or if I change an HTML+TO later to not include that element any more, >>> there is no way to wipe the associated mapping. TV continues to show >>> an >>> error message for the defect mapping and - as I cannot remap it - >>> there >>> seems to be no way to get rid of that. >>> Any ideas? >>> >>> Cheers, >>> Jörg. >>> >>> >>> >>> Ron Hall schrieb: >>>> Hi MaaBoo, >>>> >>>> I think the behavior you are experiencing is because you are probably >>>> using the same HTML file for both TOs. In effect the DS fields are >>>> not >>>> being used but the HTML you have in the template still shows up (as >>>> expected). >>>> >>>> If you make a copy of the HTML file, delete the two items that you do >>>> not want and use that for the basis of the other TOs it will work. As >>>> before you would not map those DS fields on those templates. In >>>> others >>>> words you can have one DS but you have to use multiple HTML files for >>>> the TOs. >>>> >>>> BTW. What you are trying to do works best with fields that have TS >>>> driven output. If they are fields which are for the user to place >>>> content then it is best to do an additional DS. >>>> >>>> Hope this helps, >>>> Ron >>>> >>>> On Aug 19, 2008, at 9:53 AM, maaboo wrote: >>>> >>>>> Hi! >>>>> >>>>> I'm new to TYPO3 and just creating my first site. I learned >>>>> Futuristic >>>>> Template Building about DS/TO creation, but i don't understand how >>>>> i can >>>>> apply one huge html template with huge number of fields to many TO >>>>> with >>>>> different mapped fields. For ex.: >>>>> >>>>> <div id ="wcont"> >>>>> <div id="top"><h1>Top.</h1></div> >>>>> <div id="mmnu"> >>>>> <ul class="mnu"> >>>>> <li class="tmnu"><a href="#">Menu L1 >>>>> </a> >>>>> <ul> >>>>> <li><a href="#">Menu L2</a></li> >>>>> </ul> >>>>> </a> >>>>> </li> >>>>> </ul> >>>>> <div id="cont">Text.</div> >>>>> <div id="foot">Footer.</div> >>>>> </div> >>>>> >>>>> And what if i modify this template adding to it next 2 divs?: >>>>> >>>>> <div id="brmnu">Breadcrumb</div> >>>>> <div id="totop"><a href="#top">To top</a></div> >>>>> >>>>> If i add them to main template, but don't map - they show their >>>>> content >>>>> "Breadcrumb" and "To top". But i want to add them to main DS and >>>>> make >>>>> two TO >>>>> - as shown first above and other - with new added fields mapped to >>>>> divs. How >>>>> i can hide these divs from first TO and show them only in second >>>>> (third etc) >>>>> TOs? Or... How i can manage my templates/DS/TO to minimize number of >>>>> files/operations/etc? >>>>> -- >>>>> with respect, MaaBoo >>>>> _______________________________________________ >>>>> TYPO3-project-templavoila mailing list >>>>> TYPO3-project-templavoila (AT) lists...netfielders.de >>>>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>>>> >>>>> >>>> >>> _______________________________________________ >>> TYPO3-project-templavoila mailing list >>> TYPO3-project-templavoila (AT) lists...netfielders.de >>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>> >> >> _______________________________________________ >> TYPO3-project-templavoila mailing list >> TYPO3-project-templavoila (AT) lists...netfielders.de >> http://lists.netfielders.de/cgi-bin/...ct-templavoila >> > _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#8
|
|||
|
|||
|
Hi Jörg.,
Thanks to Dimitry on this one. I had no idea until I read his answer. Ron On Aug 21, 2008, at 3:33 PM, Joerg Wagner wrote: > Many thanks Ron, this exactly solves my problem! > I was aware of the possibility to "clear all" and remap, but with > 20+ to > 40 elements to map this is a pain in the ass. So your solution is > VERY > welcome! > Thanks again. > > Cheers, > Jörg. > > > Ron Hall schrieb: >> One modification to my previous instructions on this that makes it a >> little simpler. >> >> This is what I just tested. >> >> 1) Deleted an HTML element in the file used by the TO (this causes >> the >> situation described) >> >> 2) At this point you see the error string. >> >> 3) I then started to map that field to some element in the HTML >> file. (it >> doesn't matter which one.) >> >> 4) During the mapping process I changed the "Action" selector from >> whatever it is (inner, outer, >> etc.) to the empty selection. and hit "Set" >> >> The filed is then unmapped. >> >> Basically the difference from the previous instructions is that you >> don't have to try to get the Ch.Mode button to appear. But the idea >> is >> the same. >> >> Thanks, >> Ron >> >> >> On Aug 21, 2008, at 9:57 AM, Ron Hall wrote: >> >>> Looks like there are two ways to handle this. One is a new approach >>> that I just got from reading Dimity's post on this thread. (Thanks, >>> Dimitry). >>> >>> Previously in this situation I would just hit "Clear all" and remap >>> the entire template. >>> >>> However, I just tested a new approach based on Dimitry's response >>> using the Ch.Mode button. This is what I did. >>> >>> 1) Deleted an HTML element in the file used by the TO (this causes >>> the >>> situation you described) >>> >>> 2) At this point you see the error string but not the Ch.Mode >>> button. >>> >>> 3) I then mapped that field to some element in the HTML file. (it >>> doesn't matter which one.) >>> >>> 4) The Ch.Mode button is then available. Click it and, as Dimitry >>> indicated, click the Ch.Mode button. >>> >>> 5) Change the "Action" selector from whatever it is (inner, outer, >>> etc.) to the empty selection. and hit "Set" >>> >>> The element is then unmapped. >>> >>> Again, thanks Dimitry. This is going to save me a lot of remapping. >>> >>> Ron >>> >>> >>> On Aug 21, 2008, at 4:00 AM, Joerg Wagner wrote: >>> >>>> Hi Ron, >>>> I use the method you described quite often (one DS, multiple HTML >>>> files >>>> & TOs). Sometimes I experience a nasty little problem with that >>>> constellation. Maybe you know a solution: >>>> The DS elements that are not used together with a certain TO and >>>> HTML >>>> file must never get mapped. If I accidentally map one of these >>>> elements, >>>> or if I change an HTML+TO later to not include that element any >>>> more, >>>> there is no way to wipe the associated mapping. TV continues to >>>> show >>>> an >>>> error message for the defect mapping and - as I cannot remap it - >>>> there >>>> seems to be no way to get rid of that. >>>> Any ideas? >>>> >>>> Cheers, >>>> Jörg. >>>> >>>> >>>> >>>> Ron Hall schrieb: >>>>> Hi MaaBoo, >>>>> >>>>> I think the behavior you are experiencing is because you are >>>>> probably >>>>> using the same HTML file for both TOs. In effect the DS fields are >>>>> not >>>>> being used but the HTML you have in the template still shows up >>>>> (as >>>>> expected). >>>>> >>>>> If you make a copy of the HTML file, delete the two items that >>>>> you do >>>>> not want and use that for the basis of the other TOs it will >>>>> work. As >>>>> before you would not map those DS fields on those templates. In >>>>> others >>>>> words you can have one DS but you have to use multiple HTML >>>>> files for >>>>> the TOs. >>>>> >>>>> BTW. What you are trying to do works best with fields that have TS >>>>> driven output. If they are fields which are for the user to place >>>>> content then it is best to do an additional DS. >>>>> >>>>> Hope this helps, >>>>> Ron >>>>> >>>>> On Aug 19, 2008, at 9:53 AM, maaboo wrote: >>>>> >>>>>> Hi! >>>>>> >>>>>> I'm new to TYPO3 and just creating my first site. I learned >>>>>> Futuristic >>>>>> Template Building about DS/TO creation, but i don't understand >>>>>> how >>>>>> i can >>>>>> apply one huge html template with huge number of fields to many >>>>>> TO >>>>>> with >>>>>> different mapped fields. For ex.: >>>>>> >>>>>> <div id ="wcont"> >>>>>> <div id="top"><h1>Top.</h1></div> >>>>>> <div id="mmnu"> >>>>>> <ul class="mnu"> >>>>>> <li class="tmnu"><a href="#">Menu L1 >>>>>> </a> >>>>>> <ul> >>>>>> <li><a href="#">Menu L2</a></li> >>>>>> </ul> >>>>>> </a> >>>>>> </li> >>>>>> </ul> >>>>>> <div id="cont">Text.</div> >>>>>> <div id="foot">Footer.</div> >>>>>> </div> >>>>>> >>>>>> And what if i modify this template adding to it next 2 divs?: >>>>>> >>>>>> <div id="brmnu">Breadcrumb</div> >>>>>> <div id="totop"><a href="#top">To top</a></div> >>>>>> >>>>>> If i add them to main template, but don't map - they show their >>>>>> content >>>>>> "Breadcrumb" and "To top". But i want to add them to main DS and >>>>>> make >>>>>> two TO >>>>>> - as shown first above and other - with new added fields mapped >>>>>> to >>>>>> divs. How >>>>>> i can hide these divs from first TO and show them only in second >>>>>> (third etc) >>>>>> TOs? Or... How i can manage my templates/DS/TO to minimize >>>>>> number of >>>>>> files/operations/etc? >>>>>> -- >>>>>> with respect, MaaBoo >>>>>> _______________________________________________ >>>>>> TYPO3-project-templavoila mailing list >>>>>> TYPO3-project-templavoila (AT) lists...netfielders.de >>>>>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>>>>> >>>>>> >>>>> >>>> _______________________________________________ >>>> TYPO3-project-templavoila mailing list >>>> TYPO3-project-templavoila (AT) lists...netfielders.de >>>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>>> >>> >>> _______________________________________________ >>> TYPO3-project-templavoila mailing list >>> TYPO3-project-templavoila (AT) lists...netfielders.de >>> http://lists.netfielders.de/cgi-bin/...ct-templavoila >>> >> > _______________________________________________ > TYPO3-project-templavoila mailing list > TYPO3-project-templavoila (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-templavoila _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#9
|
|||
|
|||
|
Hi!
Ron Hall wrote: > The element is then unmapped. > > Again, thanks Dimitry. This is going to save me a lot of remapping. I think we need "Unmap" button but I do not know where to fit it... -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/pages/book-rev...garr-reynolds/ _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |