I'm trying to add some extra content blocks into my template to allow the user to select background slideshow images and add a tag line to them. I've done this 100 times before in v1, but v2 is throwing up a weird issue.
So I have the following in the template:
Code: Select all
{content block="intro" label="Intro Text"}
{content_image block='slide_image_1' label="Slide 1 Image" assign="side_1_image" dir='images/backgrounds' urlonly="true"}
{content block="slide_tag_1" label="Slide 1 Tag Line Text" oneline="true" assign="side_1_tag"}
{content_image block='slide_image_2' label="Slide 2 Image" assign="side_2_image" dir='images/backgrounds' urlonly="true"}
{content block="slide_tag_2" label="Slide 2 Tag Line Text" oneline="true" assign="side_2_tag"}
{content_image block='slide_image_3' label="Slide 3 Image" assign="side_3_image" dir='images/backgrounds' urlonly="true"}
{content block="slide_tag_3" label="Slide 3 Tag Line Text" oneline="true" assign="side_3_tag"}
{content_image block='slide_image_4' label="Slide 4 Image" assign="side_4_image" dir='images/backgrounds' urlonly="true"}
{content block="slide_tag_4" label="Slide 4 Tag Line Text" oneline="true" assign="side_4_tag"}
When the page that uses this template is edited in the page editor, the content tags are presented in the following order:
Slide 1 Image
Slide 2 Image
Main Content Block
Slide 3 Image
Intro Text
Slide 4 Image
Slide 1 Tag Line Text
Slide 2 Tag Line Text
Slide 3 Tag Line Text
Slide 4 Tag Line Text
As you can see, this has no relation to the order of the tags within the template and would be very confusing for any user trying to edit this page as the content being asked for jumps all over the place.
This only happens if I use 'content_image' tags. If I stick to normal 'content block' type tags, the order is always the order I place them in the template. The second the template contains a content_image tag, the order in the page editor seems to become completely random. It's incredibly frustrating.
I really hope someone can help me here before I go insane. I've been a user of CMSMS for almost 10 years and know version 1 inside out. Today is the first site I've done with v2 and it's been a stressful day to say the least! It's such a simple site, I could have knocked it out in less than 2 hours with v1, but 10 hours in and I've hit this brick wall. Most problems I've sorted with some reading and adjustment of my past, learnt ways (the Design Manager really slowed me down - lots of tricks I've developed over the years no longer work), but the above issue seems to be a show stopper for me. Client wants this done by tomorrow morning too... Long night ahead
