2B9A75E094B1481CA4C981324462D53F
  • Internet
  • 14.02.2018
  • EN

Simply RedDot: "Blockmark Usages"

written by Jian Huang, 2. April 2013
 

I hope the following blockmark usage examples would help clarify the many blockmarks and associated usages.

!-- do not need conditional, no output if empty -->
<%stf_teaser%>
 
 
<!IoRangeConditional>
<div class="orange">
    <%stf_teaser%>
</div>
<!/IoRangeConditional>
 
 
<!IoRangeRedDotMode>
<!-- this is shown in SmartEdit, either open or closed
<div class="reddot-area">
    <!IoRedDotOpenPage>
    <!IoRangeNoEditMode>
    <!-- this is shown when this section is closed in SmartEdit -->
    <div class="reddot-closed">[Open to Edit]</div>
    <!/IoRangeNoEditMode>
    <!IoRangeRedDotEditOnly>
    <!-- this is shown when this section is open in SmartEdit -->
    <div class="reddot-opened">[Close to Edit]</div>
    <!/IoRangeRedDotEditOnly>
</div>
<!/IoRangeRedDotMode>
 
 
<!--
if you want to produce repeatable HTML with variable content,
and the links go to the DIFFERENT sub folder
 
<ul>
    <li><a href="/products/link1.htm">link 1</a></li>
    <li><a href="/news/link2.htm">link 2</a></li>
    <li><a href="/about-us/link3.htm">link 3</a></li>
</ul>
-->
 
<ul>
    <!IoRangeDynLink>
    <li><%anc_dyn_links%></li>
    <!/IoRangeDynLink>
</ul>
 
 
<!--
if you want to produce repeatable HTML with variable content,
and the links go to the SAME sub folder
 
<ul>
    <li><a href="/products/link1.htm">link 1</a></li>
    <li><a href="/products/link2.htm">link 2</a></li>
    <li><a href="/products/link3.htm">link 3</a></li>
</ul>
-->
 
<ul>
    <!IoRangeList>
    <li><%lst_links%></li>
    <!/IoRangeList>
</ul>

Comments

Joel Kinzel April 5, 2013 at 3:08 PM
Jian,
If you use the "Shadow List" method (to reference instead of connect) will the pages end up in different directories or the same?

Jian Huang May 9, 2013 at 9:33 AM
Hi Joel,
Assuming the pages are connected to only 1 list, and the other lists are simply referencing, then the pages will end up in 1 location only.


Source: Blockmark Usages

© copyright 2013 by Jian Huang

       

Downloads

 

QuickLinks

 

Channel