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

aaamail14228
aaamail14228

EDITED: Because i asked a question needlessly complicated.

What is the "October way" of letting users add a bunch of elements to a static-page, and then letting them choose in which order they appear.

Say i have a page with two columns and the users has to be able to add either text, an image, or a video to the columns. To input the text they have to write in a wysiwyg restricted to H and P tags. Adding images they have to upload or choose from media manager. etc. Then at last they select in which order the elements appear, and in which column.

So they practically "layout" themselves but they don't accidentally mess up the layout by adding everything from a wysiwyg.

Right now when users create a static page they are just seeing a huge wysiwyg editor. Placeholders let them input stuff to predetermined areas, but it doesn't let them order those, place them or otherwise choose if they should appear.

Is this something i should crete my own plugin for or is there a way to do this at the moment?

Thanks in advance!!

Last updated

Codenator
Codenator

You need create own plugin for now.

aaamail14228
aaamail14228

Allright!

Right now i have made the scenario work by:

Adding a bunch of variable names, and a bunch placeholders to the page. The user can then fill them out as they see fit. And omit filling out ones to create another kind of layout.

{variable name="image1" label="image1" tab="Column 1 image 1" type="mediafinder" mode="image"}{/{variable name="image2" label="image2" tab="Column 2 image 1" type="mediafinder" mode="image"}{/

{% placeholder column_1_1 title="Column one text 1" %}{% placeholder column2 1title="Column two text 2" %}

Javascript on the frontend then removes empty img tags.

The problem with this from the clients perspective is that they have to click around between a bunch of placeholder tabs and a bunch of Syntax Fields, and omit ones that they don't want to use.

It seems it would be relatively easy to make a plugin that:

Shows a list on the static page backend where clients can add either a syntax field (to add an image or a video), or add a placeholder. Then drag n drop reorder them, or group them together to control where on the page they appear. Instead of the two tab lanes that appear at them moment.

If you can point me in a direction or just tell me that it is indeed possible to do this, i will go ahead and try to create that plugin/extension, as i am quite familiar with the laravel framework.

Thanks in advance!

1-3 of 3

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