List Info

Thread: Re: left bar content area




Re: left bar content area
country flaguser name
United States
2007-05-04 09:52:36
Somewhere the value for editable types is stored, because you can add it to the config screen.

/samples/meshcms/admin/editconfig1.jsp >> Visually editable types:

----- Original Message ----
From: Larry Morroni <larrymorroni.com>
To: General discussion about MeshCMS <meshcms-discussionlists.sourceforge.net>
Sent: Friday, May 4, 2007 10:35:54 AM
Subject: Re: [MeshCMS-Discussion] left bar content area

I followed this and it looks great.&nbsp; The one issue I had was that when I
went to visually edit newsflash.jspi in the filemanager, I get "Some
errors have occurred:&nbsp; newsflash.jspi cannot be edited visually.

Any way to get around that?
Thanks,
Larry

Alan Burlison wrote:
>; I've done something *slightly* similar already.&nbsp; In my case it wasn't
>; a left bar, but headers and footers - however the principle should be
> the same. ; I used the parse module to insert the header into the page
> body:
>
; &nbsp;  <cms:ifnotediting&gt;
>&nbsp; &nbsp; &nbsp;   ; <cms:module location="newsflash"
> &nbsp;   ; &nbsp; &nbsp;  name="parse:/newsflash/newsflash.jspi" />
>  ; &nbsp; </cms:ifnotediting>
>
> This inserts the content of newsflash/newsflash.jspi into each page at
> the correct place, and I can edit /newsflash/newsflash.jspi by
> navigating to it in the file manager. newsflash.jsp doesn't actually
&gt; contain any dynamic content, but it could if required:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>; &nbsp; "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
&gt; <% taglib uri="meshcms-taglib" prefix="cms" %>
> <html&gt;
> <head&gt;
> <title&gt;Newsflash</title>
> </head&gt;
> <body&gt;
> <center>
> <table border="0" cellspacing="10">
> &nbsp;   <tbody&gt;
>&nbsp; &nbsp; &nbsp;   ; <tr>
  ; &nbsp; &nbsp; &nbsp; &nbsp;  <td><img alt="News Flash!" src="<cms:contextpath
> />/newsflash/newsflash.gif" title="News Flash!" /></td>
>  ; &nbsp; &nbsp; &nbsp; &nbsp;   <td><strong&gt;<span class="large">Something
> Important!</span&gt;</strong></td>
>  ; &nbsp; &nbsp; &nbsp; </tr>;
; &nbsp;  </tbody>
> </table>
> </center>
> </body&gt;
> </html&gt;
>
> The other thing necessary is to tell Tomcat how to handle the jspi files:
>;
; &nbsp;  <servlet-mapping&gt;
>&nbsp; &nbsp; &nbsp; &nbsp;  <servlet-name>jsp</servlet-name>;
; &nbsp; &nbsp; &nbsp;  <url-pattern>*.jspi</url-pattern&gt;
>&nbsp; &nbsp;  </servlet-mapping&gt;
>
> Calling them '.jspi' instead of '.jsp' stops MeshCMS from trying to
> handle the files itself, and configuring Tomcat so it knows about them
> means that they still get rendered corrrectly before MeshCMS interst
&gt; their content into the output page.
>
> It is also possible to include content that changes depending on which
> part of the document tree you are in, using the searchfile tag:
>
; &nbsp;  <cms:ifnotediting&gt;
>&nbsp; &nbsp; &nbsp;   ; <cms:searchfile name="sponsor.jspi" include="true" />
>  ; &nbsp; </cms:ifnotediting>
>
> So this will look 'up' the document tree and find the 'nearest'
> sponsor.jspi file, then include it in the page at the appropriate
> point - again, this file can be edited using the MeshCMS file manager.
&gt;

--
Larry Morroni (larrymorroni.com)
voice:&nbsp; 610.891.9922
http://morroni.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
MeshCMS-Discussion mailing list
MeshCMS-Discussionlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/meshcms-discussion



Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )