Boneshank Posted September 6, 2014 Report Share Posted September 6, 2014 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! Quote Link to comment Share on other sites More sharing options...
falkencreative Posted September 6, 2014 Report Share Posted September 6, 2014 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. Quote Link to comment Share on other sites More sharing options...
Boneshank Posted September 7, 2014 Author Report Share Posted September 7, 2014 Thanks Ben. Worked like a charm. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.