Jump to content

Ben's Cms - Changing Default View To 'preview Page'


Boneshank

Recommended Posts

Hey all, 

I'm still playing around with Ben's CMS system, changing a few things here & there, to taste.

I'm wondering what exactly I need to do to change the default view of the editable fields to 'preview', rather than 'edit'.

I would much rather a user's first view to be the read-only version.

I've played around with the toggle in the JS, but it doesn't seem to be the place I'm looking for...

Does the "b_editing" class that gets added to the body tag have to do with it?

 

Thanks!

Link to comment
Share on other sites

Probably the easiest way to do it would be to use CSS to hide .fp_edit_type and .fp_edit_link (or whatever class your site uses, in case you have changed the "fp" prefix) when the page first loads. You could do this directly with CSS (ideally), or with a call on page load to 

 

$('#edit_toggle').click();

 

You'll also need to change the "Preview Page" link to be "Edit Page" when the page first loads.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...