Upgrade to Pro — share decks privately, control downloads, hide ads and more …

a-blog cms 表示件数によってレイアウトを変更するにはどうする?

a-blog cms 表示件数によってレイアウトを変更するにはどうする?

Kazumichi Yamamoto

June 09, 2020
Tweet

More Decks by Kazumichi Yamamoto

Other Decks in Technology

Transcript

  1. <!-- BEGIN_IF [{iNum}/eq/1/_and_/{itemsTo}/neq/4] --> <li class="acms-col-12"> <!-- ELSE_IF [{iNum}/eq/2/_and_/{itemsTo}/eq/2] -->

    <li class="acms-col-12"> <!-- ELSE --> <li class="acms-col-6"> <!-- END_IF --> ͜Ε͕ॻ͚Ε͹؆୯ͳ࿩ͳͷͰ͕͢
  2. <!-- BEGIN_IF [{iNum}/eq/1/_and_/{itemsTo}/neq/4] --> <li class="acms-col-12"> <!-- ELSE_IF [{iNum}/eq/2/_and_/{itemsTo}/eq/2] -->

    <li class="acms-col-12"> <!-- ELSE --> <li class="acms-col-6"> <!-- END_IF --> ͜Ε͕ॻ͚Ε͹؆୯ͳ࿩ͳͷͰ͕͢ ࢒೦ͳ͕ΒͰ͖·ͤΜɻ
  3. <!-- BEGIN_SetRendered id="li-1st" --> <!-- BEGIN_IF [{itemsTo}/neq/4] --> <li class="acms-col-12">

    <!-- ELSE --> <li class="acms-col-6"> <!-- END_IF --> <!-- END_SetRendered --> FOUSZMPPQͷ֎ଆʹ4FU3FOEFSFEΛॻ͖·͢ <!-- BEGIN_SetRendered id="li-2nd" - <!-- BEGIN_IF [{itemsTo}/eq/2] --> <li class="acms-col-12"> <!-- ELSE --> <li class="acms-col-6"> <!-- END_IF --> <!-- END_SetRendered -->
  4. <!-- BEGIN_IF [{iNum}/eq/1] --> <!-- GET_Rendered id="li-1st" --> <!-- ELSE_IF

    [{iNum}/eq/2] --> <!-- GET_Rendered id="li-2nd" --> <!-- ELSE --> <li class="acms-col-6"> <!-- END_IF --> ͜Ε͕ॻ͚Ε͹؆୯ͳ࿩ͳͷͰ͕͢