separate limiter values with a pipe (|)2019 Community Moderator ElectionFinalization in Pipes-2.1.0 packagebin data depending on values of a separate columnlimit jekyll posts to specified folderMagento2: wrong config data value per storeMagento2: is there a product list limit?Magento2 - Hide price if value is 0how to Pipe Magento2 logs to STDOUT?Magento incorrectly reporting memory limitMagento 2 import - value for 'categories' attribute contains incorrect valueSet attribute value in magento 2

Turning a hard to access nut?

Splitting fasta file into smaller files based on header pattern

pipe commands inside find -exec?

What are rules for concealing thieves tools (or items in general)?

How can an organ that provides biological immortality be unable to regenerate?

How can I create URL shortcuts/redirects for task/diff IDs in Phabricator?

Hackerrank All Women's Codesprint 2019: Name the Product

Unfrosted light bulb

label a part of commutative diagram

How do researchers send unsolicited emails asking for feedback on their works?

Weird lines in Microsoft Word

How to balance a monster modification (zombie)?

Don't understand why (5 | -2) > 0 is False where (5 or -2) > 0 is True

"Marked down as someone wanting to sell shares." What does that mean?

Why is indicated airspeed rather than ground speed used during the takeoff roll?

How do hiring committees for research positions view getting "scooped"?

How to find the largest number(s) in a list of elements?

Air travel with refrigerated insulin

What will the french man say?

Is there any common country to visit for uk and schengen visa?

Why is participating in the European Parliamentary elections used as a threat?

Is xar preinstalled on macOS?

10 year ban after applying for a UK student visa

I got the following comment from a reputed math journal. What does it mean?



separate limiter values with a pipe (|)



2019 Community Moderator ElectionFinalization in Pipes-2.1.0 packagebin data depending on values of a separate columnlimit jekyll posts to specified folderMagento2: wrong config data value per storeMagento2: is there a product list limit?Magento2 - Hide price if value is 0how to Pipe Magento2 logs to STDOUT?Magento incorrectly reporting memory limitMagento 2 import - value for 'categories' attribute contains incorrect valueSet attribute value in magento 2










6















I am trying to work out how I can separate my limiter values with a pipe (|)



Ideally, the end result will be View: 48 | 120 | ALL, at present I have been able to get View: 48 120 ALL



This is what I have used so far:



<div class="field limiter">
<label class="label" for="limiter">
<span><?= /* @escapeNotVerified */ __('View:') ?></span>
</label>
<div class="control">
<?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
<a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
class="selected"<?php endif ?>>
<?php /* @escapeNotVerified */ echo $_limit ?>
</a>
<?php endforeach; ?>
</div>
</div>









share|improve this question













migrated from magento.stackexchange.com 14 hours ago


This question came from our site for users of the Magento e-Commerce platform.






















    6















    I am trying to work out how I can separate my limiter values with a pipe (|)



    Ideally, the end result will be View: 48 | 120 | ALL, at present I have been able to get View: 48 120 ALL



    This is what I have used so far:



    <div class="field limiter">
    <label class="label" for="limiter">
    <span><?= /* @escapeNotVerified */ __('View:') ?></span>
    </label>
    <div class="control">
    <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
    <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
    class="selected"<?php endif ?>>
    <?php /* @escapeNotVerified */ echo $_limit ?>
    </a>
    <?php endforeach; ?>
    </div>
    </div>









    share|improve this question













    migrated from magento.stackexchange.com 14 hours ago


    This question came from our site for users of the Magento e-Commerce platform.




















      6












      6








      6








      I am trying to work out how I can separate my limiter values with a pipe (|)



      Ideally, the end result will be View: 48 | 120 | ALL, at present I have been able to get View: 48 120 ALL



      This is what I have used so far:



      <div class="field limiter">
      <label class="label" for="limiter">
      <span><?= /* @escapeNotVerified */ __('View:') ?></span>
      </label>
      <div class="control">
      <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
      <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
      class="selected"<?php endif ?>>
      <?php /* @escapeNotVerified */ echo $_limit ?>
      </a>
      <?php endforeach; ?>
      </div>
      </div>









      share|improve this question














      I am trying to work out how I can separate my limiter values with a pipe (|)



      Ideally, the end result will be View: 48 | 120 | ALL, at present I have been able to get View: 48 120 ALL



      This is what I have used so far:



      <div class="field limiter">
      <label class="label" for="limiter">
      <span><?= /* @escapeNotVerified */ __('View:') ?></span>
      </label>
      <div class="control">
      <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
      <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
      class="selected"<?php endif ?>>
      <?php /* @escapeNotVerified */ echo $_limit ?>
      </a>
      <?php endforeach; ?>
      </div>
      </div>






      magento2 categories






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      Paul 'Whippet' McGuanePaul 'Whippet' McGuane

      1,54883266




      1,54883266




      migrated from magento.stackexchange.com 14 hours ago


      This question came from our site for users of the Magento e-Commerce platform.









      migrated from magento.stackexchange.com 14 hours ago


      This question came from our site for users of the Magento e-Commerce platform.
























          2 Answers
          2






          active

          oldest

          votes


















          2














          It can be easily done by CSS.



          I always prefer CSS for this kind of tweaks.



          .limiter .control a + a::before 
          content: "


          It will Add a Pipe separator between a tag



          Demo can be found at Fiddle



          Hope above will help!






          share|improve this answer























          • didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

            – Paul 'Whippet' McGuane
            yesterday











          • @Paul'Whippet'McGuane, Glad to know :)

            – Pawan
            yesterday











          • causes a slight styling issue but I am hopefully I can fix that

            – Paul 'Whippet' McGuane
            yesterday






          • 1





            Yes, you can add more class in hierarchy to avoid issue.

            – Pawan
            yesterday











          • already solved with some additional attributes added. perfect solution

            – Paul 'Whippet' McGuane
            yesterday


















          1














          Try using PHP implode(), check below modified code:



          <div class="field limiter">
          <label class="label" for="limiter">
          <span><?= /* @escapeNotVerified */ __('View:') ?></span>
          </label>
          <div class="control">
          <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
          <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
          class="selected"<?php endif ?>>
          <?php /* @escapeNotVerified */ echo implode("|",$_limit) ?>
          </a>
          <?php endforeach; ?>
          </div>
          </div>





          share|improve this answer























          • it does not like, gave me a screen full of errors :(

            – Paul 'Whippet' McGuane
            yesterday











          • how about removing implode echo "|",$_limit ? have you tried

            – fmsthird
            yesterday










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55215835%2fseparate-limiter-values-with-a-pipe%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          It can be easily done by CSS.



          I always prefer CSS for this kind of tweaks.



          .limiter .control a + a::before 
          content: "


          It will Add a Pipe separator between a tag



          Demo can be found at Fiddle



          Hope above will help!






          share|improve this answer























          • didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

            – Paul 'Whippet' McGuane
            yesterday











          • @Paul'Whippet'McGuane, Glad to know :)

            – Pawan
            yesterday











          • causes a slight styling issue but I am hopefully I can fix that

            – Paul 'Whippet' McGuane
            yesterday






          • 1





            Yes, you can add more class in hierarchy to avoid issue.

            – Pawan
            yesterday











          • already solved with some additional attributes added. perfect solution

            – Paul 'Whippet' McGuane
            yesterday















          2














          It can be easily done by CSS.



          I always prefer CSS for this kind of tweaks.



          .limiter .control a + a::before 
          content: "


          It will Add a Pipe separator between a tag



          Demo can be found at Fiddle



          Hope above will help!






          share|improve this answer























          • didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

            – Paul 'Whippet' McGuane
            yesterday











          • @Paul'Whippet'McGuane, Glad to know :)

            – Pawan
            yesterday











          • causes a slight styling issue but I am hopefully I can fix that

            – Paul 'Whippet' McGuane
            yesterday






          • 1





            Yes, you can add more class in hierarchy to avoid issue.

            – Pawan
            yesterday











          • already solved with some additional attributes added. perfect solution

            – Paul 'Whippet' McGuane
            yesterday













          2












          2








          2







          It can be easily done by CSS.



          I always prefer CSS for this kind of tweaks.



          .limiter .control a + a::before 
          content: "


          It will Add a Pipe separator between a tag



          Demo can be found at Fiddle



          Hope above will help!






          share|improve this answer













          It can be easily done by CSS.



          I always prefer CSS for this kind of tweaks.



          .limiter .control a + a::before 
          content: "


          It will Add a Pipe separator between a tag



          Demo can be found at Fiddle



          Hope above will help!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          PawanPawan

          1362




          1362












          • didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

            – Paul 'Whippet' McGuane
            yesterday











          • @Paul'Whippet'McGuane, Glad to know :)

            – Pawan
            yesterday











          • causes a slight styling issue but I am hopefully I can fix that

            – Paul 'Whippet' McGuane
            yesterday






          • 1





            Yes, you can add more class in hierarchy to avoid issue.

            – Pawan
            yesterday











          • already solved with some additional attributes added. perfect solution

            – Paul 'Whippet' McGuane
            yesterday

















          • didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

            – Paul 'Whippet' McGuane
            yesterday











          • @Paul'Whippet'McGuane, Glad to know :)

            – Pawan
            yesterday











          • causes a slight styling issue but I am hopefully I can fix that

            – Paul 'Whippet' McGuane
            yesterday






          • 1





            Yes, you can add more class in hierarchy to avoid issue.

            – Pawan
            yesterday











          • already solved with some additional attributes added. perfect solution

            – Paul 'Whippet' McGuane
            yesterday
















          didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

          – Paul 'Whippet' McGuane
          yesterday





          didn't even come to my mind to use less, ive made a slight change on the above but have achieved the desired result

          – Paul 'Whippet' McGuane
          yesterday













          @Paul'Whippet'McGuane, Glad to know :)

          – Pawan
          yesterday





          @Paul'Whippet'McGuane, Glad to know :)

          – Pawan
          yesterday













          causes a slight styling issue but I am hopefully I can fix that

          – Paul 'Whippet' McGuane
          yesterday





          causes a slight styling issue but I am hopefully I can fix that

          – Paul 'Whippet' McGuane
          yesterday




          1




          1





          Yes, you can add more class in hierarchy to avoid issue.

          – Pawan
          yesterday





          Yes, you can add more class in hierarchy to avoid issue.

          – Pawan
          yesterday













          already solved with some additional attributes added. perfect solution

          – Paul 'Whippet' McGuane
          yesterday





          already solved with some additional attributes added. perfect solution

          – Paul 'Whippet' McGuane
          yesterday













          1














          Try using PHP implode(), check below modified code:



          <div class="field limiter">
          <label class="label" for="limiter">
          <span><?= /* @escapeNotVerified */ __('View:') ?></span>
          </label>
          <div class="control">
          <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
          <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
          class="selected"<?php endif ?>>
          <?php /* @escapeNotVerified */ echo implode("|",$_limit) ?>
          </a>
          <?php endforeach; ?>
          </div>
          </div>





          share|improve this answer























          • it does not like, gave me a screen full of errors :(

            – Paul 'Whippet' McGuane
            yesterday











          • how about removing implode echo "|",$_limit ? have you tried

            – fmsthird
            yesterday















          1














          Try using PHP implode(), check below modified code:



          <div class="field limiter">
          <label class="label" for="limiter">
          <span><?= /* @escapeNotVerified */ __('View:') ?></span>
          </label>
          <div class="control">
          <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
          <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
          class="selected"<?php endif ?>>
          <?php /* @escapeNotVerified */ echo implode("|",$_limit) ?>
          </a>
          <?php endforeach; ?>
          </div>
          </div>





          share|improve this answer























          • it does not like, gave me a screen full of errors :(

            – Paul 'Whippet' McGuane
            yesterday











          • how about removing implode echo "|",$_limit ? have you tried

            – fmsthird
            yesterday













          1












          1








          1







          Try using PHP implode(), check below modified code:



          <div class="field limiter">
          <label class="label" for="limiter">
          <span><?= /* @escapeNotVerified */ __('View:') ?></span>
          </label>
          <div class="control">
          <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
          <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
          class="selected"<?php endif ?>>
          <?php /* @escapeNotVerified */ echo implode("|",$_limit) ?>
          </a>
          <?php endforeach; ?>
          </div>
          </div>





          share|improve this answer













          Try using PHP implode(), check below modified code:



          <div class="field limiter">
          <label class="label" for="limiter">
          <span><?= /* @escapeNotVerified */ __('View:') ?></span>
          </label>
          <div class="control">
          <?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
          <a data-role="limiter" href="#" data-value="<?php /* @escapeNotVerified */ echo $_key ?>"<?php if ($block->isLimitCurrent($_key)): ?>
          class="selected"<?php endif ?>>
          <?php /* @escapeNotVerified */ echo implode("|",$_limit) ?>
          </a>
          <?php endforeach; ?>
          </div>
          </div>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          fmsthirdfmsthird

          1135




          1135












          • it does not like, gave me a screen full of errors :(

            – Paul 'Whippet' McGuane
            yesterday











          • how about removing implode echo "|",$_limit ? have you tried

            – fmsthird
            yesterday

















          • it does not like, gave me a screen full of errors :(

            – Paul 'Whippet' McGuane
            yesterday











          • how about removing implode echo "|",$_limit ? have you tried

            – fmsthird
            yesterday
















          it does not like, gave me a screen full of errors :(

          – Paul 'Whippet' McGuane
          yesterday





          it does not like, gave me a screen full of errors :(

          – Paul 'Whippet' McGuane
          yesterday













          how about removing implode echo "|",$_limit ? have you tried

          – fmsthird
          yesterday





          how about removing implode echo "|",$_limit ? have you tried

          – fmsthird
          yesterday

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55215835%2fseparate-limiter-values-with-a-pipe%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          He _____ here since 1970 . Answer needed [closed]What does “since he was so high” mean?Meaning of “catch birds for”?How do I ensure “since” takes the meaning I want?“Who cares here” meaningWhat does “right round toward” mean?the time tense (had now been detected)What does the phrase “ring around the roses” mean here?Correct usage of “visited upon”Meaning of “foiled rail sabotage bid”It was the third time I had gone to Rome or It is the third time I had been to Rome

          Bunad

          Færeyskur hestur Heimild | Tengill | Tilvísanir | LeiðsagnarvalRossið - síða um færeyska hrossið á færeyskuGott ár hjá færeyska hestinum