|
INTERVIEW QUESTIONS
PHOTO GALLERY SOFTWARE
4IMAGES PHOTO GALLERY
DETAILS
Question: Best way to tie images to entries?
Answer: You'd have to write an extension which taps into the delete_entries_loop hook to:
Find all File fields in that entry Search all other File fields in the database for that matching value If no matching values are found, parse the value of that file field to locate the image in the database Delete it (from the database and on-disk) using the File library However, while you may feel that the use case of multiple entries using a single image file is a rare one, I actually see this all the time. On the flip side, to me, a site which frequently deletes entries (and thus would have a build-up of unused images) is something that is incredibly rare.
|
|
|
Category |
4images Photo Gallery Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7363 users |
Added on |
8/2/2016 |
Views |
71129 |
Rate it! |
|
|
Question:
Best way to tie images to entries?
Answer:
You'd have to write an extension which taps into the delete_entries_loop hook to:
Find all File fields in that entry Search all other File fields in the database for that matching value If no matching values are found, parse the value of that file field to locate the image in the database Delete it (from the database and on-disk) using the File library However, while you may feel that the use case of multiple entries using a single image file is a rare one, I actually see this all the time. On the flip side, to me, a site which frequently deletes entries (and thus would have a build-up of unused images) is something that is incredibly rare. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How to fix broken images after server move ?
|
View Answer
|
|
How do I remove the border around frames?
|
View Answer
|
|
How to Use the NEF Software with Photoshop?
|
View Answer
|
|
How to make 3D sphere with Photoshop Spin Software?
|
View Answer
|
|
Can I prevent a form from being submitted again?
|
View Answer
|
|
How to unlock the background in 4images Photo Gallery?
|
View Answer
|
|
How to organize layers in Photoshop?
|
View Answer
|
|
Explain about the Photoshop Work Area?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All 4images Photo Gallery Interview Questions & Answers - Exam Mode /
Learning Mode
|