Hello group,
I am planning to make a new image map component for pier. Does anyone know of anything like this pre-existing? If not I need a little bit of help: I want my Image map Pier component to be configured from the settings command so I need to know how to use Magritte to build the GUI. My ideal representation (at least that I have thought of so far) would be a Dictionary. For every Coordinate string there is an image string (file location) to go with it. It is a direct one to one, but the two members of this relationship are both strings. And I want them to wind up getting added to the dictionary. My preference would be that the ImageMap component has a #addCoord:withImage: method that gets called for each entry. I did not see how this could be done in Magritte from the tutorials or source code. Anyone got any ideas? Thanks in advance. _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
> I am planning to make a new image map component for pier. Does
> anyone know > of anything like this pre-existing? If not I need a little bit of > help: No, but there are many add-on components available from <http:// mc.lukas-renggli.ch/pieraddons.html>. This might be an interesting starting point. > I want my Image map Pier component to be configured from the settings > command so I need to know how to use Magritte to build the GUI. My > ideal > representation (at least that I have thought of so far) would be a > Dictionary. For every Coordinate string there is an image string > (file > location) to go with it. It is a direct one to one, but the two > members of > this relationship are both strings. And I want them to wind up > getting > added to the dictionary. My preference would be that the ImageMap > component > has a #addCoord:withImage: method that gets called for each entry. Magritte doesn't know how to add and remove entries from a dictionary. Of course, this can be changed, but I think the easiest would be the following: 1. Create an Area class with described fields for the coordinate and image string (exactly as in the tutorial). 2. Create a subclass of PRStructure with a field to hold the areas. Describe the field with something like: ^ (MAToManyRelationDescription selector: #areas label: 'Areas' priority: 400 default: OrderedCollection new) classes: (OrderedCollection with: Area); yourself That should work (untested). Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
>From: Lukas Renggli <[hidden email]> >Reply-To: "Magritte, Pier and Related Tools ..." <[hidden email]> >To: "Magritte, Pier and Related Tools ..." <[hidden email]> >Subject: Re: New image map component >Date: Tue, 12 Sep 2006 17:48:01 +0200 > >Magritte doesn't know how to add and remove entries from a >dictionary. Of course, this can be changed, but I think the easiest >would be the following: > ><snip> > >That should work (untested). > >Cheers, >Lukas Thanks, I may try that. But first, is there a way to just add strings in a container? I see there is a way to remove a set of objects (e.g. the settings on the commands component), but can I have like one of those box container displays and above it a string and I click add and it goes into the container, and therefor the box? _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
> Thanks, I may try that. But first, is there a way to just add
> strings in a > container? I see there is a way to remove a set of objects (e.g. > the settings on the commands component), but can I have like one of > those box container displays and > above it a string and I click add and it goes into the container, and > therefor the box? No, I don't think so, unless you create your own description/editor that does exactly what you want. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Oh a totally unrelated to my last question note: In pier how does one make
a picture as a link to an internal page? I know you can do *My text>internal page*, but I didn't see how to do this with an image. Thanks _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
> Oh a totally unrelated to my last question note: In pier how does
> one make > a picture as a link to an internal page? I know you can do *My > text>internal page*, but I didn't see how to do this with an image. This is not really possible at the moment, however you can mix XHTML and the Wiki syntax anywhere in the system as long as you only intend to use the pages on the Web. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Yea, that's the problem. I am converting my wife's band web page to pier,
and they used team fussion to build it. It has a lot of pictures that link to internal pages, so I have to duplicate all that. But if there is no way, I guess I can just do some CSS tricks. :) >From: Lukas Renggli <[hidden email]> >Reply-To: "Magritte, Pier and Related Tools ..." <[hidden email]> >To: "Magritte, Pier and Related Tools ..." <[hidden email]> >Subject: Re: Image link >Date: Tue, 12 Sep 2006 19:43:19 +0200 > > > Oh a totally unrelated to my last question note: In pier how does > > one make > > a picture as a link to an internal page? I know you can do *My > > text>internal page*, but I didn't see how to do this with an image. > >This is not really possible at the moment, however you can mix XHTML >and the Wiki syntax anywhere in the system as long as you only intend >to use the pages on the Web. > >Cheers, >Lukas > >-- >Lukas Renggli >http://www.lukas-renggli.ch > > > >_______________________________________________ >SmallWiki, Magritte, Pier and Related Tools ... >https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |