I started a web site ( http://www.theRant.info ) with a friend of mine to a:) have an outlet for my insane political writing, and b:) Teach myself HTML. Well it’s all coming along slowly but I want to know what is the current limitation if City Script? Can you do, “If … Then “ kinds of things? Speciffically I want to put different sets of varibals into articles based on fields like author (If author = Godzilla Then var x). “If … Else” dosen’t do the trick.
If you put the author, "Godzilla" into the keyword field you might get somewhere. Some CityScripters have done wonders with and/not/or conditions and keywords.
Specifically I want to add certain variables like a copyright notice, a mail to link, a link to the authors homepage, and a few other things. I am using the extra1 and 2 fields right now but I have some other plans for those fields and I want to free them up. (our site has a number of different contributors)
I have had a similar problem with different books which required different links to specific series and it is my experience that different templates is the easiest, but not the best, solution at this stage in CDs evolution. Several different templates with only minor differences takes less than two minutes to set up (after you have the first one ready of course), so why fight with work-arounds, that very well may create undesirable side effects? (Example in Danish here: http://www.baskerville.dk/Matematik/StartsideMatematik.html)
Good point. I have wanted to try Darren Collins idea of using variables to create tables / boxes on the fly. I have implemented this technique and I think it's a big improvement. I am going to use a combination of variables and templates to get the desired effect.
Fog Creek Home