Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

dilemma with smarty, dreamweaver, css

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
luoifong
Smarty Rookie


Joined: 03 Nov 2003
Posts: 13
Location: Manitou Springs, Colorado

PostPosted: Wed Jan 28, 2004 7:42 pm    Post subject: dilemma with smarty, dreamweaver, css Reply with quote

I have a dilemma that I would appreciate advice on. I am developing a site that I would like done using Smarty. I am developing the site for someone else though who would prefer to be able to maintain/update the site in Dreamweaver MX. So I would normally use a header and footer template to keep that information in one file, used throughout the site on every page. But the header contains the call to the external CSS file.

So when the user is editing the file that contains the main part of the page, the file is not referencing the CSS file (since the header file is), thus preventing the user from using the design view in Dreamweaver (which is what they want to do).

So I'm wondering what my best option is. Should I forget using header and footer templates and just put that code in each file so the CSS file is referenced (which would suck if I had to make a change later)? Is there a way that I can reference the CSS file in Dreamweaver (from the file containing the main part of the page) so that the user can use design view?

Thanks for any advice.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
zbert
Smarty Rookie


Joined: 11 Dec 2003
Posts: 30
Location: New York

PostPosted: Thu Jan 29, 2004 4:34 am    Post subject: Reply with quote

I'd also like to know a good way around this problem. In the meantime, you can instruct the designer to manually attach the CSS file to the template to be edited. Then just have him/her delete the reference to the CSS file which will be at the top of the code. This is pretty easy to do, even for a designer. Laughing

--zbert
Back to top
View user's profile Send private message
lrivers
Smarty n00b


Joined: 14 Feb 2004
Posts: 2

PostPosted: Sat Feb 14, 2004 2:44 am    Post subject: Use "design time CSS" Reply with quote

That will solve your CSS/template issue.

Just open the design window, click the menu icon in the upper right, select "Design-time..." and boom...
Back to top
View user's profile Send private message
zbert
Smarty Rookie


Joined: 11 Dec 2003
Posts: 30
Location: New York

PostPosted: Sat Feb 14, 2004 3:17 am    Post subject: Reply with quote

I'm not sure I know what you are referring to. Do you mean the 3 view buttons? Code, Split, Design? Pressing "Design" doesn't take care of the problem. I just tried it and I'm still showing my includes as text on the page.

--zbert
Back to top
View user's profile Send private message
lrivers
Smarty n00b


Joined: 14 Feb 2004
Posts: 2

PostPosted: Sat Feb 14, 2004 4:18 am    Post subject: CSS Styles window Reply with quote

It's in the "Window" menu.

There's a little pop-up menu in the upper-right corner of the CSS Styles window, click that and choose "Design-time..."

This is in MX 2004.
Back to top
View user's profile Send private message
zbert
Smarty Rookie


Joined: 11 Dec 2003
Posts: 30
Location: New York

PostPosted: Sun Feb 15, 2004 2:04 am    Post subject: Reply with quote

You are absolutely right. Good going. That feature is somewhat burried so I'm glad you pointed it out.

--zbert
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP