Hello all

I'm working on the new blocks feature in 4.6.0 and I had some further questions:

1. When specifying the SQL to override a block, what is the meaning of the OXPOS field?

INSERT INTO `oxtplblocks` (`OXID`, `OXACTIVE`, `OXSHOPID`, `OXTEMPLATE`, `OXBLOCKNAME`, `OXPOS`, `OXFILE`, `OXMODULE`) VALUES ('test1', 1, 'oxbaseshop', 'widget/sidebar/partners.tpl', 'partner_logos', 1, 'mypartner', 'partnerlogo')

2. My new block uses oxmultilang for some strings eg.

[{ oxmultilang ident="SHOP_PERF_XYZ" }]

I tried adding this constant to the file modules/mymodule/en/module_options.php. However this is not read by the system and I see an error in the rendered output like "ERROR : Translation for SHOP_PERF_XYZ not found!"

Which is the correct place to put these translation strings for blocks?

3. I am also using an admin block to add a new variable to the Core Settings/Performance tab of the admin module. My new admin block looks like this:

            [{$smarty.block.parent}]
            <tr class="conftext[{cycle}]">
             <td valign="top">
<input type=hidden name=confbools[blEnableTwitter] value=false> <input type=checkbox name=confbools[blEnableTwitter] value=true [{if ($confbools.blEnableTwitter)}]checked[{/if}] [{ $readonly }]>
             </td>
             <td valign="top" width="100%">
             </td>
            </tr>

I checked this and I can see that the variable is being saved to the database in the oxconfig table. However I am not sure how to read this variable back in my template file. Can you advise me the code to use in the template file to retrieve the value of the blEnableTwitter variable?

Thanks

Vikram
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to