1
philoGraphic
I need help with xcgal

Hi there,
I'm going to use xcgal as pictures gallery in a website, but I need to add extra info in the picture table to use it in somewhere, and that info is auto, means it takes [pid] value and use it .

I don't know if i could explain the idea or not,
but I hope the image below can show the idea :
Resized Image


sorry for my English
and thank you for helping

2
zyspec
Re: I need help with xcgal
  • 2010/11/18 19:03

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


If all you need is to add the pid to a constant string then you really shouldn't need to modify the database. You can create the string by using something like:

$extra_info 'ex' $pid

or depending on where you're using this the pid may be available from the object, like:
$extra_info 'ex' $pictureObj->getVar('pid');


Sorry, I don't know xcgal well enough to tell you which method you're most likely going to be able to use.

3
ghia
Re: I need help with xcgal
  • 2010/11/18 22:40

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


What kind of extra information do you want to store?

4
philoGraphic
Re: I need help with xcgal

Quote:

If all you need is to add the pid to a constant string then you really shouldn't need to modify the database. You can create the string by using something like:

$extra_info = 'ex' . $pid

or depending on where you're using this the pid may be available from the object, like:
$extra_info = 'ex' . $pictureObj->getVar('pid');


Sorry, I don't know xcgal well enough to tell you which method you're most likely going to be able to use.

yes I need to store it in the table.

Quote:

What kind of extra information do you want to store?

I want to add Special Code for each picture like
[pic_number] => [pic_1], [pic_2]
that's why I think the number is good to be same with [pid].

and thank you guys

5
ghia
Re: I need help with xcgal
  • 2010/11/19 9:08

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


If the extra data can be derived from the pid number, then you don't need to add a column, simply calculate it (see example Zyspec).

Login

Who's Online

432 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 432


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits