Hello @all,
my name is Heinz and i am the new one...i am a complete newbie to Drupal (I am using Drupal 8 for things).
I have programming experience with c/c++ for some years and i started with PHP a while ago.
My problem is that i need a button-element which is configurable:
-Size(The caption will be of various length and width)
-Color(At least the background color should be adjustable)
-and it should be placeable freely in my content.
Background:
I want to add this button to the page to indicate lets say a meeting. So if a logged-in user want to attend the meeting, he would press the button and show, i want to attend the meeting. Afterwards the "button" should be published on the user-page to show that s/he attended this meeting at a given date/location(Therefore the variable caption). The background color should indicate the status of the meeting.
For the sake of simplicity i choose for this example three colors:
-GREEN: The meeting will be held as advertised.
-YELLOW: Something has changed.
-RED: The meeting has been cancelled.
So every time a user logs onto his page s/he sees the button and knows that s/he had attended the meeting.
When the user want to cancel the meeting, because the in-laws are coming s/he would simply click the button and cancel the meeting(Maybe a pop-up window/redirect to the originating page...).
On the other hand if something changed with the meeting the button should change color and the caption accordingly. By clicking the button the user would get the changed information or if canceled ... i think you get the idea...if not feel free to ask...;-)...
I searched for myself and I am bit confused because i don't know is this a core or a theme issue?
I will greatly appreciate your help and thanx in advance,
cheers HeinZ

Comments

steeph’s picture

This sounds like a job for the Flag module. It is not ready for Drupal 8 though. There is also a module specifically for your use case. But I don't remember its name.

And for the colors: Who changes the status of the meeting? Should this also be possible with a simple button?

R1V37H34D’s picture

Hi steeph,
thank you for you comment...
I have to admit, that i saw my problem more from the programmers/developers point of view.
The problem is that i had to adept to the drupal philosphy which means to ask my self what i wanted to do...and the answer is i wanted to setup a REGISTRATION for a meeting/courses/... you name it. So i googled it and found a variety of modules which can and will solve the basic thing i want to do, give the user the abilty to register himself for something...the rest is, like visualizing states of events... , rather secondary.
So i big thank you and have a nice weekend.
Cheers HeinZ