« Return to Thread: Sidebar + Common elements -- How to?

Sidebar + Common elements -- How to?

by Raavi Raaj :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have 5 views which require a sidebar (out of 30 odd views). I have one layout script.
The sidebar content is mostly the same (except for one block which is specific to the view)

What is the best way to approach this (in ZF style, of course)?

-------------------------------------

Also, I have some HTML that I would like to include is the view based on some CRITERIA. For example...
HTML = If you enjoyed this article. Do consider <a href="/rss" title="RSS 2.0 feed">subscribing to our feed</a>
CRITERIA = Search visitor

Now, where should I store the HTML? What is the best prtactice for common elements like these?

All help is appreciated.

-R

 « Return to Thread: Sidebar + Common elements -- How to?