Hi guys,

 

I'm sorry, but this is not a support list for "how to start programming oxid". 
I would suggest to put these things to the oxid-board and keep the list free 
for what it is set up for. I remember marco told me exactly the same when I 
posted a simple question to the list years ago. And yes - I do not want to read 
15 Mails "how do I extend class XY" a day in this list. I understand the 
problems but there is a board and wiki exactly for this. This is not meant to 
be nasty. But it tends the list becomes more a support-channel for beginners, 
than it should do.

 

If I am wrong with this - please correct me!!

 

Best regards,

 

Kai 

 

Von: [email protected] 
[mailto:[email protected]] Im Auftrag von Nicolas Hodin
Gesendet: Donnerstag, 28. Juni 2012 15:05
An: [email protected]
Betreff: Re: [oxid-dev-general] Adding & accessing a column created in oxid 
database

 

Sai,

 

I just checked in Azure template files and in topcategories.tpl, $ocont is an 
oxcontent object, you should use $ocat instead : 
[{$ocat->oxcategories__test->value}] .

Best regards,

 

Nicolas Hodin

www.takeitweb.fr

2012/6/28 Sai Chandra Sekhar Madala <[email protected]>

Hi Mr.Nicolas,

I am very sorry for the typographical error in my mail.Indeed I have used 
[{$ocont->oxcategories__test->value}] to print the value.Can you tell me why 
was I unable to retrieve the field though we were able to get the value in 
category listing page.



Thanks & Regards,
Sai Chandra Sekhar.M

 

On Thu, Jun 28, 2012 at 6:24 PM, Nicolas Hodin <[email protected]> wrote:

Hello,

 

You're using  [{$ocont->oxcontents__test->value}]  which gathers the test field 
in oxcontents table. I think you must use  
[{$ocont->oxcategories__test->value}] if you want to print the test field of 
oxcategories.

 

Best Regards,

 

Nicolas Hodin

www.takeitweb.fr

2012/6/28 Sai Chandra Sekhar Madala <[email protected]>

Hi All,

I have a requirement where I need to add an extra input for categories in 
admin.So, I have created a column in oxcategories table using sql script in 
admin->service->tools

"alter table oxcategories add column test varchar(128);"  and updated the DB 
views. I have also added the row in www/out/admin/category_main.tpl for this 
field.

I have entered some test values in to the input field and saved the contents 
for different categories.They all get saved and database tables are also 
updated.

The problem I face is that I am unable to retrieve the value of this field.

I have used the below way to retrieve the value in 
www/out/azure/tpl/widget/header/topcategories.tpl

" [{$ocont->oxcontents__test->value}] " which is pretty much similar to getting 
the title value " [{$ocont->oxcontents__oxtitle->value}] ".

Please suggest me ways of how to get the value of this field.

Another issue of mine is that I have tried to create a similar extra field in 
usergroups in admin.I did the same as above but cannot save the values entered 
in field untill I specify the column name as " oxdesc ".Please clarify why am I 
facing this unusual behavior in oxgroups.

Thanks & Regards,
Sai Chandra Sekhar.M

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

 


_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

 


_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

 

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to