Can I use this to add a User Attribute which is a Page?

Permalink Browser Info Environment
Can I use this to add a User Attribute which is a Page on my site?

Do I need to extend the User Attributes page somehow or should it just work?

Thanks!

Type: Discussion
Status: New
webporter
View Replies:
Guido replied on at Permalink Reply
Add the following code to the install() function in controller.php:

Loader::model('attribute/categories/user');
$col = AttributeKeyCategory::getByHandle('user');
$pageselector = AttributeType::add('page_selector', t('Page Selector'), $pkgh);
$col->associateAttributeKeyType(AttributeType::getByHandle('page_selector'));


Now reinstall the package.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.