Ah, the missing link. Thank you.
That all works fine but still there is the question of the default [ ]
I toggle the setup with them in site.php and - in=no checkbox - out=checkbox.
It irks me :(
>> At this stage you wouldn't even need more custom fields other than this one.
Yes but, a bit of a tangent that relates to my hidden pages forming a part of a sub-set of pages.
Nav click on 'camping' and a page is loaded. The plan is to have a small list of links at the top of that page that connect to the hidden pages: 'tents' 'backpacks' 'stoves' [for example]. And each of those sub-pages has the same link set at the top.
The question is - how to dynamically inject that href text?
I was wondering about using an additional custom field to do this
Code: Select all
{
"gallery": {
"type": "bool",
"label": "Page Links",
"tip": "Add link list to gallery pages."
}
}
And then, (in page.php?) set up a querry like
Code: Select all
if ($page->template() == "gallery")
// then php build the list and echo - before $page->content();
I really am not sure exactly what the above should be but hopefully you get what I am aiming for?
I wouldn't be surprised if there is a better way to achieve and would be delighted to have suggestions. In the meantime I am enjoying extending my bludit knowledge with custom fields - ideally in the plural - with brackets?
I hope that this is clear enough?
thx - Kusalo