|
|
|
|
Alisson Negrisoli de Godoi
()
|
|
||||||||||||
|
Hi all,
I am having a little issue with the "view" and "base_view" in my plone portal. I am using ArchGenXML + Remember + Plone 2.5 When I access, <plone-site>/portal_memberdata/<user>/base_view, everythings works perfectly, but when I access <plone-site>/portal_memberdata/<user>/view, I got a strange page with only the name of the user login. The problem is that the link: <plone-site>/portal_memberdata/<user> points to <plone-site>/portal_memberdata/<user>/view This is my user archetype configuration: meta_type = 'User' portal_type = 'User' allowed_content_types = ['Resume', 'Friends'] + list(getattr(UnicompMember, 'allowed_content_types', [])) filter_content_types = 1 global_allow = 0 #content_icon = 'User.gif' immediate_view = 'base_view' default_view = 'base_view' suppl_views = () typeDescription = "User" typeDescMsgId = 'description_edit_user' _at_rename_after_creation = True schema = User_schema base_archetype = BaseContent This only happens with the user type. Why the url <plone-site>/portal_memberdata/<user> points to <plone-site>/portal_memberdata/<user>/view. There is anyway to point it to the 'base_view'? There is anyway to change the 'view' page template to points to the 'base_view'? Or to make the page 'view' displays correctly? Thanks, Alisson. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
|
|
Larry Pitcher-3
()
|
|
||||||||||||
|
Alisson Negrisoli de Godoi wrote:
> Hi all, > > I am having a little issue with the "view" and > "base_view" in my plone portal. > > I am using ArchGenXML + Remember + Plone 2.5 > > When I access, > > <plone-site>/portal_memberdata/<user>/base_view, > > everythings works perfectly, but when I access > > <plone-site>/portal_memberdata/<user>/view, > > I got a strange page with only the name of > the user login. > > The problem is that the link: > > <plone-site>/portal_memberdata/<user> > points to <plone-site>/portal_memberdata/<user>/view > > This is my user archetype configuration: > > meta_type = 'User' > portal_type = 'User' > allowed_content_types = ['Resume', 'Friends'] + > list(getattr(UnicompMember, 'allowed_content_types', [])) > filter_content_types = 1 > global_allow = 0 > #content_icon = 'User.gif' > immediate_view = 'base_view' > default_view = 'base_view' > suppl_views = () > typeDescription = "User" > typeDescMsgId = 'description_edit_user' > _at_rename_after_creation = True > schema = User_schema > base_archetype = BaseContent > > This only happens with the user type. > > Why the url > <plone-site>/portal_memberdata/<user> points to > <plone-site>/portal_memberdata/<user>/view. There is anyway to point it > to the 'base_view'? > > There is anyway to change the 'view' page > template to points to the 'base_view'? Or to make the page 'view' > displays correctly? > > Thanks, Alisson. > You can set up an "alias" to fix this. In your ZMI go to: Plone/portal_types/my_custom_member, then click on the "Aliases" tab. Find "view" in the "Alias" column and type "base_view" next to it in the "Method" column. Click "Save Changes". From then on any request for the "view" template will be sent to the "base_view" template instead. This can be set up programmatically, but I haven't learned how yet. Anybody have a quick link to an example, please? :-) HTH, Larry Pitcher ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
|
|
Alisson Negrisoli de Godoi
()
|
|
||||||||||||
|
Some javascript/style in this post has been disabled (why?)
Hi all,I thing that this ticket contains an example about that: http://dev.plone.org/archetypes/ticket/677 Note to code bellow: aliases = { If you put it your archetype class, I thing that it will work. But I havent't tested it yet.
Thanks, Alisson. On 5/9/07, Larry Pitcher <[hidden email]> wrote:
Alisson Negrisoli de Godoi wrote: ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |