If I have a seaside component and want to make it a
page in pier, how do
I do that?
Add > Select "Component" > Select "Component Class"
What if I want to make it a part of a page?
You embed it into the page with an embed-link:
A Seaside component: +/path/to/my/component+
I have a feeling the pier way is much different.
Judging by how
PRDistribution sets things up, it looks as if components are wrapped in
PRComponent and have a component class. But I've been unable to see
where actual rendering happens, or where state goes.
PRDistribution creates an initial model from a script. Doing it from
the web goes through a series of command objects, but in the end you
have the same model. State is stored in the components and rendering
happens in #renderContentsOn: of the components, just as in default
Seaside.
The concrete problem motivating these questions is
that I want to
display a list of files whose name match a certain pattern in a certain
directory. The pattern and the directory could be hardcoded, but it
would be more interesting if they were editable in the web.
You can do this with something like this:
+value:children|link|target=/path/to/directory|select=File+
This is all likely to get more complex as I extract
relations between
files, parse the contents of the files and show information based on the
parse. But for now I'm just working on the "simple" stuff.
For this requirement you presumably require to add some code of you own.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch