[SOLVED] Field Formatter Class and limit number of characters.

I have to insert in a field (admin/structure/types/manage/article/display) a string of classes to get a button from a text but the "Field Formatter Class" field has a character limit so I can't enter the code which I need to get the result.
I did some research but couldn't find the solution.

My Class:

btn btn-sm btn-primary stpe-outlinebutton test-util-color-primary test-util-border-primary test-util-hover-background-primary test-util-hover-color-white test-util-hover-border-primary

Any help?

Best Regards

Activate display of errors in drupal7

Hello,
I'm new to drupal so be patient :)

I imported a site built with druplal7 on a different server from the one in which it was installed and I would like to activate the display of the errors because I always receive "he website encountered an unexpected error. Please try again later."

I also tried drupal8 and found the instruction to view the errors. I failed instead with drupal7.

Can anyone tell me that I see errors with drupal7?
Thanks for your cooperation

Andrea

One content type but can display as public or private

I have roles accounting, purchasing and hrd. And a content type news, all roles can add/edit news.

My want is user with roles accounting can post a news with 2 options private or public, if set private only roles accounting can see a post, if set public all of roles can see a post (this effected for all roles not only accounting).

If possible i want show radio button ("private" and "public") field in add/edit news.

Please teach me, or all suggest will be accept.

Thanks.

[SOLVED] How to show in a View all the nodes of a Content Type Flagged and NOT flagged?

I'm using the Flags module and I want a View that lists all the nodes of a Content Type Flagged and NOT flagged (NOT just the Flagged ones).

In one of the fields of the table I also show the "Flag link" button which must be changed to "Flag link" and/or "UnFlag Link") but, if several users have flagged the same node, I need to know how many users I am, maybe showing the number of users next to the Flag link eg. Flag link (10)

Finally I must have the possibility to view all the users who have Flagged the Node.

Any suggestion?

Best Regards

Multi Site beyond the average

I want to have four sites (for domains, each with there own IP address) on one site, with one database and one shopping cart. I know this is possible in general, but can I do this with Drupal? Any examples out there?

Also, can we then use Shopify with this senario?

We're on Drupal 7 now, and will move to 8 in 2020.

Show a view block to other two uid users besides the author

I've several view blocks filtered by logged in, active, content's author.
Some of these should be simply displayed also to other two specific (uid) registered users.

I must create a new role or there is a more quickly way by the view block itself?

I found several possible solutions (some for more complex use cases than mine) including the 'Rules block visibility"
Rules module, but I'm very undecided as to which one might be the best.

What approach would you recommend?

Many thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x