From 6e95fb5f057719bb7b22c55cbeb15f4a9d499ef3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Sep 2018 14:36:13 +0200 Subject: [PATCH] Warning in website module --- htdocs/langs/en_US/website.lang | 5 +++-- htdocs/website/index.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/langs/en_US/website.lang b/htdocs/langs/en_US/website.lang index 5274ff87fab..6c94ee5a809 100644 --- a/htdocs/langs/en_US/website.lang +++ b/htdocs/langs/en_US/website.lang @@ -78,7 +78,7 @@ AnotherContainer=Another container WEBSITE_USE_WEBSITE_ACCOUNTS=Enable the web site account table WEBSITE_USE_WEBSITE_ACCOUNTSTooltip=Enable the table to store web site accounts (login/pass) for each website / thirdparty YouMustDefineTheHomePage=You must first define the default Home page -OnlyEditionOfSourceForGrabbedContentFuture=Note: only edition of HTML source will be possible when a page content is initialized by grabbing it from an external page (WYSIWYG editor will not be available) +OnlyEditionOfSourceForGrabbedContentFuture=Warning: Creating a web page by importing an external web page is reserved to experienced user. Depending on the complexity of source page, the result of importation may differs once imported from original. Also if the source page use common CSS style or not compatible javascript, it may break the look or features of the Web site editor when working on this page. This method is faster way to have a page but it is recommanded to create your new page from scratch or from a suggested page template.
Note also that only edition of HTML source will be possible when a page content has been initialized by grabbing it from an external page ("Online" editor will NOT be available) OnlyEditionOfSourceForGrabbedContent=Only edition of HTML source is possible when content was grabbed from an external site GrabImagesInto=Grab also images found into css and page. ImagesShouldBeSavedInto=Images should be saved into directory @@ -89,4 +89,5 @@ CorporateHomePage=Corporate Home page EmptyPage=Empty page ExternalURLMustStartWithHttp=External URL must start with http:// or https:// ZipOfWebsitePackageToImport=Zip file of website package -ShowSubcontainers=Show included containers \ No newline at end of file +ShowSubcontainers=Show included containers +InternalURLOfPage=Internal URL of page \ No newline at end of file diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 590423de2e4..9e39e162111 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2319,6 +2319,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') print ''; print $langs->trans("URL"); print ''; + print info_admin($langs->trans("OnlyEditionOfSourceForGrabbedContentFuture"), 0, 0, 'warning'); print ' '; print ' '.$langs->trans("GrabImagesInto"); print ' '; @@ -2327,7 +2328,6 @@ if ($action == 'editmeta' || $action == 'createcontainer') print $form->selectarray('grabimagesinto', $arraygrabimagesinto, GETPOSTISSET('grabimagesinto')?GETPOST('grabimagesinto'):'root'); print '
'; print ''; - print '
'.info_admin($langs->trans("OnlyEditionOfSourceForGrabbedContentFuture"), 0, 0, '1'); print ''; print ''; @@ -2347,7 +2347,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') print ''; print ''; - print $langs->trans('WEBSITE_PAGEURL'); + print $langs->trans('InternalURLOfPage'); print ''; print '/public/website/index.php?website='.urlencode($websitekey).'&pageid='.urlencode($pageid); print ''; @@ -2395,6 +2395,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') print ''; print ''; + // Type of container print ''; print $langs->trans('WEBSITE_TYPE_CONTAINER'); print '';