I brought up the topic twice already. There is always a few months in between. The topic
back then was the parameterization of component links when embedding them into a pier
page.
The first problem did Lukas already solve. If I provide a description with parameterName
in my component I can get the parameterValue in my component. A
MyMaComponent class>>descriptionChild
^ MAStringDescription new
parameterName: 'child';
accessor: #child;
label: 'Child component';
priority: 100;
yourself
enables me to specify
+mycomponent|child=title+
on a page and the component will get the "title" value through the child:
setter. That is really nice. But the origin of my problem is a step further. In my last
project I had big trouble accomplishing the wanted design by using renderers and
componentClasses. I wanted to have a more freely doable design.
So the idea was to have a wrapper component around a MAContainerComponent that has the
child description. With the child parameter I could select the child of the internal
MAContainerComponent to display. Unfortunately the component mycomponent I get by doing
+mycomponent|child=title+
+mycomponent|child=abstract+
are not the same on one page. Is there a way to specify that I want to use the identical
component if the embedded label (mycomponent) is the same? May I did something wrong but I
always get different objects and it does make sense to me . Would be nice if this would
bedoable. Otherwise I guess I need to do my own component-per-page-cache.
Any hints appreciated as always.
Norbert