This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Fibonacci
Fibonacci

Hi everybody, This problem drive me crazy. I want to create static page but in the content have many class. e.g in table and the heading and div. I known we can use static page plugin to create static page. But, I can figure how to include the CSS class in every HTML tags I want.

I have tried to use content and I think it's work for a bit. Not for complex tag like table. I known I can use repeater (syntax field / custom page fields). But this feature doesn't work for know.

Please let me know how to solve this case with plugin or anything else.

Thanks,

Last updated

joe.conigliaro2402
joe.conigliaro2402

You should have a look at using placeholders with the static pages plugin. look in the docs for the plugin here: http://octobercms.com/plugin/rainlab-pages. this way for example you can try separate your structure and content. It may help you avoid the need to include the css in the static pages by separating the content into different placeholders, for example you could have one for a left hand/right hand column. It helped me when i was facing such a problem.

Fibonacci
Fibonacci

Thanks for your quick reply, Joe!

Ok, let say I have a table like this,

<table class='table'>
</table>

How to use placeholder with this case? I think isn't possible. Right?

Because the editor in static page always include this tag >>

if we try to make a table. Or we can't make a table without it.

I think the placeholder only work for data text and image.

Last updated

joe.conigliaro2402
joe.conigliaro2402

I forgot to say the way I do it is anything that needs extra html formatting I create in partials and then expose these partials as snippets, I then include these snippets in the static pages placeholders I have created. I know then you can't edit the snippets through the pages plugin but I do feel strongly that clients shouldn't need to be editing any html as much as possible if it can be separated so they just have to edit text I think it's cleaner and less things that can get messed up. And they still get the ability to see the snippets and put them where they like and arrange them without being able to muck anything up. Maybe this is not what you are looking for but it helped me to overcome the problem your facing.

Last updated

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.