cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
How to get stable id/class for a list item?
September 19, 2012
3:55 pm
andreas
Guest

Hi. I am using cforms v14.5. I have many forms and for one of those forms I added my custom CSS-styles to cform's theme .css-file. For this form I also styled some <li>s — giving them some paddings and margins —, using their ids, which are assigned by cforms. For example, one id would be "li-8-3", meaning the 3rd <li> in this form, which currently is the 8th form cforms knows of. This works just fine.

My problem occurs when an older form is deleted (Which happens. We have many forms, some get outdated). Then, my form is the 7th form cforms knows of, and the id of the <li> is now "li-7-3", which of course breaks my custom CSS-styling.

Now my question: How can I avoid that? Is there a way — in cforms — to assign truly stable ids or classes? I know that this is possible for <select>s and <input>s, using the syntax "[id:my_custom_id]", but that doesn't affect <li>s.

Thanks for any help.

October 12, 2012
4:05 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

That's a known limitation and you'd indeed have to do a search/replace-all for the old/new ID.

November 5, 2012
10:32 am
ralf
Guest

Will there be a fix in the future? It can not be that hard to implement a form element ID as style class that is unique for this form. Thanks in advance.

November 21, 2012
10:02 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

for one, it's more difficult than you think, due to the way form IDs are generated and handled within cforms. secondly and more importantly, it's a matter of time.

time that I don't have currently for unpaid projects. i'm sure you'd agree.

January 20, 2013
2:48 am
Brad
Guest

how much of a donation and time to help with the code to get rid of some of those limitations? iLove this plug-in and will DIE by it!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)