Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Dreamweaver - lien

New Here ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

Bonjour, dans dreamweaver je ne trouve pas l outil pour inclure (determiner automatiquement par un explorateur) un lien vers mon fichier php dans un include(").

merci pour votre aide

Views

349
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 23, 2017 Aug 23, 2017

Sure it is, it just hasn't worked right in years.

On a .php page, a PHP option will appear at the bottom of the Insert menu and within the PHP options context menu, an Include option is available....

include-option.jpg

When clicked, it adds a standard php include and places the cursor where the file path needs to go but you don't get the option to add a path via browsing, yet...

refresh.jpg

If you hit the Refresh icon in the Properties window to update DW that the code has changed, it gives you a Filename field with a folder ico

...

Votes

Translate
Community Expert ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

I'm sorry to say this because I have asked many times to get support for inserting server-side includes brought back to DW.  Why it was removed in the 1st place is unclear.  But it has been this way for a very long time (since CS6).   I guess the team does not think it's important.

The ability to insert a PHP server-side include is no longer offered from the Insert options.  You have to do it manually.   My workaround is to create Custom code Snippets.

<?php include('folder/filename.php'); ?>

Nancy

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

Sure it is, it just hasn't worked right in years.

On a .php page, a PHP option will appear at the bottom of the Insert menu and within the PHP options context menu, an Include option is available....

include-option.jpg

When clicked, it adds a standard php include and places the cursor where the file path needs to go but you don't get the option to add a path via browsing, yet...

refresh.jpg

If you hit the Refresh icon in the Properties window to update DW that the code has changed, it gives you a Filename field with a folder icon to browse to the PHP file (in this screen capture, the cursor isn't shown, but it was between the quotes in the include code)...

refreshed.jpg

This is where it breaks however. When you click to browse to an include file by hitting the browse icon, DW will place the file path as text one line above the include code you inserted and not actually within the (" ") of the include...

borked.jpg


Long story short, it's there, but it has been completely broken for years. Both installations of CC2015 and CC2017 do the same thing for me on Windows 7. I've always just entered the file path by hand.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

LATEST

<Long story short, it's there, but it has been completely broken for years.>

I stand corrected.  Anyway, I still use Snippets.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines