image style depend on taxonomy term drupal 7 on a view - image

i have a view to list all users in the site ,i want to change the user picture display style depending on the users's category(which is a taxonomy term) i have tried to add CSS class to the picture with the name of the category(via rewrite field) but that will re-size image on the fly and this will first increase load time second image may be pixeled any suggestions on how to make this available .

I can only suggest creating a PHP field and have a condition there.

Related

Oracle Apex Regional Header

Good afternoon,
I am trying to build a page using Oracle APEX 19.2. I have the application built and working fine, but now I am trying to make some changes for ease of navigation and titles.
I am trying to create a region header that would reflect the current data shown on page 4 of my table.
On the page editor, in the Region panes, I go down to the Header and Footer area and am able to create the header text using html and css, but is there a way to create the title based on a column from page 4?
I have a column on page 4 that is titled PN. Is there a way that I can take the text from Page 4_PN and make that the header for the region?
Thank you,
Kevin
is there a way to create the title based on a column from page 4?
Yes. Navigate to "Title" region's property and put (literally) &PN. in there - it'll take value from item named PN and use it as that region's title.

How to display images without their titles in Drupal 8?

Drupal 8.5.3
I want to display some images in a Views Block in a grid format and without the image title being shown. This is not working and the title is always displayed.
I have created a content type for the images with just the required title field and the image field and I have deleted the body field.
I have set the image label to hidden or "visually hidden" in the content view mode in the "Manage Display" tab for both default and teaser. The label seems to affect only the name of the content type itself not the image title.
I have set the view grid to display only teasers.
I have run drush cr multiple times.
The image titles still show up in the view.I can find no way to turn them off there. However the tile is not displayed in the default view mode on the node page itself. Which ironically is where I want it!
Figured out how to do exclude node tiles from display. You have to use a contrib module such as the appropriately named Exclude Node Title

Drupal Image Display with View and Panels

Can anyone please guide me on how do I create a photobox that contains image and I wanted to display that image on landing page.
I have used panel to create landing pages for my website. I need to create 7 different layout for my website.
I am new to Drupal. Any help will be appreciated.
I have created specific image style for my image box by going into "Configuration -> Image Styles.
I have created Content Types for image.
For example lets say, Content type is: "Top Left Image".
I have defined fields called "Image Name" and "Image" into "Top Left Image".
Then I have created one view called " Top Left Imagebox".
In view, I have defined fields called Content: Image.
Formatter: Image
Image Style: Selected specific image style.
Link Image to: Nothing
I have used Rewrite Rule to make a view that displays image or video filed if present.
No Results Behavior: [field_image]
Checked - Hide rewriting if empty
Checked Rewrite the output of this field.
I have defined this view into my Landing Panel Page. But, somehow image is not displaying into the browser.
Thanks for Help!!
It can be because your ad blocker block your images. Anything that comes with names like 'ad' will be blocked be ad blocker browser add-ons.
Try switching it off if you have any enabled.
This is my best guess if you have your images in your view & you have added that view into your panel page.

How to display list of content items using Telerik Grid component

I'm begginer in the Orchard CMS.
I would like to create Content Type composed from different parts and fields which I know before. I want this content type to be enumerable ie I use content part List, I want to list it using telerik components.
For example my content type is Product and I specify its fields: Price, SKU apart from default: user(who created it) and creation time fields. Moreover the product contains also image gallery, ie image gallery content part.. I want the list of products to be shown using Telerik component Grid, including creation time and user name.
Is it better to create the whole module specifying all its fields(price,SKU) and its templates or is there any way to just take what has been already created in orchard as a content type and display it different way(using telerik)..
thanks for any advice ;)
Tomas
It appears this topic was moved and answered here:
http://orchard.codeplex.com/discussions/371276

Product media gallery API

I am working on a product page and need to create two separate galleries - one main gallery and additional one. Currently I output images with empty label on main gallery and images with specific prefix on additional one.
Is there a way to query only images labeled by specified label? I found only getMediaGalleryImages method which doesn't do anything specific.
Or maybe there is just the other way to work with the gallery?
By default there is no way to query images based on a labels or other conditions except for the main and thumbnail options. We use the following setup:
Get a list of all images for the product
Itinerate through each finding out all the details and sorting inside two arrays.
Going through each array for each gallery and outputting the images inside the right tags.
Aother way of doing this would be to extend the product model and adding another gallery field. But that's IMO much too complex for something this simple.

Resources