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.

eZ debug

Timing: Jan 19 2025 01:21:37
Script start
Timing: Jan 19 2025 01:21:37
Module start 'layout'
Timing: Jan 19 2025 01:21:37
Module start 'content'
Timing: Jan 19 2025 01:21:38
Module end 'content'
Timing: Jan 19 2025 01:21:38
Script end

Main resources:

Total runtime0.9900 sec
Peak memory usage4,096.0000 KB
Database Queries97

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1328152.6094
Module start 'layout' 0.00500.0029 741.742239.4141
Module start 'content' 0.00790.9805 781.1563755.2109
Module end 'content' 0.98840.0015 1,536.367228.1875
Script end 0.9900  1,564.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3061160.0002
Check MTime0.00130.1293160.0001
Mysql Total
Database connection0.00060.064310.0006
Mysqli_queries0.914392.3552970.0094
Looping result0.00090.0896950.0000
Template Total0.963497.320.4817
Template load0.00200.207120.0010
Template processing0.961397.103220.4807
Template load and register function0.00020.016210.0002
states
state_id_array0.00100.105210.0010
state_identifier_array0.00080.083320.0004
Override
Cache load0.00180.1820560.0000
Sytem overhead
Fetch class attribute can translate value0.00070.066740.0002
Fetch class attribute name0.00120.1251180.0001
XML
Image XML parsing0.00140.139540.0003
class_abstraction
Instantiating content class attribute0.00000.0039210.0000
General
dbfile0.00100.0975300.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
15content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 47
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs