Hey guys so I'm new to couch and php too so bear with me. Basically I've got an old site using a very old js plugin called simple cart it may be outdated but does the job and my client does not want it changed.
Anyways so I've made a structure like this:
But what I'd like to do is make this is a repeatable region, I tried using the 'repeatable' code to no avail and I have a feeling this could be because of the mixed in HTML (that needs to stay there) but not entirely sure.
I also tried duplicating the group (changing the name as well) but that wound up with me only being able to expand one 'booking item' group CMS side - so that was no good either!
Finally general total beginner question.. is there a way I could just create that whole editable region not within the page and then plug in simply something like <cms:show booking_item /> ?
Anyways so I've made a structure like this:
- Code: Select all
<cms:editable name="booking_item" label="Booking item" type="group" />
<h3><cms:editable
name='course_month'
label='Month'
desc='Enter month name'
group='booking_item'
type='text'>Example month</cms:editable></h3>
<div class="simpleCart_shelfItem">
<p class="item_name">
<cms:editable
name='course_info'
label='Course info'
desc='Enter course info'
group='booking_item'
type='text'>Example course information
</cms:editable></p>
<span class="item_price">
<cms:editable
name='course_price'
label='Course price'
desc='Enter price'
group='booking_item'
type='text'>£0</cms:editable>
</span>
<a style="font-size: 15px;" class="item_add" href="javascript:;"> Book now </a>
</div>
But what I'd like to do is make this is a repeatable region, I tried using the 'repeatable' code to no avail and I have a feeling this could be because of the mixed in HTML (that needs to stay there) but not entirely sure.
I also tried duplicating the group (changing the name as well) but that wound up with me only being able to expand one 'booking item' group CMS side - so that was no good either!
Finally general total beginner question.. is there a way I could just create that whole editable region not within the page and then plug in simply something like <cms:show booking_item /> ?