HighDots Forums  

Converting Library Items to PHP Include

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Converting Library Items to PHP Include in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mad Dog
 
Posts: n/a

Default Converting Library Items to PHP Include - 12-02-2005 , 02:14 PM






Okay folks......if I want to convert Library Items to PHP includes, can I
just search for the Library Item text in the files and replace it with the
PHP include line? My concern is not to confuse DW which might still think
the Library Item is attached and get funky. Since I'll be doing this to a
bunch of pages I don't want to mess it all up anymore than I usually do....

Thanks,
Mad Dog



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Converting Library Items to PHP Include - 12-02-2005 , 02:20 PM






Open the Library item. Delete the first line (the meta tag). Save it with
the name you want to give the include file. In your page, select the entire
library item's markup including the opening and closing comment tags and
delete it. Insert the include directive in its place.

Bada bing, bada boom....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Mad Dog" <md (AT) mdp (DOT) com> wrote

Quote:
Okay folks......if I want to convert Library Items to PHP includes, can I
just search for the Library Item text in the files and replace it with the
PHP include line? My concern is not to confuse DW which might still think
the Library Item is attached and get funky. Since I'll be doing this to a
bunch of pages I don't want to mess it all up anymore than I usually
do....

Thanks,
Mad Dog





Reply With Quote
  #3  
Old   
Mad Dog
 
Posts: n/a

Default Re: Converting Library Items to PHP Include - 12-02-2005 , 02:26 PM



That's no problem. What I was trying to find out was whether I can do a
sitewide search and replace to do this rather than page by page.

MD


Murray *TMM* wrote:
Quote:
Open the Library item. Delete the first line (the meta tag). Save
it with the name you want to give the include file. In your page,
select the entire library item's markup including the opening and
closing comment tags and delete it. Insert the include directive in
its place.
Bada bing, bada boom....


"Mad Dog" <md (AT) mdp (DOT) com> wrote in message
news:dmq6eo$pgm$1 (AT) forums (DOT) macromedia.com...
Okay folks......if I want to convert Library Items to PHP includes,
can I just search for the Library Item text in the files and replace
it with the PHP include line? My concern is not to confuse DW which
might still think the Library Item is attached and get funky. Since
I'll be doing this to a bunch of pages I don't want to mess it all
up anymore than I usually do....

Thanks,
Mad Dog



Reply With Quote
  #4  
Old   
Mad Dog
 
Posts: n/a

Default Re: Converting Library Items to PHP Include - 12-02-2005 , 02:33 PM



Thanks. I just wanted to check and make sure it wouldn't somehow confuse DW
which could still think a Library Item belonged on those pages. Or some such
thing. Of course maybe I give DW more credit for intelligence than it
deserves....

MD


Murray *TMM* wrote:
Quote:
Sure, you can.


"Mad Dog" <md (AT) mdp (DOT) com> wrote in message
news:dmq75o$qjt$1 (AT) forums (DOT) macromedia.com...
That's no problem. What I was trying to find out was whether I can
do a sitewide search and replace to do this rather than page by page.

MD


Murray *TMM* wrote:
Open the Library item. Delete the first line (the meta tag). Save
it with the name you want to give the include file. In your page,
select the entire library item's markup including the opening and
closing comment tags and delete it. Insert the include directive in
its place.
Bada bing, bada boom....


"Mad Dog" <md (AT) mdp (DOT) com> wrote in message
news:dmq6eo$pgm$1 (AT) forums (DOT) macromedia.com...
Okay folks......if I want to convert Library Items to PHP includes,
can I just search for the Library Item text in the files and
replace it with the PHP include line? My concern is not to confuse
DW which might still think the Library Item is attached and get
funky. Since I'll be doing this to a bunch of pages I don't want
to mess it all up anymore than I usually do....

Thanks,
Mad Dog



Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Converting Library Items to PHP Include - 12-02-2005 , 02:34 PM



Sure, you can.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Mad Dog" <md (AT) mdp (DOT) com> wrote

Quote:
That's no problem. What I was trying to find out was whether I can do a
sitewide search and replace to do this rather than page by page.

MD


Murray *TMM* wrote:
Open the Library item. Delete the first line (the meta tag). Save
it with the name you want to give the include file. In your page,
select the entire library item's markup including the opening and
closing comment tags and delete it. Insert the include directive in
its place.
Bada bing, bada boom....


"Mad Dog" <md (AT) mdp (DOT) com> wrote in message
news:dmq6eo$pgm$1 (AT) forums (DOT) macromedia.com...
Okay folks......if I want to convert Library Items to PHP includes,
can I just search for the Library Item text in the files and replace
it with the PHP include line? My concern is not to confuse DW which
might still think the Library Item is attached and get funky. Since
I'll be doing this to a bunch of pages I don't want to mess it all
up anymore than I usually do....

Thanks,
Mad Dog





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.