Example Usage | HTML CODE SEGMENT
BEFORE - ORIGINAL FOOTER CODE Some simple links
<div id="footer"> <a href="#">link 1</a> <a href="#">link 2</a> <a href="#">link 3</a> <a href="#">link 4</a> </div>
AFTER
<div id="footer"> <$section category="Footer Links" initrows="4" tagid="footer"> <a href="#" $link1 edittext="Y">link []</a> </$section> </div>
REPEATER - THE SECTION SHORTCUT
The section tag can also be used as follows. It repeats the contents of the element it is inserted into:
<div id="footer" $repeat category="Footer Links" initrows="4" tagid="footer"> <a href="#" $link1 edittext="Y">link []</a> </div>
SPECIAL NOTES
Consider the following HTML snippet:
<a href="flename.jpg"><img src="filename.jpg"></a>
Here, both the URL and the Image TAGs are referencing the same file name. We must use the $image tag as follows:
<a href="flename.jpg"><img src="filename.jpg" $image1></a>
but what about the URL? Here we can also use the $image TAG as follows:
<a href="$image1"><img src="filename.jpg" $image1></a>
What's actually happenig here is that when the compiler sees the $image1 TAG enclosed in double quotes, "$image1" it knows that you're wanting to use the value of the image_1 field, not set the value.
When it sees $image1 alone by itself, it knows you want to set the value of the image1 from the value of the <img tags's SRC parameter.
POUND SIGNS
Any element that is inside any type of section, for example, URL's require a pound sign as follows:
<a href="#">Text</a>
must be doubled as follows, or it will create an error:
<a href="##">Text</a>
|