Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 03 2018 11:28
    marcinczeczko labeled #402
  • Apr 03 2018 11:28
    marcinczeczko labeled #402
  • Apr 03 2018 11:28
    marcinczeczko milestoned #402
  • Apr 03 2018 11:28
    marcinczeczko milestoned #402
  • Apr 03 2018 11:27
    marcinczeczko opened #402
  • Apr 03 2018 11:27
    marcinczeczko opened #402
  • Apr 03 2018 11:19
    marcinczeczko commented #396
  • Apr 03 2018 11:18
    marcinczeczko edited #396
  • Apr 03 2018 11:18
    marcinczeczko edited #396
  • Apr 03 2018 11:17

    marcinczeczko on 398-config-defaults

    (compare)

  • Apr 03 2018 11:17

    marcinczeczko on backpressure-and-configs

    Reorganized standaolone & examp… Merge branch 'milestone/backpre… Set a version of target release and 16 more (compare)

  • Apr 03 2018 11:17
    marcinczeczko closed #400
  • Apr 03 2018 07:49
    marcinczeczko synchronize #400
  • Apr 03 2018 07:49

    marcinczeczko on 398-config-defaults

    Set target version for this bra… Merge branch 'milestone/backpre… (compare)

  • Apr 03 2018 07:48

    marcinczeczko on backpressure-and-configs

    Set target version for this bra… (compare)

  • Apr 03 2018 07:44
    marcinczeczko closed #398
  • Apr 03 2018 07:44
    marcinczeczko closed #398
  • Apr 03 2018 07:44
    marcinczeczko commented #398
  • Apr 03 2018 07:40
    marcinczeczko synchronize #400
  • Apr 03 2018 07:40

    marcinczeczko on 398-config-defaults

    Documentation fix. #394 Added encoding of uri para… Write a test case for requestin… and 5 more (compare)

Kofi Boakye
@2kodes
hi @Skejven done that. though i hope i did it in the correct repo :)
Tomasz Michalak
@tomaszmichalak
@2kodes Hi, we answered your questions on google group
can you please close questions that are answered ?
Kofi Boakye
@2kodes
@tomaszmichalak oh ok..will check and do.. didnt know it was pending
Tomasz Michalak
@tomaszmichalak
thank you :)
Kofi Boakye
@2kodes
do i do that br marking an answer as the "best answer"??
Tomasz Michalak
@tomaszmichalak
yep
Kofi Boakye
@2kodes
ok
done..thanks
Kofi Boakye
@2kodes
hello
Tomasz Michalak
@tomaszmichalak
hello
how about 1.4 release, have you checked it?
we would check distribution size this week and fix it probably in 1.4.1
Kofi Boakye
@2kodes
yes its the same. the two pictures i showed in the google group are of the 1.4 standalone/stack and the 1.4 example project... @tomaszmichalak
anyways thanks..will manually take out the ones i dont need or which are not needed....
the jars i mean
Kofi Boakye
@2kodes
took out the jruby jar....22mb.. slimmed things down appreciably
Maciej Laskowski
@malaskowski
hi @2kodes sorry for such long time on responsing https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/knotx/5jo-FwJufqU but I just got back from vacation - I've answered in the topic, could you attach there information on how to reproduce the situation you described?
Kofi Boakye
@2kodes
hi , i have answered and attached a gist @Skejven
Harish Kumar
@harishkumarnangal
hi, any example by which a file can be placed onto S3 bucket
30 replies
sankar raman
@sankar_raman_twitter
Hi, how to write knotx component inside another knotx component ? we are using handle bars in HTML
sankar raman
@sankar_raman_twitter
related to knotx-template-engine
Maciej Laskowski
@malaskowski
hi @sankar_raman_twitter - it is not possible to nest snippets (components) with Knot.x, try to divide complex components into smaller ones, components within single page share context and data
sankar raman
@sankar_raman_twitter

hi @malaskowski Thanks for your response. Consider we have search products page which will call third party services(via Knotx) to get the list of products based on user keyword. we have search component to show list of products.

We need to show "add to cart "component(Getting list of sellers via Knotx) for each product. So we added "add to cart" inside search component.

Please provide ur suggestion how to implement this.

Maciej Laskowski
@malaskowski

If I understand correctly, you have a listing component, that displays a list of products by iterating product by product. Each product item contains an "add to cart" component, that is more complex and requires additional data to work (list of sellers).

Let's distinguish "component" (delivers functionality like product-card or add-to-cart-button) and "fragment" (a part of markup rendered by Knot.x using template engine) first.

One of the approaches would be actually doing the opposite I wrote above. In the latest Knot.x you may combine several components into a bigger fragment, so that your fragment pseudo markup would look like:

<fragment>
  <product-listing>
    for products in list
      <product-card><add-to-cart-button/></product-card>
    end
  <product-listing>
</fragment>

Just note, that processing such a big fragment might be resources and time-consuming, make sure you leverage cache. You may also address this by doing more work on the data before it goes to the template engine module.

Since the Knot.x 2 version you may filter and combine data from multiple sources, even when one source depends on another (e.g. sellers list depending on product details). Using Actions and Tasks you may prepare your data in a way, rendering this markup behaves as the data came from a single source.

sankar raman
@sankar_raman_twitter
Thanks for your quick response @malaskowski
Tomasz Michalak
@tomaszmichalak
@sankar_raman_twitter Which version of Knot.x do you use?
sankar raman
@sankar_raman_twitter

Hi All. Hope everyone is fine here. I am facing weird issue on Knotx. Below snippet is added in catalogtitle.jspf which is added in head section of page.

Issue: Below snippet in JSPF file is causing all metatags moving inside body tag from head section. When I remove this snippet, all meta tags are coming to head section.

Snippet:

<knotx:snippet data-knotx-knots="services,handlebars" data-knotx-service=“catalog” data-knotx-params="{"context": ${contextModel.contextJson}}" type="text/knotx-snippet">
{{#if _result.success}}
<title catalog-title="{{_result.catalog.title}}">{{_result.catalog.title}}</title>
<meta property=“catalogId" content="{{_result.catalog.id}}"/>
{{else}}
<title>${catalogModel.defaultTitle}</title>
{{/if}}
</knotx:snippet>

1 reply