Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
fleetadmiralj #1
Contribute Acting strange - template parameters withrepeating regions
Basically what I'm trying to achieve is that there is a repeating region on a
page, and each region is supposed to alternate colors. To achieve this, the
regions with the colors are put into a div which has a background color applied
to it. To do this, I have created two expressions, one to check to see if it's
an even numbered region, and if so, to open the div, and another to close the
div. That looks like this:
[Q]
<!-- TemplateBeginRepeat name="Article" -->
@@((_index & 1) ? shade : noshade )@@
stuff
@@((_index & 1) ? shadeend : noshade )@@
<!-- TemplateEndRepeat -->
[/Q]
At the top, I have three template parameters to go along with these:
[Q]
<!-- TemplateParam name="shade" type="text" value="<div>" -->
<!-- TemplateParam name="shadeend" type="text" value="</div>" -->
<!-- TemplateParam name="noshade" type="text" value="" -->
[/Q]
Which look like this on the actual pages:
[Q]
<!-- InstanceParam name="shade" type="text" value="<div>" -->
<!-- InstanceParam name="shadeend" type="text" value="</div>" -->
<!-- InstanceParam name="noshade" type="text" value="" -->
[/Q]
The odd thing is that, when I add an editable region, something weird occurs
with the template parameters and they end up looking like this:
[Q]
<!-- InstanceParam name="shade" type="text" value="<div>" --><!--
InstanceParam name="shadeend" type="text" value="</div>" -->->
<!-- InstanceParam name="noshade" type="text" value="" -->
[/Q]
And that, of course, results in having a nice "->" showing up at the top of my
page. The repeating region appears to work. It changes background colors just
like it should, but I have no idea why it's throwing in the "->" at the end.
fleetadmiralj Guest
-
Template Editable Regions
I have a problem with a template in dreamweaver 8 which when I apply it to a page and insert into that editable region the flash .swf file it does... -
DES acting strange
I use the DES_ENCRYPT and DES_DECRYPT with the string 'sfG3853ncr1pt' I can't seem to encrypt the number 227968199 because I tried several times... -
ASP Response.write() is acting strange.
Hey everyone! My problem thusfar is this: I have my asp page returning variables to flash no problem. However, the last Response.write()... -
Coldfusion 7/Dreamweaver Acting Strange
I have a client who is trying to get Coldfusion up and running and has run into some problems. The history: Client had XP Home installed, CF7... -
TIFF images acting strange
Please tell my I'm not crazy. Create a TIF image, 300 dpi Bitmap with the image in the right side with a bunch of white space to the left. Import...



Reply With Quote

