How to add more fields ?
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
How to add more fields ?
I would like to use myAlbum for a collection of DVD's.
On on top of the movie title, I would like also to have other fields t regsiter, movie director, year of movie, ...
How can I add such fields ?
Thanks
Votes:1
Average:0.00
msg# 1.1
OK, I played a bit into submit.php and editphoto.php and was able to add 7 new fields and everything is almost running fine.
The only problem that I still have is to be able to display these fields in the templates (eg in myalbumx_photo_in_list.html)
I made several trial but do not understand the logic to have my new fields available as smarty variable.
Votes:2
Average:5.00
msg# 1.1.1
hi efla.
You have to do more two modifications.
- add SELECT field of the query.
index.php, viewcat.php
$prs = $xoopsDB->query( "SELECT l.lid,....
- add assignment
include/draw_functions.php
function myalbum_get_array_for_photo_assign()
return array(
.... => .... ,
Votes:2
Average:0.00
msg# 1.1.1.1
Thanks for these explanations.
Excellent ! It works well !
Votes:1
Average:10.00