Hi,
I have followed the tutorial to create a journal on the AC page and it works like a charm.
Now what I would like to do is to create an empty journal without any pages.
since I do not know what the first entry will be and that the journal will only be created at a later time ideally the journal should be empty at the beginning with no entries at all.
As it doesn't seem to be possible to create an empty journal and the first page is always present I figured I would create a journal menu with first temporary page and that I could replace it with another journal page at a later time when I need it.
The problem is I cannot seem to be able to remove this first temporary page.
I have tried removing the first page using various indexes: -1, 0, 1.
When the first page is the only page in the journal, index -1 throws an exception
When there are 2 pages present in the journal, using indexes -1, 0 ,1 either removes the last page or throws an exception as well
the first page cannot simply be removed...
Is there a way to do it? thanks!
Comments
Journal's are intended to always have at least one page. I will see if that can be ameneded, but an alternative approach (pending the above fix) would be to simply hide the element until you're ready to show it. If you're unsure which page will be added first, you could have a "dummy" first page which is removed immediately after the second is added, but before the element itself is visible.