I have had a further attempt to set template for a specific block instance using Xanthia. I was concerned that the apache (2.0) /
PHP (4.2.2) configuration on my Linux test server was faulty and not dealing with pnRender/Xanthia pages properly so installed apache2triad on my Windows XP box. I cleanly installed
PN .726 on this XP server with Xanthia / pnRender and was unable to set template for a specific block instance
Can anyone suggest what I am doing wrong?
My steps are for a block template file "posterblock.htm":
1. create template (with notepad) and save in THEMENAME/template/blocks/posterblock.htm
2. click green visual block editor activiation flag
3. select newly created template from drop-down and click adjacent submit button (and the page refreshes without using my block template)
I have also tried the Visual Block Editor's "Page Refresh" button (no success). A check of the block template content via Edit Theme -> Theme Templates -> [Edit] (for "posterblock.htm" template) confirms that the template is loaded into the database.
Having had little success with block-specific templates I have tried a work-around by creating my own plug-in to determine module loaded and hence the block style to use within my own lsblock.htm:
The effect that I want is for some blocks to display with $content, no $title and appropriate style.
Does anyone have any suggestions as to why the block-specific templates are not applied?
The "getblockelementattributesbymodule" plugin determines the module loaded and returns a string such as:
id="#mainposter" class="signblock"
I quite like the flexibility of creating plugins and can see that it will be quite useful ...
Can anyone suggest why the block-specific templates are not being applied. Is this an incomplete feature in Xanthia
RC2?
Thanks,
Graeme