Content block order appears random when using content_image

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
TheFifth
New Member
New Member
Posts: 2
Joined: Mon Dec 05, 2016 5:26 pm

Content block order appears random when using content_image

Post by TheFifth »

Hi All,

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"}
The template also has the standard 'content' tag of course.

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 :(
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Content block order appears random when using content_im

Post by Rolf »

Hello,

Thank you for the good explanation.
We have fixed it in the SVN and will be shipped with 2.1.6 release soon.

Grtz. Rolf


ps. About CMSMS 2.0 and templating... Read this article at my blog http://www.cmscanbesimple.org/blog/the- ... gn-manager and invest some time in it. You will be surprised what you can do with it. It is a time saver AND give you more features for your clients
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
TheFifth
New Member
New Member
Posts: 2
Joined: Mon Dec 05, 2016 5:26 pm

Re: Content block order appears random when using content_im

Post by TheFifth »

Thanks Rolf, that's great news.

Is there any way I can update to the SVN version now? Client wants it in place by tomorrow, so getting pressure to get the site up.
Post Reply

Return to “CMSMS Core”