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

phplee
phplee

Hi

Im using Pages plugin and have several layouts. I either want to hide certain layouts from pages so my user doesn't get confused or set a default layout. is this possible.

thanks

LookAgency
LookAgency

To hide layouts from the Pages plugin, just don't include the [staticPage] component in the particular layouts that you want to hide.

To have a 'default' layout, just give the layout file that you want to be default or first in the list a file name that causes it to be listed before any other (ex. '0-default.htm') and it will be listed first in the list of layouts and will be selected by default.

jcorapi3122
jcorapi3122

That's ridiculous. There's gotta be a better way than using '0-default.htm'?? lol

Eoler
Eoler

jcorapi3122 said: That's ridiculous. There's gotta be a better way than using '0-default.htm'?? lol

It's not ridiculous, it's open source and you can add it /extend it. Oh wait, someone already did: https://github.com/rainlab/pages-plugin#default-page-layout

1-4 of 4

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