tags in webvanta

轮询:
<ul> <w:kb:item:each type="staffmember" sort="name asc"> 
<li><w:name />, <w:job_title /></li> </w:kb:item:each> </ul>
<w:path> is used to generate links to the listed items.

<ul>
  <w:kb:item:each category='Cats'>
    <li><w:name /></li>
  </w:kb:item:each>
</ul>

in this w:kb:item:each statement, you could provide a comma-separated list of category names (e.g., Cats, Dogs, Birds) and it will display all items in any of those categories.

In an iterator loop, or in a page context that sets the category, you can access the current category as “current”. For example, this code lists all of the items in each top-level category:

<w:kb:category:each>
  <h2>Category: <w:name /></h2>
  <ul>
    <w:kb:item:each category='current'>
      <li><w:name /></li>
    </w:kb:item:each>
  </ul>
</w:kb:category:each>

each item can include field set- a store can include different coupons and menus

轮询related items和fieldset时, 用in.id 或者 in.path来获取id和url—居然是通过在线帮助问来的,documentation里没有!

<w:for_each in=”events”>
<h3><a href=”../event/<w:get name=’in.id’ />”><w:get name=’in.name’ /></a></h3>
<h3><a href=”<w:get name=’in.path’ />”><w:get name=’in.name’ /></a></h3>

</w:for_each>

 

excerpt 的作用是一个brief introduction, 可以用作fully expend或者点击link之前的展示。比如后接read more

webvanta的gallery 用tags来区分

加入social media, live help给code

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s