Add >
Select "Type" > Select "Component Class"
Is there some
registration process to get items to appear on that list?
Type: all PRStructure subclasses that are not abstract
Component Class: all PRWidget classes that are not abstract, all
Seaside root components
I tried adding users; that seemed to reuse the
existing user list. At
the same time, I didn't see a direct way to add a user; that is, I had
to add the list, and then hit the add button of the list.
I do not understand.
When you referred to things being addressable through
the web, in
response to my earlier question about security, I had assumed that the
components of a page were not addressable. I see now that most
components, if included through +path/component+, are addressable (and
presumably can be viewed separately if one is so inclined).
Yes, if you have the permissions you can individually navigate to the
components, given that there is a link or that you know the URL.
Typically components are not linked directly though, but embedded into
some other page.
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+
Let's see if I
understand.
Do parameters like |foo=bar get translated into method calls foo: "bar"?
And |foo=bar|with=blah becomes sends of foo: "bar" and then with:
"blah", rather than foo: "bar" with: "blah"?
No method calls. Value links (PRValueLink) are just a special kind of
link that embeds some dynamically created content, similar to a
component but without state. See the documentation at
<http://bit.ly/294VHv>.
These are directed to my component, not the children?
But the thing
with +value:children...+ is a PRPage, not my component, so that won't
work. So maybe my component should subclass PRPage?
PRPage is a model object.
WAComponent is a view object.
See <http://www.piercms.com/doc> for details.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch