Re: Several thoughts

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Several thoughts

by David A Knight-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2005-04-18 at 19:06 +0200, Sven Salzwedel wrote:

> Well, I think we should create a dialog that only asks for document
> type, filename, template, css stylesheet and maybe encoding. The whole
> HTML things aren't not that much used today, because CSS is the better
> alternative and I think a modern IDE for web development should suggest
> to use CSS. Maybe this dialog could be opened even when the document was
> already created, so that you can edit this things dynamically. Maybe
> I'll play a bit with glade today or tomorrow.

Well I've finally got around to doing something along these lines.  The
attached screenshot is the current state that is in CVS.

Ignore the wrapping on the template filename, that is a bug already
reported in gnome bugzilla and patches available.

I did have the templates always visible above the name/folder section
before, but have gone with a mimicking of the standard save dialog.

The HTML Details tab there will only appear if the template is text/html
or application/xhtml+xml so isn't always visible.

The Templates from Site will only appear if the current site has
templates, either in /Templates or /<sitename>.data/Templates in the
case of golive created sites.

New global templates are added in  <prefix>/share/screem/templates and
look like

[Screem Template]
Name=Strict HTML 4
Comment=Strict HTML 4 Document
Type=text/html
URL=file:///usr/share/screem/resources/HTML/strict4.html
Path=/Web Development/HTML



David

--
Make your website SCREEM - Site Creating & Editing EnvironMent

URL:  http://www.screem.org/
Mail: david@...




newdocument.png (14K) Download Attachment
signature.asc (196 bytes) Download Attachment

Re: Several thoughts

by David A Knight-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2005-12-11 at 17:17 +0000, David A Knight wrote:

> New global templates are added in  <prefix>/share/screem/templates and
> look like

Site templates are now supported, stored in
<prefix>/share/screem/sitetemplates

The url specified should point to a tar.gz, zip file etc.

There is a problem with this though.  gnome-vfs is broken with regards
to accessing archive files so there were 2 options.

1)  allow only specific formats.  tar.gz, zip etc. and call the command
line apps
2)  call file-roller which will handle many formats without needing to
worry about specific options

I have taken the file-roller option as screem is a gnome based app.
This is not a hard dependency though, but without file-roller sites can
not be created from a template.

using either option the template must be a file:///  URI unfortunately.


Other than the .desktop style template definition site templates are
nothing more than a zip file / tarball.


David

--
Make your website SCREEM - Site Creating & Editing EnvironMent

URL:  http://www.screem.org/
Mail: david@...



signature.asc (196 bytes) Download Attachment