> 1. There are images which build up the design. Tell
> me pro's and contras
> about placing them in midgard attachments or not? At
> this moment I tend
> that I would leave them outside; as it is simpler,
> and do not see
> reasons for uploading them to the database.

I think the Nadmin image upload functionality is meant
as a user-friendly management tool for images that
change frequently, eg because linked to content.  I
wouldn't use it for parts of you look and feel.

> 
> 2. I have a few bits of the page which clearly
> belongs to the style, but
> changes a bit on every page. For example, the <body>
> tag attributes. The
> "onLoad" attribute is heavily used by dreamweaver to
> preload images, and
> I am not sure that it is the same on all pages. :(
> Should I create a
> style element, and overwrite it with a page element
> where necessary? I
> have to atomize the style, if I want to create an
> element for each of
> attributes, e.g. bgcolor, text etc... Other ideas?

What I sometimes do with recurring chunks of html
where you only want to tweak some tiny bits or
properties every time you use it, is putting them into
a php class and storing that in a snippet.  For every
bit that can change, you create a property that is
initialised on the default value.  Take for example
some navigation elements on http://wwwdev.itforum.be I
would like to use further on in the site: 
I put in the style something like 
   mgd_include_snippet("classes/vfb_framelet");
  $nav_framelet = new vfb_framelet();
?>  <[body-attrs]>    <?
  $nav_framelet->display();

Possible content of that element on a page could be: 

  $nav_framelet->framelet_align = "default";

Then you only have one element to override in the
pages, but still you do not have to copy every time
the chunk as found in the snippet
"classes/vfb_framelet" :

class vfb_framelet

{
    var $framelet_align  = "right";
    var $framelet_header = "Framelet Title";
    var $framelet_body   = "line<br>line<br>line<br>";
    var $framelet_width  = "120";

    function display ()
    {
        ?>
<table width="<? echo $this->framelet_width;?>"
border="0" cellspacing="0" cellpadding="0" align = "<?
echo $this->framelet_align;?>">
  <tr bgcolor="#004080">
    <td width="1"></td>
    <td>
      <table width="100%" border="0" cellspacing="0"
cellpadding="4">
        <tr>
          <td class="navhead" bgcolor="#004080"
valign="top">
            <? echo $this->framelet_header;?>
          </td>
        </tr>
      </table>
    </td>
    <td width="1"></td>
  </tr>
  <tr>
    <td bgcolor="#004080" width="1"></td>
    <td>
      <table width="100%" border="0" cellspacing="0"
cellpadding="4">
        <tr>
          <td bgcolor="#FFFFFF" ><? echo
$this->framelet_body;?></td>
        </tr>
      </table>
    </td>
    <td bgcolor="#004080" width="1"></td>
  </tr>
  <tr bgcolor="#004080">
    <td height="1"></td>
    <td height="1"></td>
    <td height="1"></td>
  </tr>
</table>

        <?
        }
}



By the way: even nicer would be if you could let these
"thingies to change" depend on the displayed article,
because then you could just use one style, reading the
properties from article parameters you can set via
nadmin?

pascal


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to