- OXPOS is the ordering if multiple template blocks exist, means the order in which the blocks will be generated
- The language file should start with lang_ doesn't it? Also is this folder read by oxid? Why not copy it to the template language folder?
- Shop config vars can be loaded using oxConfig::getShopConfVar function

--

mit freundlichen Grüßen
Alexander Kludt


__________________________
Phone: 09283-5925453
Skype: kingschnulli
Email: [email protected]
Website: www.aggrosoft.de

__________________________
Aggrosoft it intelligence GbR
Tannstrasse 12
95111 Rehau
GERMANY

Sitz Rehau, Amtsgericht Hof
Steuernummer: 223/165/54508
Ust.-Id. Nr. gemäß § 27 a Umsatzsteuergesetz: DE260722773

___________________________
Diese Nachricht ist nur für den Empfänger () bestimmt, sollten
Sie nicht der Empfänger sein löschen Sie diese Nachricht
umgehend und geben Sie uns bitte per Email ([email protected]) Bescheid
über den fälschlichen Erhalt.





Vikram Vaswani
12. Januar 2012 12:16

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
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to