I have a subclass of PRMenuWidget which renders, however it now renders
with paragraphs, where it did not before.
Previously components were rendered by the PEViewRenderer which
maintains "withinContent", however now components are rendered by
"PREmbeddedRenderer" and have no knowledge of "withinContent"
is this a bug? Or is my menu widget abusing the new way of doing things?
Keith
I am still struggling to work PRDocuments.... I have a layout, I put a
PRDocument in it...
and the code....
document
^ self documentOf: self context structure
returns the structure of the PRDocument....
surely it should be
^ self documentOf: (PRCurrentContext value structure)
Keith
Hi everybody,
I have a question with PRMenuWidget. I have a menu where I have background
images for each menu item and the name of the link is inside the image. For
example, I have a home.gif where that picture has the background image with
the "HOME" written inside.
If I do this (in settings):
- *Contact us>/Contact us*
PRMenuWidget puts me in menu ul li the name ("contact us) and there is the
href. However, what I want is:
- Don't show any text in menu ul li
- The href I want it for the whole menu ul li (the whole div) not only the
text. I mean, I want that the user can click all over the menu background
image.
Now, the question is, can I do this with PRMenuWidget ? If true, how ? If
not, what should I do ? make my own menu seaside component ?
Thanks in advance for the help.
Mariano
I discover that it is possible to add #isEditable to a PRWidget, so that
the setting will appear in the Edit rather than the settings page. A
nice bug I think.
However, isEditable's are not currently ignored from the
settingsDescription.
Keith
Hi folks,
I have a menu with images as background and the first and the last ones are
different from the others (the one that are between them).
See for example this:
http://www.templatesbox.com/premium-templates/website-templates/template213…
"About us" and "Contacts" are different from "adventure guide", "tours
review" and "bike news".
How can I specify different classes for them ?
this is my css:
I have something like this in my css:
.menu ul {
margin: 0;
margin-top: 0em;
padding-bottom: 0em;
list-style-type: none;
}
.menu ul li {
float: left;
display: inline;
margin: 0px;
margin-right: 0px;
list-style-type: none;
background-image: url(menutemplate0.gif);
border: 0px;
width: 170px;
height: 40px;
text-align: center;
align: center;
vertical-align: middle
line-height: 40px;
}
.menu li a {
align: center;
padding-left: 30px;
}
Thanks in advance,
Mariano
guess I can do it using memento (by adding MACheckedMemento child with
overloaded #commit and accordingly overloading #mementoClass in my class).
But maybe there is a simpler way?
... Thank you :)
--
Dennis Schetinin
I have a problem with a Bag instance.
When execute this code :
initialize
bag:= Bag new.
bag add: 'Dario'.
bag add: 'Dario'.
bag add: 'Dario'.
bag add: 'Dario'.
voceA := Voce new.
bag add: voceA.
bag add: voceA.
bag add: Voce new.
^bag
Somtime this code answer aBag with two element:
Dario-> 4
aVoce -> 3.
Somtime this code answer aBag with three element:
Dario-> 4
aVoce -> 2.
aVoce-> 1.
The Voce class implement the method = . It answer true.
Any pointers would be greatly appreciated!
Thanks!
Dario
If I want to do...
===
formDescriptionNewUserRegistration
| loginDesc |
loginDesc := self description copy.
(loginDesc atLabel: 'Username')
beWriteable;
beRequired;
addCondition: [ :newUserName |
self client login isLoginUsernameAvailable: newUserName ]
labelled: 'already taken'.
^ loginDesc
=====
The copy is needed, because I dont want to modify the cached version,
that everyone else is using. However, I dont think that the children are
copied, they remain the same objects.
Could/should they be copied in MAContainer-#postCopy ?
Keith
Hi folks!
There are thing I don't understand with Css, seaside and pier. I created a
MyLibrary that subclass WAFileLIbrary, I created the method myCss and
selectorsToInclude that included myCss. I could successfully put styles in
my pier application that were in MyLibrary. I also added my css images to
that library. The questions are:
1) When I go to "edit design" command in Pier, all that Css I see, where it
comes from ? I didn't see any Pier library that has those css.
2) When I edit design from Pier, where is it stored ?
3) When I add different libraries to a Application, how Css are inherit ? If
I have defined different thing for a same class in different libraries for
example, what happens ?
4) I really don't know when to add css to my library and when to add it to
"edit design" command.
5) I tried to put some css in mylibrary, like .a:hoover .a: link
.component but they are ignored. I guess it is using the css I see in
"edit design". How can I do to override that css ?
Ok, that's all for now.
Thanks for the help.
Mariano
What does configure components on the fly mean exactly? I thought I
would try it and my image is broken.
Is there a new Magritte-Model due?
I think parameterName: is a needed addition to magritte. At present I
have to search for descriptions by label which is not ideal.
Keith
p.s. please adopt my breakouts of updateDtd: and updatePage: