Hi Rafael,
thank you for giving me some insights for the new concept.
I found what I was searching for.
Seems like the new structure is based on a sceleton coated by the
specific view-templates.
I see that it should be possible to enhance some blocks by modules
without touching the original template files.
There is a tutorial on oxidforge for that. It will be interesting to see
how this integrates into the current framework and to what extent a
module is able to control where its own block-part comes to the daylight.
Regards,
Mitch
Am 19.07.2011 14:42, schrieb Rafael Dabrowski:
> Hi,
> $sidebar is just a Variable within templates, which is set while including
> page.tpl(see: details.tpl).
>
> The concept behind is very simple. It is like a bottom up (inner out)
> strategy.
> You begin in the middle by saying your view/xxx.php to use a file in
> page/xxx/xxx.tpl this file contains your content for your main content area*
> and includes layout/page.tpl (with or without sidebar statement) page.tpl
> includes then base.tpl where the content will be rendered.
>
>
> *You are not writing your output directly but append "Blocks" (do not mix
> with new block feature) which will be outputed in base.tpl. All Template
> Files(View classes aswell) wich will be run through can append some content
> to them: [{capture append="oxidBlock_sidebar"}]Your Content[{/capture}]
> So you are able to define content within details.tpl which will be displayed
> in the sidebar eg. additional information for a product.
>
> In my Opinion you now have now more possibilities to make a nice layout than
> before.
>
> Kind Regrads
>
> Rafael Dabrowski
>
> HEINER DIRECT GmbH & Co. KG
> Auguststr. 1
> 53229 Bonn
>
> fon +49 228 9732 - 406
> fax +49 228 9732 - 410
> eMail [email protected]
> web www.heiner-direct.com
>
> Sitz: Bonn
> Amtsgericht Bonn, HRA 6217
> USt-IDNr. DE814539764
>
> Komplementärin: Heiner Verwaltungsgesellschaft mbH
> Sitz: Bonn
> Amtsgericht Bonn, HRB 15435
> Geschäftsführer: Joern Heiner
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Mitch Köhler
> Gesendet: Dienstag, 19. Juli 2011 13:25
> An: [email protected]
> Betreff: [oxid-dev-general] editing OxBlocks
>
> Hello list,
>
> I am not very comfortable with the new templating-concept of 4.5.
> While it was possible to get an overview over the whole template in pre
> 4.5-versions, the new structure confuses me a little bit.
>
> For example in the current Azure-theme you can find in
> ./out/azure/tpl/layout/page.tpl a var named $sidebar.
> Where can I find the definition of that variable?
>
> How does the workflow looks like with the new concept?
>
> Thanks!
>
> Regards,
> Mitch
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
>
> Der Inhalt dieser Nachricht ist ausschließlich für den bezeichneten
> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Nachricht
> oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der
> Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser
> Nachricht unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem
> Absender der Nachricht in Verbindung zu setzen. Diese Nachricht wurde durch
> einen Virenscanner auf Viren und sonstigen schädlichen Inhalt geprüft, jedoch
> wird keinerlei Haftung für Schäden wegen Viren übernommen. Auch wird keine
> Haftung für Schäden übernommen, die aus einer Veränderung des Inhalts dieser
> Nachricht durch Dritte entstehen können. Wenn Sie auf diese Nachricht
> antworten, beachten Sie bitte, dass durch innerbetriebliche Regelungen Ihre
> E-Mail eventuell auch durch einen anderen als den bezeichneten Adressaten
> gelesen werden kann.
> This message is confidential and intended solely for the use of the
> individual or organization to whom it is addressed. Should you not be the
> intended addressee of this message or his or her representative, please note
> that publication, replication of the contents by any means or further
> communication of the content is not permissible. Should you have received
> this message in error, please notify the sender. This message was scanned by
> a virus and content filter but liability for any viruses transmitted will not
> be accepted. Furthermore we are not liable for damages arising from
> alteration of the contents of this message by a third party. If you reply to
> this message please keep in mind that due to innerorganizational regulations
> your message could probably be read by someone else than the intended
> addressee.
> _______________________________________________
> 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