Registration form woes

Permalink
I have added attributes to my registration page, but there doesn't appear to be any way to change the order of the items, or resize the fields on the resulting page. Also, from the sitemap it doesn't appear to assuming the template I've picked for it or display the usual header in edit mode.

gewald
 
gewald replied on at Permalink Reply
gewald
I also wasn't able to delete an attribute.
gewald replied on at Permalink Reply
gewald
And some of the attributes using selector lists are not displaying correctly. They just show a text field.
gewald replied on at Permalink Reply
gewald
Anyone else having this problem, or know of a fix? I need to get this working.
Mainio replied on at Permalink Reply
Mainio
As far as I know, it's not possible to change the order of the attributes any other way than adding them to a set. And then again, if you add the attributes to a set and change their order, I think it will not apply to the registration view. So, you'll need to write an override to that view for you to be able to do this.

Resizing can be done with CSS, depending on your needs.

For the template issue, I did not 100% get what you meant there.
gewald replied on at Permalink Reply
gewald
The problem is I have three fields where multiple selections should be possible, and I want to leave the option for them to add ones I didn't think of. If I leave multiple entries selected and add another in the attributes the field displays with no hints about the choices already suggested. If I turn off multiple entries I get a pop-up list, but that isn't what I wanted. If I turn off add another and allow multiple entries then I get a list of check boxes, not a pop up list.

So either C5 can't handle the UI of holding down a key and selecting more than one from a popup list, or I have to handle the add another as a separate field. When they can add another is it about the same as giving them a text field to add others? Can other users see the added choices?
Mainio replied on at Permalink Reply
Mainio
So you want a dropdown menu selection that would work the same way as the text search selection currently does?

Or do you want this:http://www.siteexperts.com/tips/html/ts16/page1.asp...

I think either feature is not built-in in concrete5. But the attributes architecture is extremely customizable and easily extendable to your needs.

Or other option is to just modify the current select-attribute if you don't need the current functionality anywhere on that site.
ConcreteOwl replied on at Permalink Best Answer Reply 1 Attachment
ConcreteOwl
To change the order of attributes,
go to dashboard/members/attributes
hover your cursor over the icon on the left hand side of the attribute and your cursor should change to a cross then just drag the attribute to the location that you prefer,

As per the attached image
Mainio replied on at Permalink Reply
Mainio
Oh that's right, I tested in 5.5.1, seems like it actually works in 5.5.2. :)
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
To delete the attribute
click the attribute text and in the following dialogue box you will find a "Delete Attribute" button
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
To have the register.php assume your theme instead of the default concrete theme you must edit your site_theme_paths.php file that is located in the root/config folder

here is an example of the site_theme_paths.php you just need to put the name of your theme in place
<?php  
defined('C5_EXECUTE') or die(_("Access Denied."));
$v = View::getInstance();
$v->setThemeByPath('/login', "YOUR_THEME_NAME"); 
$v->setThemeByPath('/403', "YOUR_THEME_NAME");
$v->setThemeByPath('/register', "YOUR_THEME_NAME");
$v->setThemeByPath('/download_file', "YOUR_THEME_NAME");
$v->setThemeByPath('/install', "YOUR_THEME_NAME");
$v->setThemeByPath('/maintenance_mode', "YOUR_THEME_NAME");
$v->setThemeByPath('/members', "YOUR_THEME_NAME");
$v->setThemeByPath('/page_forbidden', "YOUR_THEME_NAME");
$v->setThemeByPath('/upgrade', "YOUR_THEME_NAME");
$v->setThemeByPath('/maintenance_mode', "YOUR_THEME_NAME");
$v->setThemeByPath('/page_not_found', "YOUR_THEME_NAME");
$v->setThemeByPath('/user_error', "YOUR_THEME_NAME");
gewald replied on at Permalink Reply
gewald
Here's my php file with the theme name added, but it isn't working....

<?php   
defined('C5_EXECUTE') or die("Access Denied.");
/* 
   you can override system layouts here  - but we're not going to by default 
   For example: if you would like to theme your login page with the Green Salad theme,
   you would uncomment the lines below and change the second argument of setThemeByPath 
   to be the handle of the the Green Salad theme "greensalad" 
*/
/*
$v = View::getInstance();
$v->setThemeByPath('/login', "theme_slate");
$v->setThemeByPath('/page_forbidden', "theme_slate");
$v->setThemeByPath('/register', "theme_slate");
*/


are the $v-> the comment markers I need to remove? Should I include all the other page types you mentioned?
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
This is what it should be like..
<?php   
defined('C5_EXECUTE') or die("Access Denied.");
/* 
   you can override system layouts here  - but we're not going to by default 
   For example: if you would like to theme your login page with the Green Salad theme,
   you would uncomment the lines below and change the second argument of setThemeByPath 
   to be the handle of the the Green Salad theme "greensalad" 
*/
$v = View::getInstance();
$v->setThemeByPath('/login', "theme_slate");
$v->setThemeByPath('/page_forbidden', "theme_slate");
$v->setThemeByPath('/register', "theme_slate");

You can add the others if you wish (I would)

Just to clarify.. The comment markers referred to are these /* anything between these comments are ignored by the web browser */
gewald replied on at Permalink Reply
gewald
Tried that but it didn't work. I might have the name of the theme wrong. I tried the name of the directory in the packages directory "theme_slate" and just "slate" (direcoty inside that one) but it didn't change how the registration page looked.

I will add the other page types. Thanks for that tip.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Okay try this,
go to root/concrete/single_pages/ and copy the register.php file
paste that file into root/single_pages/ folder and try again,
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Looking at other sites using the slate theme they appear to use the handle "slate" (without the quotations) so I expect that is what yours will be,
If your register page starts to use the slate theme you will have to copy the other single pages from the root/concrete/single_pages folder to the root/single_pages folder.. Or, at least those single pages that you want to use the slate theme.....
gewald replied on at Permalink Reply
gewald
The dialog box for attributes defaults to View : Sets, and you can't move them in this view. Switching over to List allows you to move them. Thanks for the answer to this part of my question.