CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Website field in Profiles
Pages: [1]

Author Topic: Website field in Profiles  (Read 2137 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Website field in Profiles
June 28, 2011, 07:48:34 pm
Hi - website field in Profiles provides a selector for home etc. eg have added here http://drupal.demo.civicrm.org/civicrm/profile/create?gid=1&reset=1
For phones and emails the selector needs to be set to a single option when adding the field to the profile.
With website the selector is exposed on the form.
Is this intentional?
Is this something that could also be offered for phone and email?
How do we provide more than one website field if we want to collect multiple data from users?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Website field in Profiles
July 04, 2011, 10:21:53 pm
We tried using js to force the field to be 'work' but the outcome was that 2 is entered in the contact records as their home website - anyone able to help on this - i think the website filed is unusable in Profiles as is.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Website field in Profiles
July 05, 2011, 01:36:56 am
Quote
website field in Profiles provides a selector for home etc. eg have added here http://drupal.demo.civicrm.org/civicrm/profile/create?gid=1&reset=1
For phones and emails the selector needs to be set to a single option when adding the field to the profile.
With website the selector is exposed on the form.
Is this intentional?
Yes it is intentional. Note that select element for website is for selecting website type ( this is similar to IM - IM type in profile create mode ) and not location type.

Quote
Is this something that could also be offered for phone and email?
For phone, email and im location type is not exposed on the frontend, admin can select it while adding profile field.

Quote
How do we provide more than one website field if we want to collect multiple data from users?
Currently you cannot add multiple websites in profile. It would be good to add this missing feature. I think it will be 20 - 30 hour project.

HTh
Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Website field in Profiles
August 02, 2011, 04:04:53 am
Hi,

I've been reported as well that this is confusing to have the "home/..." select. Would be good not to display it and fix it on the admin, especially if you can't have two url fields.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Website field in Profiles
August 03, 2011, 11:36:14 pm
I think select option gives users to type of url like facebook  / twitter etc., which is kind of helpful if you want to show fancy icons etc in profile view ( customization )

Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Website field in Profiles
August 05, 2011, 04:02:09 am
In real life, 99% will leave the default. It shouldn't be the job of the user to select if it's twitter or FB or whatever, civi should be able to set the type automatically based on the url.

Anyway, as you can't have more than one website, this select field is of no use whatsoever in a profile IMO.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Website field in Profiles
August 05, 2011, 04:57:49 am
Quote
Anyway, as you can't have more than one website, this select field is of no use whatsoever in a profile IMO.

I don't completely agree with this. In fact this feature was developed as part of consulting project and they do have multiple website url like FB and twitter.
I have also seen in few other projects where in people want more than one website url.

I think valuable addition / missing feature is ability to add / include multiple websites in a profile.

Kurund
Found this reply helpful? Support CiviCRM

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Website field in Profiles
August 05, 2011, 02:43:11 pm
Quote from: Kurund Jalmi on August 05, 2011, 04:57:49 am
Quote
I think valuable addition / missing feature is ability to add / include multiple websites in a profile.
Kurund
And/or being able to set the field to a particular option so that the field shows as eg 'website work' with the option of then adding eg 'website personal' - getting rid of the selector from the profile is the goal for all these IMO
As mentioned before we don't require people to specify which phone they are adding or which type of location the 'city' field is - so it would be great if it could be consistent.
But a 20-30 hour estimate is kind of scary.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Website field in Profiles
August 06, 2011, 01:12:24 am
Hey Pete

- This change involves fixing profile on admin site to allow adding of multiple website field
- Then fix the form rendering code: create/edit/view/search/preview mode etc
- Handle post processing for above changes
- Ensure it work fine in profile and also on all online pages / fix that part of form rendering

So I think it's fare amount of work. You can get your developer to contact us on irc, we will be happy to help him to develop a patch for this functionality.

HTh
Kurund
« Last Edit: August 06, 2011, 08:58:00 am by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Website field in Profiles
August 15, 2011, 02:30:19 pm
Hi Pete, I've been trying to deal with this too and have discovered a workaround that might work in your case as well.

I'm trying to build a member directory for a client and many contacts have multiple Website URLs (work, personal, twitter, etc.). I too ran into the bug that causes Civi Profile-based directories and Drupal Views-based directories to display duplicate rows if there are multiple Website URLs in the Civi contact record. So, how to work around this?

First, for the Profile edit form (where users update their records) you can hide the drop-down selector using CSS, so that way users can only enter/edit *1* website URL (and it will be the "main" website by default).

Then, for each additional type of URL you want to include, just create a custom field. Once that's done, add the custom field(s) to your Profiles and/or Views. Because they are unique fields, there is no more duplication of contact rows.

Hope that helps!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Website field in Profiles
August 15, 2011, 03:14:06 pm
Thanks Crispin - issue we were hitting when we tried the CSS was that the website field was pushing through the option id not the data - ie were getting '1' inserted - must have been something specific to that site as couldn't replicate on Demo - and yes custom fields are the sidestep and as you say, step around the Views multiple results too.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Anthony F. Camilleri

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 4.3
Re: Website field in Profiles
March 25, 2012, 11:45:42 pm
Just to add a small two cents to the topic -

1. I believe the selector is invaluable functionality - and e.g. for entering a website for an individual, having the option to put the individuals' primary online home, whether blog, facebook or whatever is necessary.
2. The multiple-entry option would indeed be useful.
3. Another desired functionality would be to be able to add custom sub-fields to the selector, to add other website options, e.g. blog, linked in etc.

/A

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Website field in Profiles
March 26, 2012, 12:49:46 am
Thanks for your input, you can already create new type of sites if you want to be more specific (eg. blogging platform.), but it's on a single level (no hierarchy)


Quote from: anthonycamilleri on March 25, 2012, 11:45:42 pm
1. I believe the selector is invaluable functionality -

Yet is has a cost to develop ;) Do you think you could help (code or finance)?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Website field in Profiles

This forum was archived on 2017-11-26.