Тема эта уже многократно поднималась в интернетах, но, как говорится, то-ли лыжи не едут, толи еще что… В общем, для моей задачи мне пришлось перебрать довольно много информации, поэтому я решил собрать все здесь, в одном месте.
Итак, задача стоит следующая: на сайте www.carhelpinfo.ru есть две роли: обычный зарегистрированный пользователь и магазин. В профиле магазина находится информация о его месторасположении (поле с Google Maps), краткое описание магазина (текстовое поле) и название магазина.
Необходимо всех регистрирующихся по умолчанию считать обычными зарегистрированными пользователями. Роль магазина присваивает администратор.
К сожалению, я не нашел, как штатными средствами Drupal 7 сделать разные профили для разных ролей, и в форме регистрации всем подряд предлагалось указать название и описание магазина, а так же его местоположение. Помог мне в решении этой проблемы доп. модуль Profile 2
После установки этого модуля в разделе "Структура" появится пункт "Тип профиля" (см скриншот)
В этом разделе можно завести несколько разных профилей и определить для каждого свой набор полей. Для своей задачи я сделал "Основной профиль", где определил стандартные для всех пользователей поля, и профиль "магазин", в котором определил поля для магазинов.
Теперь, чтобы при нажатии кнопки "регистрация" пользователю предлагалось заполнить "Основной профиль", нужно лишь установить флажок "Show during user account registration.":
Теперь остался последний штрих. Необходимо, чтобы профиль "магазин" был только у пользователей с соответствующей ролью. Для этого просто идем в "разрешения ролей" и указываем параметры так, как нам надо.
situs agen togel dan slot terpercaya
situs agen togel dan slot terpercaya
Hey! Would you mind if I share your blog with my twitter
group? There’s a lot of people that I think would really appreciate
your content. Please let me know. Many thanks
aromatoto
aromatoto
Online poker comes with many advantages. Poker online
is simple to play with no waiting lists or second-hand smoking.
You can also play the variety of games. You can also play
your favorite game at home.
My blog — Live (Leeleeatpearl.Com)
There are many reasons to engage in betting on Sports (Novasinapse.com),
from the chance to make money to the fact that it gives excitement and something to look forward
to the overall viewing experience.
Thank you, I’ve recently been searching for information about this topic for
a while and yours is the greatest I’ve found out so far.
However, what about the conclusion? Are you positive about the source?
폰테 0_2ac27
I think this is one of the most significant info for me.
And i’m glad reading your article. But want to remark on some general things, The website style is
great, the articles is really nice : D. Good job, cheers
Greetings! Very useful advice in this particular post!
It is the little changes which will make the largest changes.
Thanks a lot for sharing!
If you’re looking for a CDN provider you have
the option of choosing from several choices.
These include cloud-based Content delivery network cdn (ourclassified.net) delivery networks, Akamai, StackPath, and
Cloudflare. Find the one that is most suitable for you.
It is important to remember when searching for the best buy Delta 8 flower for sale-8 hemp flowers that
the lowest THC content is utilized. THC levels that exceed 0.3 percent can have negative adverse
effects.
Paxil, which is additionally acknowledged beneath the names of Paroxetine, Seroxat or Aropax, is a medication that belongs within the serotonin reuptake inhibitors category of medication. It acts by balancing the chemicals in your brain, preventing and serving to take away such conditions as depression, anxiety or obsessive-compulsive behavior. It comes beneath the form of tablets or suspension.
paxil without insurance
You can buy a ticket for up to twenty-four consecutive drawings.
Feell free too surf to my website — More helpful hints
Considering that no 1 won the all round jackpot, the pprize climbs to $378 milklion for Wednesday’s drawing.
Also visit my web blog Homepage
Taking Plavix (clopidogrel) might cause any bleeding. therefore, you should get advice from your doctor to change your dosage or stop taking this medicine.
buy plavix
Alternative software alternative (https://altox.io/fa/tightvnc) is a UK-based game designer that has been creating games for more than 30
years. Roger Hulley founded the company in the early eighties.
There are a variety of alternative products.
Some are interchangeable, while others are very alike, and some are very similar.
To know which type of alternative product is right for
you, go through this article.
My web site — Altox
If you’re a cannabis lover and are looking for a place to
buy hemp flowers, you may be wondering where to buy delta 8 Hemp flowers near me 8 hemp flowers.
While the majority of these companies are solely hemp flowers,
there are other options to choose from.
You might be interested in where to buy Delta 8 hemp flowers Delta 8 hemp flower if you’re a fan of cannabis.
These are generally pure hemp flowers, but there are many other options.
There are a myriad of options to purchase concentrates, oils and pre-rolls.
Alternative service is a term that refers to the process of serving in a non-military role instead of conscription in the military.
It is also referred to by the names civilian service substitute service and non-military.
Feel free to visit my web blog :: altox
Советую услуги 3д принтера в Уфе — дешево, отличное качество и поддержка!)
Before developing an alternative project design, the project’s management team
must be aware of the main factors associated with each alternative.
Also visit my web blog :: altox
Comparative evaluation and value representation can aid you in making an informed decision. These concepts will
help you make your choice. Learn more about pricing and how to judge the different options for a product.
My web site alternatives
Theere have been $1 million winners in California, South Carolina and Tennessee who correctly matched
alll ffive whitte ball numbers but missed thee Powerball.
Feel free to surrf to my webpage :: Go here
Powerball Florida lottery is prtty renowned in City of Florida.
Here is my webpage … check here
There are a variety of options when purchasing buy Delta 8 hemp flower near me Eight flowers.
You can go with an Indica dominant strain if want to be relaxed, a Sativa dominant strain if are looking to be active or a hybrid that lets you experience
a combination of both.