Part 1 - Sure: {bible.header::1} will output Genesis

Part 2 - You have two ways of doing this--the way you did with
conditionals, or by using the source function:

[(source member.{id}:var default='some value')]

I suspect the source function might be slightly faster.

Cheers,
Dan


On Tue, Oct 21, 2014 at 12:58 PM, S. & A. <[email protected]> wrote:

> Hi Dan,
> The way you suggested to list the OT and NT books of the Bible separately
> works well.  But I realized that since the page names are only numbers, I
> just get a long list of numbers instead of the names of the books.  Is
> there a way to use [(list for=1-39 fmt=bible.{+p}.1)] but have it display
> the book names from bible.header, instead of just the number?
>
> On another topic, I wanted to have a page with a data variable that is
> fetched from the current users page.  So I used {~uservar}.  But then I
> realized that if the person is not logged in nothing will appear in that
> spot; it will just be empty.  Is there a simple way to fetch the data
> variable from the users page if they are logged in, and fetch it from a
> generic guest page if the person isn't logged in?  I know I can use [if]
> statements, but I thought maybe there was something simpler.  I tried
> creating a member.guest page for people who aren't logged in, but of course
> that didn't work.
> I made a workaround by having the page fetch an info variable from
> code.settings, and that info variable in code.settings contains the
> following conditional statement (this way I don't have to write out the
> whole [if] statement every time I want to insert that variable into some
> page:
>
> infovar: [if login]{~uservar}[else]{site.vars:guestvar}[if]
>
> So this works, but I wondered if there was a easier or faster way to
> accomplish the same thing.
>
> Thanks!
> Cheers,
> Shawn
>
> --
> 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.
>

-- 
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