[LH4352] Use of placeholder LevelN_title tags

Ke
Ken Watts
Posts: 38
Joined: Mon Jul 03, 2017 8:40 pm
Platform: Windows

Mon Jun 01, 2020 11:45 pm Post

I'm setting up a system to write sections of my book to html for a serialization. I wanted the heading of each installment to consist of the Book title, the Part of the book, the chapter title, and number of the part of the chapter in this installment, like this:

Human Unforgiven
Love, Death, and Sin
Chapter One: Part One

So I've set up heading in compile to insert that at the beginning of the post like so:
TITLE PREFIX: <h1><$level2_title><br/><$level3_title><br/><$level4_title>:
TITLE SUFFIX: </h1>

Everything works perfectly, except that the $levelN_title tags are just returning the title of the current heading:

Part One
Part One
Part One: Part One

I'm wondering if I'm misunderstanding how that tag works, if this is a bug, or if it's just something that hasn't been fully implemented yet.

rw
rwfranz
Posts: 930
Joined: Thu May 28, 2015 9:41 pm
Platform: Windows

Tue Jun 02, 2020 12:59 am Post

The placeholder pdf says this:

Gets replaced with the title of the document at level N in the current outline
branch. For instance, “<$level1_title>” will be replaced with the title of the
document at level 1 of the current Compile group on the same branch as the
document in which the placeholder appears. If associated with an internal
document link, gets replaced with the title of the document at level N in the
outline branch of the linked document.


Looks like it's a bug. I'm not sure the placeholders have ever completely worked properly, but I think this one may be a new bug. Not sure; there've been quite a few for placeholder problems.
Just another user.

Ke
Ken Watts
Posts: 38
Joined: Mon Jul 03, 2017 8:40 pm
Platform: Windows

Tue Jun 02, 2020 5:34 pm Post

Thanks RW.

I'd change the title of this post to include "Bug" but I don't know how...

User avatar
devinganger
Posts: 2040
Joined: Sat Nov 06, 2010 1:55 pm
Platform: Mac, Win + iOS
Location: Monroe, WA 98272 (CN97au)
Contact:

Tue Jun 02, 2020 7:54 pm Post

You don't need to. If the L&L devs or staff read this, replicate it, and agree it's a bug, they'll update the thread title with the actual bug tracking number.

Us users putting [BUG] and [RC6] and all that other stuff in the thread doesn't do diddly at the end of the day.

Just make the title a simple, clean statement about the issue so people can find it.
--
Devin L. Ganger, WA7DLG
Not a L&L employee; opinions are those of my cat
Life has a way of moving you past wants and hopes

User avatar
MimeticMouton
Posts: 8824
Joined: Wed May 05, 2010 5:39 am
Platform: Mac + Windows
Location: city of rain
Contact:

Wed Jun 03, 2020 6:30 am Post

Yes, this is a bug and on the list. Thanks!
Jennifer Hughes
(MM for short)