Previewing pages

18 views
Skip to first unread message

TheOldFellow

unread,
Jul 18, 2014, 4:27:24 AM7/18/14
to bolt...@googlegroups.com
When I preview in the page editor, it wipes all previews OK, but then wipes all the changes I made in the edit window.

This seem to me to be major critical bug.

I tried it on another server, another hoster, in case it was a PHP version issue, but it's the same everywhere.

TOF.

The Editor

unread,
Jul 18, 2014, 12:53:17 PM7/18/14
to BoltWire
Thanks for pointing this out. I don't use preview too much.  Actually, at first I couldn't figure out what you were saying, because it works in the CREATE action. But I see now that the EDIT action doesn't load the preview content in the edit box properly.

Here's an easy fix:

Go to boltwire/system/action.edit, and manually replace the following line with the second. If you look at the code you can see what is happening:

From:
[box content cols=60 rows=12 gui=true][(source {p} post=content)][box]

To:
[box content cols=60 rows=12 gui=true][if equal {?submit} PREVIEW]<(preview content output=escape)>[else]<(source {p} post=content)>[if][box]

It will be fixed in the next release.

Actually, I think the post=content part is supposed to take care of this--so it may be a bug. But this will get you going until the next release...

Cheers,
Dan




--
You received this message because you are subscribed to the Google Groups "BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boltwire+u...@googlegroups.com.
To post to this group, send email to bolt...@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Tiffany Grenier

unread,
Sep 15, 2014, 3:53:52 AM9/15/14
to bolt...@googlegroups.com
I just wanted to remind anyone passing by that Dan's fix hasn't been added to this September's release (yet?). The patch works however great.

The Editor

unread,
Sep 15, 2014, 8:07:17 AM9/15/14
to BoltWire
I'll be putting out a new release today with many more fixes. This time I did a thorough code review and documentation of all the functions in BoltWire. The correct way to do this is now:

[box content cols=60 rows=12 gui=true]<(source {p} post=content)>[box]

I've gone through and updated all the system actions. The other method should still work--but I've enhanced the source function to serve all our "source" needs. And preview is not optimized for generating previews. 

Cheers,
Dan




--

Tiffany Grenier

unread,
Sep 15, 2014, 12:44:49 PM9/15/14
to bolt...@googlegroups.com

That sounds great. I look forward to upgrading my website tonight.
Thanks
Tiffany

You received this message because you are subscribed to a topic in the Google Groups "BoltWire" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/boltwire/Q-s561WeswA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to boltwire+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages