Design and CSS styles
Version 5.x > Design and CSS styles > Splt Editable Region (two columns) View modes: 
User avatar
Member
Member
Snarrak - 10/18/2011 1:59:29 PM
   
RE:Splt Editable Region (two columns)
I'm working in Kentico 6.

What you show me is exactly what I need. But I can't seem to get it working...
I followed your readme file. Copied two files (cs and js) and the belonging folders. Then I registered the control and added this to my class:
<custom:CustomEditableRegionAutoColumns id="TestAuto" runat="server" RegionType="TextArea" NumColumns="2" ColumnWraperCSSClass="twoColumnsContent" Height="400" Width="700" />

Do I need anything else?

By the way, how does your css look? Because how can you split this for each column?

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/18/2011 2:05:03 PM
   
RE:Splt Editable Region (two columns)
I didn't know you were working in Kentico 6. I might have to change it to work in 6.

The columns automatically get first,second,third and so forth classes added to them, so you can use those to select. They also have class "column". so you can do this

.twoColumnsContent .column
{
text-align:justify;
}
.twoColumnsContent .first
{
padding-right:1em;
}

let me see if I can get one working in kentico 6

User avatar
Member
Member
Snarrak - 10/18/2011 2:21:59 PM
   
RE:Splt Editable Region (two columns)
Ok, thnx!
Is there such a different between those versions?

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/18/2011 2:27:51 PM
   
RE:Splt Editable Region (two columns)
There might be. One thing that doesn't work is the jQuery plugin that makes the columns happen. It isn't yet compatible with jQuery 1.6 that Kentico 6 uses. Let me see if I can find an alternative.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/18/2011 2:36:01 PM
   
RE:Splt Editable Region (two columns)
This web part seems to work. Import it into your site and try it. I didn't try it on ASPX, but it might work.

Download Editable Text columns Web Part


User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/18/2011 2:50:40 PM
   
RE:Splt Editable Region (two columns)
I just noticed one thing you might be missing. You need to have paragraph tags around your content. it won't split unless you have paragraph tags.

User avatar
Member
Member
Snarrak - 10/18/2011 3:16:54 PM
   
RE:Splt Editable Region (two columns)
I imported this webpart, and after registering it on my page I added this:

<wp:textcolumns runat="server" ID="Textcolumns1" ColumnWraperCSSClass="twoColumnsContent" NumColumns="2"
DefaultText="test" RegionType="TextArea" />

But I get an error: "Object reference not set to an instance of an object."

You have any idea?
I think I filled in all required properties...




User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/18/2011 3:22:20 PM
   
RE:Splt Editable Region (two columns)
No idea. It's probably not meant for use on an aspx page.

There are more problems with using it with jQuery 1.6 than you'd want to deal with anyway. Back to square 1.

User avatar
Member
Member
Snarrak - 10/18/2011 3:29:02 PM
   
RE:Splt Editable Region (two columns)
So not every webpart is possible to add on an aspx page??
To bad...

Another idea...?

User avatar
Kentico Support
Kentico Support
janh-kentico - 10/24/2011 1:46:56 AM
   
RE:Splt Editable Region (two columns)
Hey Kentico folks, why can't I edit a forum post that I created?

That's because of consistency between question and answer. It's the same reason why you can't change your post on facebook.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/26/2011 2:45:36 PM
   
RE:Splt Editable Region (two columns)
That makes sense, but there are better ways to approach it.

You could only allow us to edit/delete a post that has not yet been replied to. In addition to that, you could add the requirement that it not be older than NN minutes.

Understand what I mean? It's how some other forums work.

User avatar
Kentico Support
Kentico Support
janh-kentico - 11/2/2011 5:04:52 AM
   
RE:Splt Editable Region (two columns)
Hello,

I have forwarded your question to our developer's department, but it was told me, that this functionality is not a priority at the moment, so maybe someday in future...

JH

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/20/2011 9:28:37 AM
   
RE:Splt Editable Region (two columns)
You can try using the CustomEditableRegionAutoColumns again, but this time make sure that the content you set has paragraph tags in it. All blocks of text have to be inside an element. Any blocks of text that are not inside an element will not be rendered. So try putting a few paragraphs of some lorem ipsum in <p> tags by choosing "Normal" from the format menu in the editor or manually in source code and see if your content shows up on the live site.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/20/2011 10:27:05 AM
   
RE:Splt Editable Region (two columns)
I have found a newer version of the columnizer jQuery plugin and changed my code to use it. I tested this in Kentico 6 on an ASPX page and it works (It also doesn't require you to have <p> tags around every thing). You can download the new version here

AutoColumn 2.0

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/20/2011 12:21:35 PM
   
RE:Splt Editable Region (two columns)
Okay, one more time. After playing with styling the columns with padding I realized that it made it so the columns did not float properly. I discovered that this was because the new version of the jQuery plugin used percentages for widths on the columns.

The the solution that original author of the jQuery plugin involved adding padding to elements inside the column (ie the <p> tags and whatnot). I did not find that to be an acceptable solution when using the plugin in a CMS environment.

Instead of just giving up, I edited the javascript so that it will insert another div around the content of each column so that you can add padding or margin as needed without disrupting the floating of the columns.

Now it works really well. You can download this newer version here

Autocolumn 2.1

Hopefully that will be the last one.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/20/2011 12:31:00 PM
   
RE:Splt Editable Region (two columns)
Here is the latest Auto Column web part for Kentico 6 for anyone who wants it.

Editable Text Auto Column 2.1

User avatar
Member
Member
Snarrak - 10/21/2011 2:12:13 AM
   
RE:Splt Editable Region (two columns)
I got the following error:
User image

not set to the instance of an object.
Do you have any idea where this is comming from?

Does it mather if the control is on a masterpage or a templatepage?
Does the webpart contains errorhandling, when there's no text set yet? Something in the pageLoad maybe?
This autocolumn is a webpart on its own, doesn't need an editabletext or editableregion?
I also tried debugging, but didn't found anything...

If you succeeded in Kentico 6 ASPX version, than I shouldn't be far away....

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/26/2011 2:43:19 PM
   
RE:Splt Editable Region (two columns)
I don't know why you're getting that error. All I know is that I placed the control on the ASPX example page in the Corporate Site template and it worked fine. I also made a web part and tested it on portal pages.

You must be doing something different than I am because I am not getting any errors.

1 2