[mambo] Mambo Templates
Mitch Pirtle
mitch.pirtle at gmail.com
Sun May 1 19:53:34 EDT 2005
On 5/1/05, Edward Maas <maase at maas-nyc.com> wrote:
> Community,
>
> I am looking for a way to extrapolate metadata about content and
> place it nicely within my template. For example, I would like to be
> able to tell what section a given content item is attached to and make
> logical decisions about images etc accordingly. I could write the logic
> if it was documented what some of these variables were. Any guidance on
> the best way to approach this problem will be greatly appreciated.
Hey Ed,
This is all tied around $Itemid (which tells us how the content was
navigated to).
This is a legacy deal, as Mambo completely decouples content from
navigation. In fact, you can have one particular page, navigated to
from completely separate menus where the content appears like it is in
completely different sections.
Don't forget, you can also assign templates to sections, so instead of
writing all that checking stuff in your template, just create a
different template for each section. That way, you can move content
and sections around, and even change templates, but not have to recode
all that logic (that figures out where you are in the first place).
The current documentation is located here:
http://help.mamboserver.com/
...and you can also browse the generated API docs online here:
http://help.mamboserver.com/api
On a related note, I'm working on some training materials for 3rd
party developers, and will be making announcements as soon as things
are lined up and solidified.
--
Mitch Pirtle
Mambo Core Developer
More information about the Joomla
mailing list