I tried your actions.solutions.create code and with a little tweaking it is almost perfect.
I need to do some cleanup on what it puts in the box when it starts creating the page, but that looks pretty straightforward. Thanks! On Sep 17, 12:47 pm, The Editor <[email protected]> wrote: > Reply the easiest would be to create a new action, perhaps: action.createhere. > > Copy the contents of action.create to action.createhere and simply change > this: > > [text target size=25] > > to > > [text target {p} size=25] > > Then you can simply modify the parts of the page name. Or to be a bit > spiffier, how about: > > [text newpage size=25][session target {p}.{=newpage}] > > This will make whatever you create a child page of the current page. > It could get deep if you don't watch yourself... > > Or this > > Path [text mypath {p} size=25] Page: [text newpage size=25][session > target {=mypath}.{=newpage}] > > Or you might do something a bit fancier like this. It is from BoltWire > and is at action.solutions.create, so whenever I do action.create in > solutions hierarchy, this action gets called instead: > > ! >>Create Page<< > > [form id=boltform] > Plugin name:[text sol_name size=25] Section: [select sol_sect][(search > group=solutions fmt="[option {+p2}]" join='' > type=-header,footer)][select] > [if* set {?boltkey}] > [(preview content)] > [box content cols=60 rows=16 gui=true][(preview content output=escape)][box] > [else*][box content cols=60 rows=16 gui=true][(preview content > output=escape)]/=<box> > Summary: Brief description of plugin > Status: Stable/Experimental > Maintainer: [[~=/{id}/=]]. > Downloads: Files to download... > </box> > > Please include any instructions needed for installation or use of this > plugin. Use "!!" section headers to define major sections. That's > about it. Thanks for sharing your plugin!=/[box] > [if*] > [submit name=boltsubmit[] value='>>PREVIEW<<'][submit > name=boltsubmit[] value=SAVE] > [session if "equal '{=boltsubmit}' '>>PREVIEW<<' ? warn=Preview Mode."] > [session warn] > [session target solutions.{=sol_sect}.{=sol_name}] > [session create {=content}] > [session author {member}] > [session changesummary "Page created by {=author}."] > [session savedata author,changesummary] > [session nextpage {=target}] > [form] > > You'll see it dynamically gives you options for existing categories > only and automatically suggests a template for the page. I just cut > and past--you could tweak as needed. > > Cheers, > Dan > > P.S. These are the kinds of things we need a big "cookbook" of > BoltWire markup recipes for. We really should get one started... > > On Thu, Sep 17, 2009 at 2:46 PM, Kevin <[email protected]> wrote: > > > Okay... so I created a solutions section on my own site so I can start > > moving over solutions that I have in my forum to the Wiki... finally > > have some time to play again. > > > I created category pages like: > > > MySQL Solutions > > Mysql Password Recovery - Webstack Configuration > > Solaris 10 Solutions > > Boot single user mode via cdrom readonly > > Solaris SVCS > > Starting DNS Bind > > DTLogin doesn't work > > Solaris 10 ZFS Solutions > > Adding a disk > > Creating a diskpool > > Snapshots and backups > > Upgrades with ZFS root partions > > rpool and ZFS root partiions > > > On the main solutions page, I am using > > > [(search group=tnet.solutions.* > > exclude="solutions.header,solutions.footer" template=toc)] > > > As I add new pages to the various sections, they automatically show up > > on the main solutions page and I have a similar search setup in the > > categories pages too. > > > that works okay. Like to change the format a bit, but for now it > > works. > > > One thing that I am finding is that creating new pages inside the > > sections is a pain. Too much typing... > > > If I am at a level, like in the Solaris SVCS area, and I want to > > create a page at that level, I'd like a button that I could press that > > uses the current path I am on and asks only for the page name. Kind > > of like create without all the extra typing. So the path would start > > out already with tnet.solutions.solarissvcs. and ask for the page > > name to add to the end. > > > I know that I could edit the section page, and add the link I want, > > save and then click on the missing page, but I'd rather not have to > > create any links on the page and use search to show what is in that > > section. > > > Not sure if this is a new action that I need to create or if this > > would be a good use of a form... might be a yes to both type answer?? > > > As I said, I'm sure someone else has done this already. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
