Todd Daniel Woodward wrote:
>
> This is a rather long one:
>
> "Macro's" or "Glossaries" in Midgard?:
>
> OK. Let's look at a possible scenario: Everytime the word
> "Mugwumps" appears on a site, no matter where, I want it to
> be BOLD and be a link to <http://www.mugwumps.com>. (It
> doesn't really exist, at least I don't think it does.)
> Typing all the tags necessary for this when it appears in
> content REPEATEDLY across the site is time consuming. I'd
> like to be able to create a "macro" (in the language you
> used in the example site) or a "glosarry" (my language)
> entry, so whenever I type <[MGWC]> or even if it just
> encounters the word, it replaces it with <B><A
> HREF....>Mugwumps</A><B>.
One way would be to define a variable
$mugwumps = "<B><A HREF....>Mugwumps</A><B>";
in a style element. In your page you could then include
&(mugwumps);
If you want it to be fully automatic for the content provider,
instead of inserting <(content)> you could pull the article or
page with the midgard functions, do an ereg_replace on the macros
(in a associative array would be easiest I think) and display it.
> mgw_get_article:
>
> Can you combine :h and :f together?
If you want formatted text + HTML, use :f and include the
html in [<... >] tags. Thus
This is a preformatted text with some [<HTML encoded <b>text</b> in
it>].
> Style/Layout Admin:
>
> I haven't seen it demonstrated anywhere yet: Using
> Layout/Style Admin, is it possible to vary it depending on
> where you are in a site?
>
> Example: On the homepage at RadioDigest.com, our left-hand
> nav is a list of the different markets we have. That is a
> style element that is called from a master table style
> element. As you drill down into the site, we'd like to vary
> that left-most column as it is on our site. Example: If you
> go to radiodigest.com/los_angeles, the leftmost column is
> specific to that market (AM/FM Dials..station listings,
> ratings, etc.). And our article pages don't have a leftmost
> nav column at all.
>
> Suggestions for varrying layout across a site?
Inherit the style for different parts of your site and replace
the elements you want changed in the new style. Then set the
page for the subsections to the various substyles.
Bye,
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]