PEAK XOOPS - How to add more fields ? in englishin japanese

How to add more fields ?

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/30 8:01
efla  ¾åÅùʼ   Posts: 39
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
Previous post - Next post | Parent - Children.1 | Posted on 2005/1/1 0:31
efla  ¾åÅùʼ   Posts: 39
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
Previous post - Next post | Parent - Children.1 | Posted on 2005/1/4 18:42
GIJOE  ÀèǤ·³Áâ   Posts: 4110
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:1 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/1/5 2:42
efla  ¾åÅùʼ   Posts: 39
Thanks for these explanations.

Excellent ! It works well !
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!