Looking for best way to convert an existing web page to a Pagelime page with repeating regions. Since editable areas on a page need to have a unique id, how do you go about switching an existing html page that might have used a class to define the repeating elements rather than unique id's? Does just the first element need to have a unique id assigned to it? What if the user needs to be able to re-arrange existing elements along with adding new elements now that it's editable?
Best practices - repeating regions
(6 posts) (3 voices)-
Posted 1 year ago #
-
Hey Sandi,
The first element needs a unique ID, but don't attach any CSS to that ID because the repeated elements will have a random ID... so you want something like this:
<div id="my_first_element" class="cms-repeat style-of-repeat">And attach the CSS to the .style-of-repeat class.
Beyond that it's point-and-click for adding/removing/sorting :)
Posted 1 year ago # -
Hi Emil,
I understand that part of the set-up. Once I do that, does Pagelime 'convert' all the existing elements to repeating regions or only those that are added in after the switch?
Posted 1 year ago # -
Only those created after the switch. Using the original repeat.
Posted 1 year ago # -
Ugh, that's what I was afraid of.
Posted 1 year ago # -
Well Sandi - give it a shot, it might actually work.
Posted 1 year ago #
Reply
You must log in to post.