Edit: this is v1.9.
I can't get this to work at all. Tried two function calls (different tab names) on the same line, on adjacent lines, with/without whitespace between them: nothing. The fields are recognised in the 'Preview' but only the first call generates a tab on the Edit page.
Comment marks are honoured in the 'Preview', but ignored on the Edit page (tabs appear for commented calls).
(I only tried Firefox & Chromium in Linux.)
Empty tabs are saved as such and the auto-inserted text is not saved unless changed. (Not the case for 'Main', but that's not unreasonable!)
This code:doesn't give me a tab for 'sidebar' (Edit page) and shows a position marked 'Index' on the preview. The logic works fine with whatever is already saved in the page. It's getting complicated ...
(2012-11-13, 03:37:52)jason.dixon.email Wrote: Having trouble with the multiple tag thing, though currently it should work with multiple tags under one php tag provided they are on the same line.
I can't get this to work at all. Tried two function calls (different tab names) on the same line, on adjacent lines, with/without whitespace between them: nothing. The fields are recognised in the 'Preview' but only the first call generates a tab on the Edit page.
Comment marks are honoured in the 'Preview', but ignored on the Edit page (tabs appear for commented calls).
(I only tried Firefox & Chromium in Linux.)
Empty tabs are saved as such and the auto-inserted text is not saved unless changed. (Not the case for 'Main', but that's not unreasonable!)
This code:
PHP Code:
<?php if (return_tab_content('->sidebar')){
insert_page_content('sidebar');
} else {
insert_page_content('index->sidebar');
} ?>
--
Nick.
Nick.