Replies below:

On Thu, Oct 16, 2014 at 6:44 PM, S. & A. <[email protected]> wrote:

> Thanks Dan, the patch worked great!  It's all good now.
> Just a few other questions:
>
> 1.) I guess info vars are not case sensitive, are they?  Is there a quick
> and easy way to make them be case sensitive?  If it's not quick and easy
> don't worry about it, I think I can work around it.
>

I've tried to make as many things case insensitive as possible. No way to
change that.


> 2.) Is there a way to have the index include the info vars?  For example,
> if my page includes the line, "Hello, my name is {name}, what's your
> name?"  And that info var called {name} equals "Shawn".  Is there a way to
> have the index see that line as "Hello, my name is Shawn, what's your
> name?"  So if someone did a search for "Shawn" it would bring up that line?
>

No, this is not possible without doing a custom index function.  You could
try something like this. Then set mode=vtext instead of text...

function BOLTindexDoVText($page, $args='') {  //added V for text with vars
pre-processed
$BOLTindexStrippedChars = Array ('!', '"', '#', '$', '%', '&', "'", '(',
')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[',
'\\', ']', '^', '_', '`', '{', '|', '}', '~', "\n", "\r", "\t");
if ($args['data'] == 'true') $data = 'data';
$content = BOLTloadpage($page, '', $data);
$content = BOLTdomarkupTable($content, $page, 'vars');  // this line is
added to do the replacements
$content = preg_replace('/\{(.*?)\}/', ' ', $content);
$content = preg_replace('/\[(.*?)\]/', ' ', $content);
$content = preg_replace('/\<(.*?)\>/', ' ', $content);
$content = str_replace($BOLTindexStrippedChars, ' ', $content);
$textArray = array_unique(explode(" ", $content));
return implode(" ", $textArray);
}


> 3.) Referring to your Bible recipe, is there a way to list the Old
> Testament books under one heading and the New Testament books separately,
> under another heading?  So it would probably use a search like [(search
> group=bible.1 through bible.39)] for the Old Testament.  And something like
> [(search group=bible.40 through bible.66)] for the New Testament books.
> And I'd like to have each book name be a link to the first chapter of the
> book.
>

There's a couple ways:

[(search group=bible* if='less {+p2} 40')]  or much faster [(list for=1-39
fmt=bible.{+p}.1)]

In the latter put {+p} where ever you want to see the numbers 1-39. Set the
fmt however you want. Just gave you an example

4.) I would also like to list the above books in several side by side
> columns.  Is there a way to do that?
>

You could try using tables
[t][r]
[c]col1
[c]col2
[c]col3
[t]

Thanks a lot!
> Shawn
>

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Reply via email to