#Innoraft awarded the top performers on its 5th Foundation Day

roma★
Not today Justin
No title available

@theartofmadeline
let's talk about Bridgerton tea, my ask is open
he wasn't even looking at me and he found me
NASA
cherry valley forever
Today's Document

Origami Around
trying on a metaphor
PUT YOUR BEARD IN MY MOUTH
dirt enthusiast
Lint Roller? I Barely Know Her

No title available

No title available

#extradirty
Mike Driver
KIROKAZE

祝日 / Permanent Vacation

seen from France

seen from India

seen from Malaysia
seen from United States
seen from Bangladesh

seen from Vietnam
seen from Nigeria
seen from Ukraine
seen from Türkiye

seen from Türkiye
seen from United States
seen from United States
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States

seen from Türkiye
seen from United States
seen from United States
@innorafter-blog
#Innoraft awarded the top performers on its 5th Foundation Day
Handling files with Drupal (CSV import)
Drupal allows pretty smooth file management API for developers.. Here is a small piece of code in which I tried to take CSVs as input, process them to get the data and insert the values into the database..
Create a menu item for your file upload form
Define the callback for the menu item and make sure to set the form encoding
Make sure that the file imported is of CSV type (check the mime type of the file uploaded)
And finally get data from the csv And TA-DA :-)
Drupal allows pretty smooth file management API for developers.. Here is a small piece of code in which I tried to take CSVs as input, process them to get the data and insert the values into the database..
http://www.innoraft.com/blog/handling-files-drupal-csv-import
Use entity reference in your custom entities (without bundles)
Entities are a big boon to Drupal, just that the learning curve is a bit longer than CCKs and nodes. I've read a lot about how these entities work but the more I read, the more complex they sound. Here are small snippets of code that I would like to share to allow you to create an entity reference field with your custom entities.
Lets create a scenario we have 2 entities: "employee" and "company". And we want the entity reference field to be used with our "employee" entity to refer the "company". I use Entity API module to create my custom entities. As it is clear by the name of the entities, we do not need any bundles for them. We can use hook_entity_info to define our entities and use the controller class from EntityAPI. Here is how we do that:
http://www.innoraft.com/blog/use-entity-reference-your-custom-entities-without-bundles
Picture - The Saviour
Now a days, while developing any website we need to cater multi resolution screens such as wide monitors, tv, laptops of different screen sizes, mobiles i.e. ranging from 320px to 8000px. While creating designs, we need to make sure that website UX should be great and optimized as well i.e. we cannot afford a slow website on any device or screen size.
Problem
We need to create a media-rich website that has a lot of high-resolution creatives. Now as this site is media-rich, our major requirement is that images must not get distorted and at the same time do not take a lot of time on small screens i.e. render fast enough.
Solution
Simple enough? Can be done in multiple ways, right.
Let’s start the old traditional way.
- Read more here: http://www.innoraft.com/blog/picture-saviour