Dashboard --msg=xxxx not showing up [SOLVED]

A place for users and developers of the Xataface to discuss and receive support.

Dashboard --msg=xxxx not showing up [SOLVED]

Postby tomhousley » Mon Apr 19, 2010 3:03 pm

Hello,

I have created a dashboard as per instructions on wiki.

Problem I have is that if I use:
Code: Select all
{fill_slot name="main_column"}

The url parameter --msg= doesn't show up.

I can use
Code: Select all
{fill_slot name="main_section"}

but would like to know how to get round the limitation of using main_column

Many thanks, Tom
------------------------------------------------------------------------------------------

Since posting the message, I think I sorted it....

Changed the Dataface_Main_Template to the following:

Code: Select all
   {block name="before_main_column"}
   
   {* moved the bit that displays the message here so that messages show up when fill_slot name="main_column" *}
      {if $ENV.APPLICATION_OBJECT->numMessages() > 0 }
         {block name="before_message"}
         <div class="portalMessage">
            <ul>
            {block name="message"}
            {foreach from=$ENV.APPLICATION_OBJECT->getMessages() item="msg"}
               <li>{$msg|nl2br}</li>
            {/foreach}
            </ul>
         </div>
         {block name="after_message"}
      {/if}
      
      {if $ENV.APPLICATION_OBJECT->numErrors() > 0 }
         {block name="before_errors"}
         <div class="portalMessage">
            <h5>{translate id="scripts.GLOBAL.HEADING_ERRORS"}Errors{/translate}</h5>
            <ul>
               {block name="error"}
               {foreach from=$ENV.APPLICATION_OBJECT->getErrors() item="error"}
                  <li>{$error->getMessage()|nl2br}</li>
               {/foreach}
            </ul>
         </div>
         {block name="after_errors"}
      {/if}
      
   {* ------------------------------------------------------------------------------------------ *}
   
   {define_slot name="main_column"}
tomhousley
 
Posts: 52
Joined: Thu Feb 26, 2009 1:02 am
Location: United Kingdom

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 32 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved