Sure, this is doable with a few tricks. Here's the basic idea. Let me
know if you need more details:
[from]
Title: [text title][submit]
[box content]
[session target_fix blog.{=title}]
[sesson savedata title]
[session create {=content}]
[form]
[(search group=blog*)]
Cheers,
Dan
P.S. The fix on the end of target triggers the target command to strip
punctions (see commands.php). We could do space-to-hyphen here if we
wanted. Without the fix, spaces get converted to underscores in the
BOLTfixpageshortcuts function, and some punctuation triggers various
page name shortcuts. Or you get an invalid page name. Thinking about
it, those shortcuts could also be made configurable--see $rr1 and $rr2
in lines 1552-1553 in engine.php. That would be a nice hook into the
code.
On Mon, Mar 2, 2009 at 2:20 PM, Hans <[email protected]> wrote:
>
> Dan - since you mentioned to do feature request now:
>
> Since new pages are created with the action.create form, in which the
> user types in a name, as a user/author i assume that typing in a name
> consisting of several words, that these will become the page title and
> be displayed as i typed.
> Like i want a nee page and want it called: "Request For Automatic Titles"
> then that should become the title, and i expect it to show 'Request
> For Automatic Titles'
> and not 'request_for_automatic_titles'
>
> I find this very useful, especially in forums and blogs. Special
> characters can be allowed, as well as punctuations, hyophens etc.
>
> As a feature i'd like this to be easily enabled, but not by default,
> since we need dots as group separators.
> Or create a valid pagename from the input string, use dots as group
> separators, strip away all other punctuations, make spaces into
> hyphens not underlines.
>
> Maybe all this is already easily doable with a special form, just tell me.
>
> It was really good to this for the Fox forum i created for PmWiki. a
> new forum page was always in the same group, and the new page subject
> became title of the new page, and th epagename was a sanitised
> filtered version of that, to arrive at a valid page name.
>
> As i mention hyphens vs underscores as word separators: it seems as i
> hear the google is preferring hyphens a sseparatiors in url links, an
> dwill take the words as keywords into account. It is also easier to
> read.
>
> anyway, just some thoughts on this vast subject.
>
> Cheers,
> ~Hans
>
> PS: v2.60 seems to behave very well, congratulatuions! I know the
> challenge was immense!
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---