Classes attributes

Author Message

Federico Canuti

Thursday 25 August 2005 7:09:06 am

Hello to everyone, I'm modifying the standard user class of the forum template, the problem is that I can't find some of the attributes in the admin interface: username and password don't appear in the window near First Name Last Name ecc. but they work correctly in the user interface, where can I find them ?

Marko Žmak

Thursday 25 August 2005 12:19:52 pm

I suppose you are talking about class attributes "First Name" and "Last Name", and you are looking for class attributes "Username" and "Password". Well, they actually don't exsists and you can't add them. You should use the "USer Account" attribute which contains the username and password.

Does this solve yout problem?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Federico Canuti

Saturday 27 August 2005 2:28:24 am

The user/register.tpl template simply list all the attributes giving a way to modify them with attribute_edit_gui attribute=$ContentObjectAttribute:item, so if I want to edit those attributes (the attributes, not the values inside them!) (i.e. for a translation) I have to modify the tags, I've found the tags of First Name.. but not of Password Username and others.

Marko Žmak

Saturday 27 August 2005 5:25:21 pm

Take a look at:

content/datatype/edit/ezuser.tpl

and override it.

The thing is that "First Name" and "Second Name" are attributes of the "User" class, but "username" and "password" are part of the "User account" attribute. "User account" is the direct attribute of the "User" class, not "username" and "password".

Clear now?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Federico Canuti

Monday 29 August 2005 2:20:28 am

Yes thank you very much, now it works!

Federico Canuti

Monday 29 August 2005 9:07:20 am

My main difficulty in working with ezpublish is to find the correct template that is acting in the site, I mean it would be easier if each default page would reference its own template.

Xavier Dutoit

Monday 29 August 2005 10:25:21 am

In your settings/siteaccess/<yoursiteaccess>/site.ini.append.php
add :

[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
ShowXHTMLCode=disabled
ShowXHTMLCode=enabled
Debug=enabled

(the important part is the templatesettings)
clear all the caches et voila, you've got informations about each template used on the page.

X+

http://www.sydesy.com

Federico Canuti

Tuesday 30 August 2005 8:14:31 am

thanks for the help but unfortunately the debug output doesn't work , and I don't know why.
I tried your code and also the code from the tscm example (that worked when I tried the example) but nothing change (I've cleared the cache).

Kristof Coomans

Tuesday 30 August 2005 9:50:42 pm

Maybe there's still something in settings/override/site.ini like:

[DebugSettings]
DebugOutput=disabled

?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Federico Canuti

Wednesday 31 August 2005 8:29:05 am

Yes! thanks

Federico Canuti

Friday 02 September 2005 6:45:35 am

I continue to use my old thread: I believe I'm in a big trouble, I was working on the user account attributes when I deleted all the user's accounts, after that the session expired so now I can register and log in as a normal user but I can't enter as an admin and get access to the admin interface no more..
Please don't tell me that i have to star from scratch!! Can I work directly on some files to change the permission of a normal user to admin so I can enter then?

Kristof Coomans

Friday 02 September 2005 7:10:24 am

If you can modify your site's database directly, you can manually assign the administrator role to your user.

Look up the contentobject_id of your user in the ezuser table. Then look up the id of the administrator role in the ezrole table (normally this is 2). Finally, add a new row to the ezuser_role table with the values you've found.

I haven't tried this myself but I think this should do it. Maybe you also need to remove the cache directories. I'm not sure if there is some role info cached there.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Federico Canuti

Friday 02 September 2005 7:37:08 am

Thanks God I liked sql in my past.. and THANKS TO YOU!
now what do you think I have to do?
I probably create a brand new admin account and delete avery other user account and start again to create them.

Kristof Coomans

Saturday 03 September 2005 12:56:22 am

You can create a new account for the Administrator. Don't forget to assign the administrator role to it, or you'll have to dive into the database again ;-) Then logout, login with your freshly created administrator account and remove the other users.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Federico Canuti

Saturday 03 September 2005 3:29:23 am

Yes I've done something similar thank you very much

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.