Hello!
I have questions about the site object IDs.:
1. Should the object's ID be unique within the page it is located in? Or should all site objects (i.e. on all pages) have unique IDs?
2. Please share your experience with naming site objects so that they are not too long, but on the other hand, it is clear what kind of object it is.
At the moment, I use the following naming system for objects:
The abbreviated name of the object type (lg, fg, fc, txt, img, bm, and so on)_the abbreviated name of the page_description of the object's purpose.
The result is (for example) the following: lg_catalog_products_header_group_products.
Everything is clear to me later in the process, but naming takes a lot of time and they get long. ☹
Please share your experience in this case!
Naming the object ID
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Naming the object ID
Yes. This is a HTML requirement, otherwise they cannot be styled .Should the object's ID be unique within the page it is located in?
No, each page does have it's own structure/styles.Or should all site objects (i.e. on all pages) have unique IDs?
Re: Naming the object ID
Thank you, Pablo!
So each page of the site can have an element with an ID equal to "products"?
I'm clarifying, because I doubt the correctness of the translation by an online translator
So each page of the site can have an element with an ID equal to "products"?
I'm clarifying, because I doubt the correctness of the translation by an online translator
Re: Naming the object ID
Yes.So each page of the site can have an element with an ID equal to "products"?
Note that this is not specific to WWB, it applies to HTML in general (like most features).
Re: Naming the object ID
OK! Got it! Thanks!