any ideas to use nette in making dynamic blocking system

Notice: This thread is very old.
moustafa.elkady
Member | 3
+
0
-

hello every one,
in advanced cms systems
we can see “block manager” in the admin panel that you can change the layout design
you can add blocks or gadgets or Widgets in any place
and that depend of non one templete file system like nette
its depends on one templete file has the main layout and content of each page is not templete file
its go to the db get the order of gadgets and build it and past in the main layout and send it to the brwoser

any ideas?

Patrik Votoček
Member | 2221
+
0
-

You maybe need something like this http://translate.google.com/translate?…

moustafa.elkady
Member | 3
+
0
-

i did not compeletely understand
i want make it multi blocks
each block has small tempelete file

and allocate those files and attach theme in the general layout
and sent it to the user

hrach
Member | 1819
+
0
-

Make each widget as a component. Then render array of widgets. The template of widget could be parametrized by some “selected” template (with some fallback to default template).

moustafa.elkady
Member | 3
+
0
-

hrach wrote:

Make each widget as a component. Then render array of widgets. The template of widget could be parametrized by some “selected” template (with some fallback to default template).

thanks close
can you give me some code example