Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hi...this is my first post
i have problem with my website...

i need to generate code like
CANGGU0000001
CANGGU0000002
CANGGU0000003
CANGGU0000.....

UMALAS0000001
UMALAS0000002
UMALAS0000003
UMALAS00000...

for every property listing....
i have property.php as a single template for all directory listing (no dynamic folder only clonable)

NOTE:

CANGGU, UMALAS etc is the locality (property location)

<cms:editable name="my_locality" label="Locality" desc="Select one from these" opt_values=' Canggu | Umalas | Kerobokan | Seminyak | North Seminyak | Sanur | Ubud | Kuta | Legian | Jimbaran | Nusa Dua | Uluwatu | Denpasar | Tabanan ' type="dropdown" order='4' />

How do i create the sequence / increment number?
How to start the sequence from 1 for every location?

I appreciate for any help....
many thanks
Hi :)

Something very similar was discussed in the following thread - viewtopic.php?f=4&t=9360

Could you please check it and let me know how different is your requirement from the one in the mentioned thread?

Thanks.
Wow i thought my problem was unique hahaha

many thanks KK....you are the best!!!

ah the different thing is....

*)with that old post the code gonna be

CANGGU001
CANGGU002
CANGGU003

UMALAS004
UMALAS005
....

What i need is how to make it start from 1 for different location
CANGGU001
CANGGU002
CANGGU003
....

UMALAS001
UMALAS002
UMALAS003
....

The location is editable region (type : dropdown) in the same property.php template...
3 posts Page 1 of 1