mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge branch '4.3' into 4
This commit is contained in:
commit
6beb682cfa
2
client/dist/js/bundle.js
vendored
2
client/dist/js/bundle.js
vendored
@ -1 +1 @@
|
||||
!function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./client/src/bundles/bundle.js")}({"./client/src/boot/index.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n("./client/src/boot/registerReducers.js"),r=a(i),o=n("./client/src/boot/registerComponents.js"),s=a(o);window.document.addEventListener("DOMContentLoaded",function(){(0,s.default)(),(0,r.default)()})},"./client/src/boot/registerComponents.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=a(i),o=n("./client/src/components/AnchorSelectorField/AnchorSelectorField.js"),s=a(o),l=n("./client/src/state/history/readOnePageQuery.js"),c=a(l),d=n("./client/src/state/history/rollbackPageMutation.js"),u=a(d);t.default=function(){r.default.component.register("AnchorSelectorField",s.default),r.default.transform("pages-history",function(e){e.component("HistoryViewer.pages-controller-cms-content",c.default,"PageHistoryViewer")}),r.default.transform("pages-history-revert",function(e){e.component("HistoryViewerToolbar.VersionedAdmin.HistoryViewer.SiteTree.HistoryViewerVersionDetail",u.default,"PageRevertMutation")})}},"./client/src/boot/registerReducers.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=a(i),o=n(11),s=n("./client/src/state/anchorSelector/AnchorSelectorReducer.js"),l=a(s);t.default=function(){r.default.reducer.register("cms",(0,o.combineReducers)({anchorSelector:l.default}))}},"./client/src/bundles/bundle.js":function(e,t,n){"use strict";n("./client/src/legacy/CMSMain.AddForm.js"),n("./client/src/legacy/CMSMain.EditForm.js"),n("./client/src/legacy/CMSMain.js"),n("./client/src/legacy/CMSMain.Tree.js"),n("./client/src/legacy/CMSPageHistoryController.js"),n("./client/src/legacy/RedirectorPage.js"),n("./client/src/legacy/SiteTreeURLSegmentField.js"),n("./client/src/boot/index.js")},"./client/src/components/AnchorSelectorField/AnchorSelectorField.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=(0,_.formValueSelector)(t.formid,D.default),a=t&&t.data&&t.data.targetFieldName||"PageID",i=Number(n(e,a)||0),r=[],o=i?e.cms.anchorSelector.pages.find(function(e){return e.id===i}):null;o&&o.loadingState===P.default.SUCCESS&&(r=o.anchors);var s=null;return s=o?o.loadingState:i?P.default.DIRTY:P.default.SUCCESS,{pageId:i,anchors:r,loadingState:s}}function l(e){return{actions:{anchorSelector:(0,v.bindActionCreators)(w,e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectedAnchorSelectorField=t.Component=void 0;var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),d=n(1),u=a(d),f=n(4),h=a(f),p=n(14),m=a(p),g=n(5),v=n(11),_=n(17),b=n(18),C=a(b),S=n("./client/src/state/anchorSelector/AnchorSelectorActions.js"),w=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(S),y=n("./client/src/state/anchorSelector/AnchorSelectorStates.js"),P=a(y),A=n(13),E=a(A),F=n(16),T=n(20),D=a(T),I=n(19),j=a(I),M=n(15),x=a(M),O=function(){return null},R=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.handleLoadingError=n.handleLoadingError.bind(n),n}return o(t,e),c(t,[{key:"componentDidMount",value:function(){this.ensurePagesLoaded()}},{key:"componentWillReceiveProps",value:function(e){this.props.pageId!==e.pageId&&this.ensurePagesLoaded(e)}},{key:"ensurePagesLoaded",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(t.loadingState!==P.default.DIRTY||!t.pageId)return Promise.resolve();t.actions.anchorSelector.beginUpdating(t.pageId);var n=t.data.endpoint.replace(/:id/,t.pageId);return(0,m.default)(n,{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(e){return t.actions.anchorSelector.updated(t.pageId,e),e}).catch(function(n){t.actions.anchorSelector.updateFailed(t.pageId),e.handleLoadingError(n,t)})}},{key:"getDropdownOptions",value:function(){var e=this,t=this.props.anchors.map(function(e){return{value:e}});return this.props.value&&!this.props.anchors.find(function(t){return t===e.props.value})&&t.unshift({value:this.props.value}),t}},{key:"handleChange",value:function(e){"function"==typeof this.props.onChange&&this.props.onChange(e?e.value:"")}},{key:"handleLoadingError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props;if(t.onLoadingError===O)throw e;return t.onLoadingError({errors:[{value:e.message,type:"error"}]})}},{key:"render",value:function(){var e={id:this.props.id},t=(0,j.default)("anchorselectorfield",this.props.extraClass),n=this.getDropdownOptions(),a=this.props.value||"",i=u.default._t("CMS.ANCHOR_SELECT_OR_TYPE","Select or enter anchor");return h.default.createElement(F.Creatable,{searchable:!0,options:n,className:t,name:this.props.name,inputProps:e,onChange:this.handleChange,onBlurResetsInput:!0,value:a,placeholder:i,labelKey:"value"})}}]),t}(C.default);R.propTypes={extraClass:x.default.string,id:x.default.string,name:x.default.string.isRequired,onChange:x.default.func,value:x.default.string,attributes:x.default.oneOfType([x.default.object,x.default.array]),pageId:x.default.number,anchors:x.default.array,loadingState:x.default.oneOf(Object.keys(P.default).map(function(e){return P.default[e]})),onLoadingError:x.default.func,data:x.default.shape({endpoint:x.default.string,targetFieldName:x.default.string})},R.defaultProps={value:"",extraClass:"",onLoadingError:O,attributes:{}};var L=(0,g.connect)(s,l)(R);t.Component=R,t.ConnectedAnchorSelectorField=L,t.default=(0,E.default)(L)},"./client/src/legacy/CMSMain.AddForm.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e(".TreeDropdownField").entwine({OldValue:null}),e("#Form_AddForm_ParentID_Holder .treedropdownfield").entwine({onmatch:function(){this._super(),e(".cms-add-form").updateTypeList()}}),e(".cms-add-form .parent-mode :input").entwine({onclick:function(e){var t=this.closest("form").find("#Form_AddForm_ParentID_Holder .TreeDropdownField");"top"==this.val()?(t.setOldValue(t.getValue()),t.setValue(0)):(t.setValue(t.getOldValue()||0),t.setOldValue(null)),t.refresh(),t.trigger("change")}}),e(".cms-add-form").entwine({ParentCache:{},onadd:function(){var t=this;this.find("#Form_AddForm_ParentID_Holder .TreeDropdownField").bind("change",function(){t.updateTypeList()}),this.find(".SelectionGroup.parent-mode").bind("change",function(){t.updateTypeList()}),"top"==e(".cms-add-form .parent-mode :input").val()&&this.updateTypeList()},loadCachedChildren:function(e){var t=this.getParentCache();return void 0!==t[e]?t[e]:null},saveCachedChildren:function(e,t){var n=this.getParentCache();n[e]=t,this.setParentCache(n)},updateTypeList:function(){var t=this.data("hints"),n=this.find("#Form_AddForm_ParentID"),a=this.find("input[name=ParentModeField]:checked").val(),i=n.data("metadata"),r="child"===a?n.getValue():null,o=i?i.ClassName:null,s=o&&"child"===a&&r?o:"Root",l=void 0!==t[s]?t[s]:null,c=this,d=l&&void 0!==l.defaultChild?l.defaultChild:null,u=[];if(r){if(this.hasClass("loading"))return;return this.addClass("loading"),null!==(u=this.loadCachedChildren(r))?(this.updateSelectionFilter(u,d),void this.removeClass("loading")):(e.ajax({url:c.data("childfilter"),data:{ParentID:r},success:function(e){c.saveCachedChildren(r,e),c.updateSelectionFilter(e,d)},complete:function(){c.removeClass("loading")}}),!1)}u=l&&void 0!==l.disallowedChildren?l.disallowedChildren:[],this.updateSelectionFilter(u,d)},updateSelectionFilter:function(t,n){var a=null;if(this.find("#Form_AddForm_PageType div.radio").each(function(){var n=e(this).find("input").val(),i=-1===e.inArray(n,t);e(this).setEnabled(i),i||e(this).setSelected(!1),a=null===a?i:a&&i}),n)var i=this.find("#Form_AddForm_PageType div.radio input[value="+n+"]").parents("li:first");else var i=this.find("#Form_AddForm_PageType div.radio:not(.disabled):first");i.setSelected(!0),i.siblings().setSelected(!1),this.find("#Form_AddForm_PageType div.radio:not(.disabled)").length?this.find("button[name=action_doAdd]").removeAttr("disabled"):this.find("button[name=action_doAdd]").attr("disabled","disabled"),this.find(".message-restricted")[a?"hide":"show"]()}}),e(".cms-add-form #Form_AddForm_PageType div.radio").entwine({onclick:function(e){this.setSelected(!0)},setSelected:function(e){var t=this.find("input");e&&!t.is(":disabled")?(this.siblings().setSelected(!1),this.toggleClass("selected",!0),t.prop("checked",!0)):(this.toggleClass("selected",!1),t.prop("checked",!1))},setEnabled:function(t){e(this).toggleClass("disabled",!t),t?e(this).find("input").removeAttr("disabled"):e(this).find("input").attr("disabled","disabled").removeAttr("checked")}}),e(".cms-content-addpage-button").entwine({onclick:function(t){var n,a=e(".cms-tree"),i=e(".cms-list"),r=0;if(a.is(":visible")){var o=a.jstree("get_selected");r=o?e(o[0]).data("id"):null}else{var s=i.find('input[name="Page[GridState]"]').val();s&&(r=parseInt(JSON.parse(s).ParentID,10))}var l,c={selector:this.data("targetPanel"),pjax:this.data("pjax")};r?(n=this.data("extraParams")?this.data("extraParams"):"",l=e.path.addSearchParams(i18n.sprintf(this.data("urlAddpage"),r),n)):l=this.attr("href"),e(".cms-container").loadPanel(l,null,c),t.preventDefault(),this.blur()}})})},"./client/src/legacy/CMSMain.EditForm.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n(0),r=a(i),o=n(1),s=a(o);r.default.entwine("ss",function(e){e(".cms-edit-form :input[name=ClassName]").entwine({onchange:function(){alert(s.default._t("CMS.ALERTCLASSNAME"))}}),e(".cms-edit-form input[name=Title]").entwine({onmatch:function(){var t=this;t.data("OrigVal",t.val());var n=t.closest("form"),a=e("input:text[name=URLSegment]",n),i=e("input[name=LiveLink]",n);a.length>0&&(t._addActions(),this.bind("change",function(n){var r=t.data("OrigVal"),o=t.val();t.data("OrigVal",o),0===a.val().indexOf(a.data("defaultUrl"))&&""==i.val()?t.updateURLSegment(o):e(".update",t.parent()).show(),t.updateRelatedFields(o,r),t.updateBreadcrumbLabel(o)})),this._super()},onunmatch:function(){this._super()},updateRelatedFields:function(t,n){this.parents("form").find("input[name=MetaTitle], input[name=MenuTitle]").each(function(){var a=e(this);a.val()==n&&(a.val(t),a.updatedRelatedFields&&a.updatedRelatedFields())})},updateURLSegment:function(t){var n=e("input:text[name=URLSegment]",this.closest("form")),a=n.closest(".field.urlsegment"),i=e(".update",this.parent());a.update(t),i.is(":visible")&&i.hide()},updateBreadcrumbLabel:function(t){var n=(e(".cms-edit-form input[name=ID]").val(),e("span.cms-panel-link.crumb"));t&&""!=t&&n.text(t)},_addActions:function(){var t,n=this;t=e("<button />",{class:"update btn btn-outline-secondary form__field-update-url",text:s.default._t("CMS.UpdateURL"),type:"button",click:function(e){e.preventDefault(),n.updateURLSegment(n.val())}}),t.insertAfter(n),t.parent(".form__field-holder").addClass("input-group"),t.hide()}}),e(".cms-edit-form .parentTypeSelector").entwine({onmatch:function(){var e=this;this.find(":input[name=ParentType]").bind("click",function(t){e._toggleSelection(t)}),this.find(".TreeDropdownField").bind("change",function(t){e._changeParentId(t)}),this._changeParentId(),this._toggleSelection(),this._super()},onunmatch:function(){this._super()},_toggleSelection:function(t){var n=this.find(":input[name=ParentType]:checked").val(),a=this.find("#Form_EditForm_ParentID_Holder");"root"==n?this.find(":input[name=ParentID]").val(0):this.find(":input[name=ParentID]").val(this.find("#Form_EditForm_ParentType_subpage").data("parentIdValue")),"root"!=n?a.slideDown(400,function(){e(this).css("overflow","visible")}):a.slideUp()},_changeParentId:function(e){var t=this.find(":input[name=ParentID]").val();this.find("#Form_EditForm_ParentType_subpage").data("parentIdValue",t)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_doRollback, .cms-edit-form .btn-toolbar #Form_EditForm_action_rollback").entwine({onclick:function(e){if(this.is(":disabled"))return e.preventDefault(),!1;var t=this.parents("form:first").find(":input[name=Version]").val(),n=t?s.default.sprintf(s.default._t("CMS.RollbackToVersion","Do you really want to roll back to version #%s of this page?"),t):s.default._t("CMS.ConfirmRestoreFromLive","Are you sure you want to revert draft to when the page was last published?");return confirm(n)?this._super(e):(e.preventDefault(),!1)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_archive").entwine({onclick:function(e){var t=this.parents("form:first"),n="";return n=t.find("input[name=ArchiveWarningMessage]").val().replace(/\\n/g,"\n"),!!confirm(n)&&this._super(e)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_restore").entwine({onclick:function(e){var t=this.parents("form:first"),n=t.find(":input[name=Version]").val(),a="",i=this.data("toRoot");return a=s.default.sprintf(s.default._t(i?"CMS.RestoreToRoot":"CMS.Restore"),n),!!confirm(a)&&this._super(e)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_unpublish").entwine({onclick:function(e){var t=this.parents("form:first"),n=t.find(":input[name=Version]").val(),a="";return a=s.default.sprintf(s.default._t("CMS.Unpublish"),n),!!confirm(a)&&this._super(e)}}),e(".cms-edit-form.changed").entwine({onmatch:function(t){this.find("button[data-text-alternate]").each(function(){var t=e(this),n=t.find(".btn__title"),a=t.data("textAlternate");a&&(t.data("textStandard",n.text()),n.text(a));var i=t.data("btnAlternate");i&&(t.data("btnStandard",t.attr("class")),t.attr("class",i),t.removeClass("btn-outline-secondary").addClass("btn-primary"));var r=t.data("btnAlternateAdd");r&&t.addClass(r);var o=t.data("btnAlternateRemove");o&&t.removeClass(o)}),this._super(t)},onunmatch:function(t){this.find("button[data-text-alternate]").each(function(){var t=e(this),n=t.find(".btn__title"),a=t.data("textStandard");a&&n.text(a);var i=t.data("btnStandard");i&&(t.attr("class",i),t.addClass("btn-outline-secondary").removeClass("btn-primary"));var r=t.data("btnAlternateAdd");r&&t.removeClass(r);var o=t.data("btnAlternateRemove");o&&t.addClass(o)}),this._super(t)}}),e(".cms-edit-form .btn-toolbar button[name=action_publish]").entwine({onbuttonafterrefreshalternate:function(){this.data("showingAlternate")?(this.addClass("btn-primary"),this.removeClass("btn-secondary")):(this.removeClass("btn-primary"),this.addClass("btn-secondary"))}}),e(".cms-edit-form .btn-toolbar button[name=action_save]").entwine({onbuttonafterrefreshalternate:function(){this.data("showingAlternate")?(this.addClass("btn-primary"),this.removeClass("btn-secondary")):(this.removeClass("btn-primary"),this.addClass("btn-secondary"))}}),e('.cms-edit-form.CMSPageSettingsController input[name="ParentType"]:checked').entwine({onmatch:function(){this.redraw(),this._super()},onunmatch:function(){this._super()},redraw:function(){var t=e(".cms-edit-form.CMSPageSettingsController #Form_EditForm_ParentID_Holder");"Form_EditForm_ParentType_root"==e(this).attr("id")?t.slideUp():t.slideDown()},onclick:function(){this.redraw()}}),"Form_EditForm_ParentType_root"==e('.cms-edit-form.CMSPageSettingsController input[name="ParentType"]:checked').attr("id")&&e(".cms-edit-form.CMSPageSettingsController #Form_EditForm_ParentID_Holder").hide()})},"./client/src/legacy/CMSMain.Tree.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n(0),r=a(i),o=n(1),s=a(o);r.default.entwine("ss.tree",function(e){e(".cms-tree").entwine({fromDocument:{"oncontext_show.vakata":function(e){this.adjustContextClass()}},adjustContextClass:function(){var t=e("#vakata-contextmenu").find("ul ul");t.each(function(n){var a="1",i=e(t[n]).find("li").length;i>20?a="3":i>10&&(a="2"),e(t[n]).addClass("col-"+a).removeClass("right"),e(t[n]).find("li").on("mouseenter",function(t){e(this).parent("ul").removeClass("right")})})},showListViewFor:function(t){localStorage.setItem("ss.pages-view-type","listview");var n=this.closest(".cms-content-view"),a=n.data("url-listviewroot"),i=e.path.addSearchParams(a,{ParentID:t}),r=e("base").attr("href")||"";window.location.assign(r+i)},getTreeConfig:function(){var t=this,n=this._super();return this.getHints(),n.plugins.push("contextmenu"),n.contextmenu={items:function(n){var a={edit:{label:n.hasClass("edit-disabled")?s.default._t("CMS.EditPage","Edit page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"):s.default._t("CMS.ViewPage","View page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(s.default.sprintf(t.data("urlEditpage"),n.data("id")))}}};n.hasClass("nochildren")||(a.showaslist={label:s.default._t("CMS.ShowAsList"),action:function(e){t.showListViewFor(e.data("id"))}});var i=(n.data("pagetype"),n.data("id")),r=n.find(">a .item").data("allowedchildren"),o={},l=!1;return e.each(r,function(n,a){l=!0,o["allowedchildren-"+n]={label:'<span class="jstree-pageicon"></span>'+a,_class:"class-"+n.replace(/[^a-zA-Z0-9\-_:.]+/g,"_"),action:function(a){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(s.default.sprintf(t.data("urlAddpage"),i,n),t.data("extraParams")))}}}),l&&(a.addsubpage={label:s.default._t("CMS.AddSubPage","Add page under this page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"),submenu:o}),n.hasClass("edit-disabled")||(a.duplicate={label:s.default._t("CMS.Duplicate"),submenu:[{label:s.default._t("CMS.ThisPageOnly"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(s.default.sprintf(t.data("urlDuplicate"),n.data("id")),t.data("extraParams")))}},{label:s.default._t("CMS.ThisPageAndSubpages"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(s.default.sprintf(t.data("urlDuplicatewithchildren"),n.data("id")),t.data("extraParams")))}}]}),a}},n}}),e(".cms-tree a.jstree-clicked").entwine({onmatch:function(){var e,t=this,n=t.parents(".cms-panel-content");(t.offset().top<0||t.offset().top>n.height()-t.height())&&(e=n.scrollTop()+t.offset().top+n.height()/2,n.animate({scrollTop:e},"slow"))}}),e(".cms-tree-filtered .clear-filter").entwine({onclick:function(){window.location=location.protocol+"//"+location.host+location.pathname}}),e(".cms-tree .subtree-list-link").entwine({onclick:function(e){e.preventDefault(),this.closest(".cms-tree").showListViewFor(this.data("id"))}})})},"./client/src/legacy/CMSMain.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e(".cms-content-header-info").entwine({"from .cms-panel":{ontoggle:function(e){var t=this.closest(".cms-content").find(e.target);0!==t.length&&this.parent()[t.hasClass("collapsed")?"addClass":"removeClass"]("collapsed")}}}),e(".cms-panel-deferred.cms-content-view").entwine({onadd:function(){if(!this.data("no-ajax")){var e=localStorage.getItem("ss.pages-view-type")||"treeview";this.closest(".cms-content-tools").length>0&&(e="treeview");var t=this.data("url-"+e),n=localStorage.getItem("ss.pages-view-filtered");localStorage.setItem("ss.pages-view-filtered",!1),this.data("deferredNoCache",n||"listview"===e),this.data("url",t+location.search),this._super()}}}),e(".js-injector-boot .search-holder--cms").entwine({search:function(e){localStorage.setItem("ss.pages-view-filtered",!0),this._super(e)}}),e(".cms .page-view-link").entwine({onclick:function(t){t.preventDefault();var n=e(this).data("view"),a=this.closest(".cms-content-view"),i=a.data("url-"+n),r=0!==a.closest(".cms-content-tools").length;if(localStorage.setItem("ss.pages-view-type",n),r&&"listview"===n){var o=e("base").attr("href")||"";return void window.location.assign(o+a.data("url-listviewroot"))}a.data("url",i+location.search),a.redraw()}}),e(".cms .cms-clear-filter").entwine({onclick:function(t){t.preventDefault(),window.location=e(this).prop("href")}}),e(".cms-content-toolbar").entwine({onmatch:function(){var t=this;this._super(),e.each(this.find(".cms-actions-buttons-row .tool-button"),function(){var n=e(this),a=n.data("toolid");n.hasClass("active"),void 0!==a&&(n.data("active",!1).removeClass("active"),e("#"+a).hide(),t.bindActionButtonEvents(n))})},onunmatch:function(){var t=this;this._super(),e.each(this.find(".cms-actions-buttons-row .tool-button"),function(){var n=e(this);t.unbindActionButtonEvents(n)})},bindActionButtonEvents:function(e){var t=this;e.on("click.cmsContentToolbar",function(n){t.showHideTool(e)})},unbindActionButtonEvents:function(e){e.off(".cmsContentToolbar")},showHideTool:function(t){var n=t.data("active"),a=t.data("toolid"),i=e("#"+a);e.each(this.find(".cms-actions-buttons-row .tool-button"),function(){var t=e(this),n=e("#"+t.data("toolid"));t.data("toolid")!==a&&(n.hide(),t.data("active",!1))}),t[n?"removeClass":"addClass"]("active"),i[n?"hide":"show"](),t.data("active",!n)}})})},"./client/src/legacy/CMSPageHistoryController.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n(0),r=a(i),o=n(1),s=a(o);r.default.entwine("ss",function(e){e("#Form_VersionsForm").entwine({onmatch:function(){this._super()},onunmatch:function(){this._super()},onsubmit:function(t){t.preventDefault();var n=this.find(":input[name=ID]").val();if(!n)return!1;var a=null,i=null,r=null,o=this.find(":input[name=CompareMode]").is(":checked"),l=this.find("table input[type=checkbox]").filter(":checked");if(o){if(2!==l.length)return!1;i=l.eq(0).val(),r=l.eq(1).val(),a=s.default.sprintf(this.data("linkTmplCompare"),n,r,i)}else i=l.eq(0).val(),a=s.default.sprintf(this.data("linkTmplShow"),n,i);return e(".cms-container").loadPanel(a,"",{pjax:"CurrentForm"}),!0}}),e("#Form_VersionsForm input[name=ShowUnpublished]").entwine({onmatch:function(){this.toggle(),this._super()},onunmatch:function(){this._super()},onchange:function(){this.toggle()},toggle:function(){var t=e(this),n=t.parents("form").find("tr[data-published=false]");t.attr("checked")?n.removeClass("ui-helper-hidden").show():n.addClass("ui-helper-hidden").hide()._unselect()}}),e("#Form_VersionsForm tbody tr").entwine({onclick:function(){var e=this.parents("form").find(":input[name=CompareMode]").attr("checked"),t=this.siblings(".active");return e&&this.hasClass("active")?void this._unselect():e?t.length>1?void alert(s.default._t("CMS.ONLYSELECTTWO","You can only compare two versions at this time.")):(this._select(),void(1===t.length&&this.parents("form").submit())):(this._select(),t._unselect(),void this.parents("form").submit())},_unselect:function(){this.get(0).classList.remove("active"),this.find(":input[type=checkbox][checked]").attr("checked",!1)},_select:function(){this.addClass("active"),this.find(":input[type=checkbox]").attr("checked",!0)}})})},"./client/src/legacy/RedirectorPage.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e("#Form_EditForm_RedirectionType input").entwine({onmatch:function(){e(this).attr("checked")&&this.toggle(),this._super()},onunmatch:function(){this._super()},onclick:function(){this.toggle()},toggle:function(){"Internal"==e(this).attr("value")?(e("#Form_EditForm_ExternalURL_Holder").hide(),e("#Form_EditForm_LinkToID_Holder").show()):(e("#Form_EditForm_ExternalURL_Holder").show(),e("#Form_EditForm_LinkToID_Holder").hide())}})})},"./client/src/legacy/SiteTreeURLSegmentField.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e(".field.urlsegment:not(.readonly)").entwine({MaxPreviewLength:55,Ellipsis:"...",onmatch:function(){this.find(":text").length&&this.toggleEdit(!1),this.redraw(),this._super()},redraw:function(){var e=this.find(":text"),t=decodeURI(e.data("prefix")+e.val()),n=t;t.length>this.getMaxPreviewLength()&&(n=this.getEllipsis()+t.substr(t.length-this.getMaxPreviewLength(),t.length)),this.find(".URL-link").attr("href",encodeURI(t+e.data("suffix"))).text(n)},toggleEdit:function(e){var t=this.find(":text");this.find(".preview-holder")[e?"hide":"show"](),this.find(".edit-holder")[e?"show":"hide"](),e&&(t.data("origval",t.val()),t.focus())},update:function(){var e=this,t=this.find(":text"),n=t.data("origval"),a=arguments[0],i=a&&""!==a?a:t.val();n!=i?(this.addClass("loading"),this.suggest(i,function(n){t.val(decodeURIComponent(n.value)),e.toggleEdit(!1),e.removeClass("loading"),e.redraw()})):(this.toggleEdit(!1),this.redraw())},cancel:function(){var e=this.find(":text");e.val(e.data("origval")),this.toggleEdit(!1)},suggest:function(t,n){var a=this,i=a.find(":text"),r=e.path.parseUrl(a.closest("form").attr("action")),o=r.hrefNoSearch+"/field/"+i.attr("name")+"/suggest/?value="+encodeURIComponent(t);r.search&&(o+="&"+r.search.replace(/^\?/,"")),e.ajax({url:o,success:function(e){n.apply(this,arguments)},error:function(e,t){e.statusText=e.responseText},complete:function(){a.removeClass("loading")}})}}),e(".field.urlsegment .edit").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").toggleEdit(!0)}}),e(".field.urlsegment .update").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").update()}}),e(".field.urlsegment .cancel").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").cancel()}})})},"./client/src/state/anchorSelector/AnchorSelectorActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ANCHORSELECTOR_UPDATED:"ANCHORSELECTOR_UPDATED",ANCHORSELECTOR_UPDATING:"ANCHORSELECTOR_UPDATING",ANCHORSELECTOR_UPDATE_FAILED:"ANCHORSELECTOR_UPDATE_FAILED"}},"./client/src/state/anchorSelector/AnchorSelectorActions.js":function(e,t,n){"use strict";function a(e){return{type:s.default.ANCHORSELECTOR_UPDATING,payload:{pageId:e}}}function i(e,t){return{type:s.default.ANCHORSELECTOR_UPDATED,payload:{pageId:e,anchors:t}}}function r(e){return{type:s.default.ANCHORSELECTOR_UPDATE_FAILED,payload:{pageId:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.beginUpdating=a,t.updated=i,t.updateFailed=r;var o=n("./client/src/state/anchorSelector/AnchorSelectorActionTypes.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./client/src/state/anchorSelector/AnchorSelectorReducer.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(n,a){var r=t.payload.pageId;return(0,s.default)({pages:[].concat(i(e.pages.filter(function(e){return e.id!==r})),[{id:r,loadingState:n,anchors:a}]).sort(function(e,t){return e.id-t.id})})};switch(t.type){case c.default.ANCHORSELECTOR_UPDATING:return n(u.default.UPDATING,[]);case c.default.ANCHORSELECTOR_UPDATED:return n(u.default.SUCCESS,t.payload.anchors);case c.default.ANCHORSELECTOR_UPDATE_FAILED:return n(u.default.FAILED,[]);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(12),s=a(o),l=n("./client/src/state/anchorSelector/AnchorSelectorActionTypes.js"),c=a(l),d=n("./client/src/state/anchorSelector/AnchorSelectorStates.js"),u=a(d),f=(0,s.default)({pages:[]})},"./client/src/state/anchorSelector/AnchorSelectorStates.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SUCCESS:"SUCCESS",DIRTY:"DIRTY",UPDATING:"UPDATING",FAILED:"FAILED"}},"./client/src/state/history/readOnePageQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.query=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\nquery ReadHistoryViewerPage ($page_id: ID!, $limit: Int!, $offset: Int!) {\n readOnePage(\n Versioning: {\n Mode: LATEST\n },\n ID: $page_id\n ) {\n ID\n Versions (limit: $limit, offset: $offset, sortBy: [{\n field: Version,\n direction: DESC\n }]) {\n pageInfo {\n totalCount\n }\n edges {\n node {\n Version\n AbsoluteLink\n Author {\n FirstName\n Surname\n }\n Publisher {\n FirstName\n Surname\n }\n Published\n LiveVersion\n LatestDraftVersion\n LastEdited\n }\n }\n }\n }\n}\n"],["\nquery ReadHistoryViewerPage ($page_id: ID!, $limit: Int!, $offset: Int!) {\n readOnePage(\n Versioning: {\n Mode: LATEST\n },\n ID: $page_id\n ) {\n ID\n Versions (limit: $limit, offset: $offset, sortBy: [{\n field: Version,\n direction: DESC\n }]) {\n pageInfo {\n totalCount\n }\n edges {\n node {\n Version\n AbsoluteLink\n Author {\n FirstName\n Surname\n }\n Publisher {\n FirstName\n Surname\n }\n Published\n LiveVersion\n LatestDraftVersion\n LastEdited\n }\n }\n }\n }\n}\n"]),r=n(3),o=n(10),s=function(e){return e&&e.__esModule?e:{default:e}}(o),l=(0,s.default)(i),c={options:function(e){var t=e.recordId,n=e.limit;return{variables:{limit:n,offset:((e.page||1)-1)*n,page_id:t},fetchPolicy:"network-only"}},props:function(e){var t=e.data,n=t.error,i=t.refetch,r=t.readOnePage,o=t.loading,s=e.ownProps,l=s.actions,c=void 0===l?{versions:{}}:l,d=s.limit,u=s.recordId,f=r||null,h=n&&n.graphQLErrors&&n.graphQLErrors.map(function(e){return e.message});return{loading:o||!f,versions:f,graphQLErrors:h,actions:a({},c,{versions:a({},f,{goToPage:function(e){i({offset:((e||1)-1)*d,limit:d,page_id:u})}})})}}};t.query=l,t.config=c,t.default=(0,r.graphql)(l,c)},"./client/src/state/history/rollbackPageMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.mutation=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\nmutation rollbackPage($id:ID!, $toVersion:Int!) {\n rollbackSilverStripeSiteTree(\n ID: $id\n ToVersion: $toVersion\n ) {\n ID\n }\n}\n"],["\nmutation rollbackPage($id:ID!, $toVersion:Int!) {\n rollbackSilverStripeSiteTree(\n ID: $id\n ToVersion: $toVersion\n ) {\n ID\n }\n}\n"]),r=n(3),o=n(10),s=function(e){return e&&e.__esModule?e:{default:e}}(o),l=(0,s.default)(i),c={props:function(e){var t=e.mutate,n=e.ownProps.actions,i=function(e,n){return t({variables:{id:e,toVersion:n}})};return{actions:a({},n,{rollbackPage:i,revertToVersion:i})}},options:{refetchQueries:["ReadHistoryViewerPage"]}};t.mutation=l,t.config=c,t.default=(0,r.graphql)(l,c)},0:function(e,t){e.exports=jQuery},1:function(e,t){e.exports=i18n},10:function(e,t){e.exports=GraphQLTag},11:function(e,t){e.exports=Redux},12:function(e,t){e.exports=DeepFreezeStrict},13:function(e,t){e.exports=FieldHolder},14:function(e,t){e.exports=IsomorphicFetch},15:function(e,t){e.exports=PropTypes},16:function(e,t){e.exports=ReactSelect},17:function(e,t){e.exports=ReduxForm},18:function(e,t){e.exports=SilverStripeComponent},19:function(e,t){e.exports=classnames},2:function(e,t){e.exports=Injector},20:function(e,t){e.exports=getFormState},3:function(e,t){e.exports=ReactApollo},4:function(e,t){e.exports=React},5:function(e,t){e.exports=ReactRedux}});
|
||||
!function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="./client/src/bundles/bundle.js")}({"./client/src/boot/index.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n("./client/src/boot/registerReducers.js"),r=a(i),o=n("./client/src/boot/registerComponents.js"),s=a(o);window.document.addEventListener("DOMContentLoaded",function(){(0,s.default)(),(0,r.default)()})},"./client/src/boot/registerComponents.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=a(i),o=n("./client/src/components/AnchorSelectorField/AnchorSelectorField.js"),s=a(o),l=n("./client/src/state/history/readOnePageQuery.js"),d=a(l),c=n("./client/src/state/history/rollbackPageMutation.js"),u=a(c);t.default=function(){r.default.component.register("AnchorSelectorField",s.default),r.default.transform("pages-history",function(e){e.component("HistoryViewer.pages-controller-cms-content",d.default,"PageHistoryViewer")}),r.default.transform("pages-history-revert",function(e){e.component("HistoryViewerToolbar.VersionedAdmin.HistoryViewer.SiteTree.HistoryViewerVersionDetail",u.default,"PageRevertMutation")})}},"./client/src/boot/registerReducers.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=a(i),o=n(11),s=n("./client/src/state/anchorSelector/AnchorSelectorReducer.js"),l=a(s);t.default=function(){r.default.reducer.register("cms",(0,o.combineReducers)({anchorSelector:l.default}))}},"./client/src/bundles/bundle.js":function(e,t,n){"use strict";n("./client/src/legacy/CMSMain.AddForm.js"),n("./client/src/legacy/CMSMain.EditForm.js"),n("./client/src/legacy/CMSMain.js"),n("./client/src/legacy/CMSMain.Tree.js"),n("./client/src/legacy/CMSPageHistoryController.js"),n("./client/src/legacy/RedirectorPage.js"),n("./client/src/legacy/SiteTreeURLSegmentField.js"),n("./client/src/boot/index.js")},"./client/src/components/AnchorSelectorField/AnchorSelectorField.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=(0,_.formValueSelector)(t.formid,D.default),a=t&&t.data&&t.data.targetFieldName||"PageID",i=Number(n(e,a)||0),r=[],o=i?e.cms.anchorSelector.pages.find(function(e){return e.id===i}):null;o&&o.loadingState===P.default.SUCCESS&&(r=o.anchors);var s=null;return s=o?o.loadingState:i?P.default.DIRTY:P.default.SUCCESS,{pageId:i,anchors:r,loadingState:s}}function l(e){return{actions:{anchorSelector:(0,v.bindActionCreators)(w,e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectedAnchorSelectorField=t.Component=void 0;var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=n(1),u=a(c),f=n(4),h=a(f),p=n(14),m=a(p),g=n(5),v=n(11),_=n(17),b=n(18),C=a(b),S=n("./client/src/state/anchorSelector/AnchorSelectorActions.js"),w=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(S),y=n("./client/src/state/anchorSelector/AnchorSelectorStates.js"),P=a(y),A=n(13),E=a(A),F=n(16),T=n(20),D=a(T),I=n(19),j=a(I),M=n(15),x=a(M),O=function(){return null},R=function(e){function t(e){i(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.handleLoadingError=n.handleLoadingError.bind(n),n}return o(t,e),d(t,[{key:"componentDidMount",value:function(){this.ensurePagesLoaded()}},{key:"componentWillReceiveProps",value:function(e){this.props.pageId!==e.pageId&&this.ensurePagesLoaded(e)}},{key:"ensurePagesLoaded",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(t.loadingState!==P.default.DIRTY||!t.pageId)return Promise.resolve();t.actions.anchorSelector.beginUpdating(t.pageId);var n=t.data.endpoint.replace(/:id/,t.pageId);return(0,m.default)(n,{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(e){return t.actions.anchorSelector.updated(t.pageId,e),e}).catch(function(n){t.actions.anchorSelector.updateFailed(t.pageId),e.handleLoadingError(n,t)})}},{key:"getDropdownOptions",value:function(){var e=this,t=this.props.anchors.map(function(e){return{value:e}});return this.props.value&&!this.props.anchors.find(function(t){return t===e.props.value})&&t.unshift({value:this.props.value}),t}},{key:"handleChange",value:function(e){"function"==typeof this.props.onChange&&this.props.onChange(e?e.value:"")}},{key:"handleLoadingError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props;if(t.onLoadingError===O)throw e;return t.onLoadingError({errors:[{value:e.message,type:"error"}]})}},{key:"render",value:function(){var e={id:this.props.id},t=(0,j.default)("anchorselectorfield",this.props.extraClass),n=this.getDropdownOptions(),a=this.props.value||"",i=u.default._t("CMS.ANCHOR_SELECT_OR_TYPE","Select or enter anchor");return h.default.createElement(F.Creatable,{searchable:!0,options:n,className:t,name:this.props.name,inputProps:e,onChange:this.handleChange,onBlurResetsInput:!0,value:a,placeholder:i,labelKey:"value"})}}]),t}(C.default);R.propTypes={extraClass:x.default.string,id:x.default.string,name:x.default.string.isRequired,onChange:x.default.func,value:x.default.string,attributes:x.default.oneOfType([x.default.object,x.default.array]),pageId:x.default.number,anchors:x.default.array,loadingState:x.default.oneOf(Object.keys(P.default).map(function(e){return P.default[e]})),onLoadingError:x.default.func,data:x.default.shape({endpoint:x.default.string,targetFieldName:x.default.string})},R.defaultProps={value:"",extraClass:"",onLoadingError:O,attributes:{}};var L=(0,g.connect)(s,l)(R);t.Component=R,t.ConnectedAnchorSelectorField=L,t.default=(0,E.default)(L)},"./client/src/legacy/CMSMain.AddForm.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e(".TreeDropdownField").entwine({OldValue:null}),e("#Form_AddForm_ParentID_Holder .treedropdownfield").entwine({onmatch:function(){this._super(),e(".cms-add-form").updateTypeList()}}),e(".cms-add-form .parent-mode :input").entwine({onclick:function(e){var t=this.closest("form").find("#Form_AddForm_ParentID_Holder .TreeDropdownField");"top"==this.val()?(t.setOldValue(t.getValue()),t.setValue(0)):(t.setValue(t.getOldValue()||0),t.setOldValue(null)),t.refresh(),t.trigger("change")}}),e(".cms-add-form").entwine({ParentCache:{},onadd:function(){var t=this;this.find("#Form_AddForm_ParentID_Holder .TreeDropdownField").bind("change",function(){t.updateTypeList()}),this.find(".SelectionGroup.parent-mode").bind("change",function(){t.updateTypeList()}),"top"==e(".cms-add-form .parent-mode :input").val()&&this.updateTypeList()},loadCachedChildren:function(e){var t=this.getParentCache();return void 0!==t[e]?t[e]:null},saveCachedChildren:function(e,t){var n=this.getParentCache();n[e]=t,this.setParentCache(n)},updateTypeList:function(){var t=this.data("hints"),n=this.find("#Form_AddForm_ParentID"),a=this.find("input[name=ParentModeField]:checked").val(),i=n.data("metadata"),r="child"===a?n.getValue():null,o=i?i.ClassName:null,s=o&&"child"===a&&r?o:"Root",l=void 0!==t[s]?t[s]:null,d=this,c=l&&void 0!==l.defaultChild?l.defaultChild:null,u=[];if(r){if(this.hasClass("loading"))return;return this.addClass("loading"),null!==(u=this.loadCachedChildren(r))?(this.updateSelectionFilter(u,c),void this.removeClass("loading")):(e.ajax({url:d.data("childfilter"),data:{ParentID:r},success:function(e){d.saveCachedChildren(r,e),d.updateSelectionFilter(e,c)},complete:function(){d.removeClass("loading")}}),!1)}u=l&&void 0!==l.disallowedChildren?l.disallowedChildren:[],this.updateSelectionFilter(u,c)},updateSelectionFilter:function(t,n){var a=null;if(this.find("#Form_AddForm_PageType div.radio").each(function(){var n=e(this).find("input").val(),i=-1===e.inArray(n,t);e(this).setEnabled(i),i||e(this).setSelected(!1),a=null===a?i:a&&i}),n)var i=this.find("#Form_AddForm_PageType div.radio input[value="+n+"]").parents("li:first");else var i=this.find("#Form_AddForm_PageType div.radio:not(.disabled):first");i.setSelected(!0),i.siblings().setSelected(!1),this.find("#Form_AddForm_PageType div.radio:not(.disabled)").length?this.find("button[name=action_doAdd]").removeAttr("disabled"):this.find("button[name=action_doAdd]").attr("disabled","disabled"),this.find(".message-restricted")[a?"hide":"show"]()}}),e(".cms-add-form #Form_AddForm_PageType div.radio").entwine({onclick:function(e){this.setSelected(!0)},setSelected:function(e){var t=this.find("input");e&&!t.is(":disabled")?(this.siblings().setSelected(!1),this.toggleClass("selected",!0),t.prop("checked",!0)):(this.toggleClass("selected",!1),t.prop("checked",!1))},setEnabled:function(t){e(this).toggleClass("disabled",!t),t?e(this).find("input").removeAttr("disabled"):e(this).find("input").attr("disabled","disabled").removeAttr("checked")}}),e(".cms-content-addpage-button").entwine({onclick:function(t){var n,a=e(".cms-tree"),i=e(".cms-list"),r=0;if(a.is(":visible")){var o=a.jstree("get_selected");r=o?e(o[0]).data("id"):null}else{var s=i.find('input[name="Page[GridState]"]').val();s&&(r=parseInt(JSON.parse(s).ParentID,10))}var l,d={selector:this.data("targetPanel"),pjax:this.data("pjax")};r?(n=this.data("extraParams")?this.data("extraParams"):"",l=e.path.addSearchParams(i18n.sprintf(this.data("urlAddpage"),r),n)):l=this.attr("href"),e(".cms-container").loadPanel(l,null,d),t.preventDefault(),this.blur()}})})},"./client/src/legacy/CMSMain.EditForm.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n(0),r=a(i),o=n(1),s=a(o);r.default.entwine("ss",function(e){e(".cms-edit-form :input[name=ClassName]").entwine({onchange:function(){alert(s.default._t("CMS.ALERTCLASSNAME"))}}),e(".cms-edit-form input[name=Title]").entwine({onmatch:function(){var t=this;t.data("OrigVal",t.val());var n=t.closest("form"),a=e("input:text[name=URLSegment]",n),i=e("input[name=LiveLink]",n);a.length>0&&(t._addActions(),this.bind("change",function(n){var r=t.data("OrigVal"),o=t.val();t.data("OrigVal",o),0===a.val().indexOf(a.data("defaultUrl"))&&""==i.val()?t.updateURLSegment(o):e(".update",t.parent()).show().parent(".form__field-holder").addClass("input-group"),t.updateRelatedFields(o,r),t.updateBreadcrumbLabel(o)})),this._super()},onunmatch:function(){this._super()},updateRelatedFields:function(t,n){this.parents("form").find("input[name=MetaTitle], input[name=MenuTitle]").each(function(){var a=e(this);a.val()==n&&(a.val(t),a.updatedRelatedFields&&a.updatedRelatedFields())})},updateURLSegment:function(t){var n=e("input:text[name=URLSegment]",this.closest("form")),a=n.closest(".field.urlsegment"),i=e(".update",this.parent());a.update(t),i.is(":visible")&&i.hide().parent(".form__field-holder").removeClass("input-group")},updateBreadcrumbLabel:function(t){var n=(e(".cms-edit-form input[name=ID]").val(),e("span.cms-panel-link.crumb"));t&&""!=t&&n.text(t)},_addActions:function(){var t,n=this;t=e("<button />",{class:"update btn btn-outline-secondary form__field-update-url",text:s.default._t("CMS.UpdateURL"),type:"button",click:function(e){e.preventDefault(),n.updateURLSegment(n.val())}}),t.insertAfter(n),t.hide()}}),e(".cms-edit-form .parentTypeSelector").entwine({onmatch:function(){var e=this;this.find(":input[name=ParentType]").bind("click",function(t){e._toggleSelection(t)}),this.find(".TreeDropdownField").bind("change",function(t){e._changeParentId(t)}),this._changeParentId(),this._toggleSelection(),this._super()},onunmatch:function(){this._super()},_toggleSelection:function(t){var n=this.find(":input[name=ParentType]:checked").val(),a=this.find("#Form_EditForm_ParentID_Holder");"root"==n?this.find(":input[name=ParentID]").val(0):this.find(":input[name=ParentID]").val(this.find("#Form_EditForm_ParentType_subpage").data("parentIdValue")),"root"!=n?a.slideDown(400,function(){e(this).css("overflow","visible")}):a.slideUp()},_changeParentId:function(e){var t=this.find(":input[name=ParentID]").val();this.find("#Form_EditForm_ParentType_subpage").data("parentIdValue",t)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_doRollback, .cms-edit-form .btn-toolbar #Form_EditForm_action_rollback").entwine({onclick:function(e){if(this.is(":disabled"))return e.preventDefault(),!1;var t=this.parents("form:first").find(":input[name=Version]").val(),n=t?s.default.sprintf(s.default._t("CMS.RollbackToVersion","Do you really want to roll back to version #%s of this page?"),t):s.default._t("CMS.ConfirmRestoreFromLive","Are you sure you want to revert draft to when the page was last published?");return confirm(n)?(this.parents("form:first").addClass("loading"),this._super(e)):(e.preventDefault(),!1)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_archive").entwine({onclick:function(e){var t=this.parents("form:first"),n="";return n=t.find("input[name=ArchiveWarningMessage]").val().replace(/\\n/g,"\n"),!!confirm(n)&&(this.parents("form:first").addClass("loading"),this._super(e))}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_restore").entwine({onclick:function(e){var t=this.parents("form:first"),n=t.find(":input[name=Version]").val(),a="",i=this.data("toRoot");return a=s.default.sprintf(s.default._t(i?"CMS.RestoreToRoot":"CMS.Restore"),n),!!confirm(a)&&(this.parents("form:first").addClass("loading"),this._super(e))}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_unpublish").entwine({onclick:function(e){var t=this.parents("form:first"),n=t.find(":input[name=Version]").val(),a="";return a=s.default.sprintf(s.default._t("CMS.Unpublish"),n),!!confirm(a)&&(this.parents("form:first").addClass("loading"),this._super(e))}}),e(".cms-edit-form.changed").entwine({onmatch:function(t){this.find("button[data-text-alternate]").each(function(){var t=e(this),n=t.find(".btn__title"),a=t.data("textAlternate");a&&(t.data("textStandard",n.text()),n.text(a));var i=t.data("btnAlternate");i&&(t.data("btnStandard",t.attr("class")),t.attr("class",i),t.removeClass("btn-outline-secondary").addClass("btn-primary"));var r=t.data("btnAlternateAdd");r&&t.addClass(r);var o=t.data("btnAlternateRemove");o&&t.removeClass(o)}),this._super(t)},onunmatch:function(t){this.find("button[data-text-alternate]").each(function(){var t=e(this),n=t.find(".btn__title"),a=t.data("textStandard");a&&n.text(a);var i=t.data("btnStandard");i&&(t.attr("class",i),t.addClass("btn-outline-secondary").removeClass("btn-primary"));var r=t.data("btnAlternateAdd");r&&t.removeClass(r);var o=t.data("btnAlternateRemove");o&&t.addClass(o)}),this._super(t)}}),e(".cms-edit-form .btn-toolbar button[name=action_publish]").entwine({onbuttonafterrefreshalternate:function(){this.data("showingAlternate")?(this.addClass("btn-primary"),this.removeClass("btn-secondary")):(this.removeClass("btn-primary"),this.addClass("btn-secondary"))}}),e(".cms-edit-form .btn-toolbar button[name=action_save]").entwine({onbuttonafterrefreshalternate:function(){this.data("showingAlternate")?(this.addClass("btn-primary"),this.removeClass("btn-secondary")):(this.removeClass("btn-primary"),this.addClass("btn-secondary"))}}),e('.cms-edit-form.CMSPageSettingsController input[name="ParentType"]:checked').entwine({onmatch:function(){this.redraw(),this._super()},onunmatch:function(){this._super()},redraw:function(){var t=e(".cms-edit-form.CMSPageSettingsController #Form_EditForm_ParentID_Holder");"Form_EditForm_ParentType_root"==e(this).attr("id")?t.slideUp():t.slideDown()},onclick:function(){this.redraw()}}),"Form_EditForm_ParentType_root"==e('.cms-edit-form.CMSPageSettingsController input[name="ParentType"]:checked').attr("id")&&e(".cms-edit-form.CMSPageSettingsController #Form_EditForm_ParentID_Holder").hide()})},"./client/src/legacy/CMSMain.Tree.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n(0),r=a(i),o=n(1),s=a(o);r.default.entwine("ss.tree",function(e){e(".cms-tree").entwine({fromDocument:{"oncontext_show.vakata":function(e){this.adjustContextClass()}},adjustContextClass:function(){var t=e("#vakata-contextmenu").find("ul ul");t.each(function(n){var a="1",i=e(t[n]).find("li").length;i>20?a="3":i>10&&(a="2"),e(t[n]).addClass("col-"+a).removeClass("right"),e(t[n]).find("li").on("mouseenter",function(t){e(this).parent("ul").removeClass("right")})})},showListViewFor:function(t){localStorage.setItem("ss.pages-view-type","listview");var n=this.closest(".cms-content-view"),a=n.data("url-listviewroot"),i=e.path.addSearchParams(a,{ParentID:t}),r=e("base").attr("href")||"";window.location.assign(r+i)},getTreeConfig:function(){var t=this,n=this._super();return this.getHints(),n.plugins.push("contextmenu"),n.contextmenu={items:function(n){var a={edit:{label:n.hasClass("edit-disabled")?s.default._t("CMS.EditPage","Edit page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"):s.default._t("CMS.ViewPage","View page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(s.default.sprintf(t.data("urlEditpage"),n.data("id")))}}};n.hasClass("nochildren")||(a.showaslist={label:s.default._t("CMS.ShowAsList"),action:function(e){t.showListViewFor(e.data("id"))}});var i=(n.data("pagetype"),n.data("id")),r=n.find(">a .item").data("allowedchildren"),o={},l=!1;return e.each(r,function(n,a){l=!0,o["allowedchildren-"+n]={label:'<span class="jstree-pageicon"></span>'+a,_class:"class-"+n.replace(/[^a-zA-Z0-9\-_:.]+/g,"_"),action:function(a){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(s.default.sprintf(t.data("urlAddpage"),i,n),t.data("extraParams")))}}}),l&&(a.addsubpage={label:s.default._t("CMS.AddSubPage","Add page under this page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"),submenu:o}),n.hasClass("edit-disabled")||(a.duplicate={label:s.default._t("CMS.Duplicate"),submenu:[{label:s.default._t("CMS.ThisPageOnly"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(s.default.sprintf(t.data("urlDuplicate"),n.data("id")),t.data("extraParams")))}},{label:s.default._t("CMS.ThisPageAndSubpages"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(s.default.sprintf(t.data("urlDuplicatewithchildren"),n.data("id")),t.data("extraParams")))}}]}),a}},n}}),e(".cms-tree a.jstree-clicked").entwine({onmatch:function(){var e,t=this,n=t.parents(".cms-panel-content");(t.offset().top<0||t.offset().top>n.height()-t.height())&&(e=n.scrollTop()+t.offset().top+n.height()/2,n.animate({scrollTop:e},"slow"))}}),e(".cms-tree-filtered .clear-filter").entwine({onclick:function(){window.location=location.protocol+"//"+location.host+location.pathname}}),e(".cms-tree .subtree-list-link").entwine({onclick:function(e){e.preventDefault(),this.closest(".cms-tree").showListViewFor(this.data("id"))}})})},"./client/src/legacy/CMSMain.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e(".cms-content-header-info").entwine({"from .cms-panel":{ontoggle:function(e){var t=this.closest(".cms-content").find(e.target);0!==t.length&&this.parent()[t.hasClass("collapsed")?"addClass":"removeClass"]("collapsed")}}}),e(".cms-panel-deferred.cms-content-view").entwine({onadd:function(){if(!this.data("no-ajax")){var e=localStorage.getItem("ss.pages-view-type")||"treeview";this.closest(".cms-content-tools").length>0&&(e="treeview");var t=this.data("url-"+e),n=localStorage.getItem("ss.pages-view-filtered");localStorage.setItem("ss.pages-view-filtered",!1),this.data("deferredNoCache",n||"listview"===e),this.data("url",t+location.search),this._super()}}}),e(".js-injector-boot .search-holder--cms").entwine({search:function(e){localStorage.setItem("ss.pages-view-filtered",!0),this._super(e)}}),e(".cms .page-view-link").entwine({onclick:function(t){t.preventDefault();var n=e(this).data("view"),a=this.closest(".cms-content-view"),i=a.data("url-"+n),r=0!==a.closest(".cms-content-tools").length;if(localStorage.setItem("ss.pages-view-type",n),r&&"listview"===n){var o=e("base").attr("href")||"";return void window.location.assign(o+a.data("url-listviewroot"))}a.data("url",i+location.search),a.redraw()}}),e(".cms .cms-clear-filter").entwine({onclick:function(t){t.preventDefault(),window.location=e(this).prop("href")}}),e(".cms-content-toolbar").entwine({onmatch:function(){var t=this;this._super(),e.each(this.find(".cms-actions-buttons-row .tool-button"),function(){var n=e(this),a=n.data("toolid");n.hasClass("active"),void 0!==a&&(n.data("active",!1).removeClass("active"),e("#"+a).hide(),t.bindActionButtonEvents(n))})},onunmatch:function(){var t=this;this._super(),e.each(this.find(".cms-actions-buttons-row .tool-button"),function(){var n=e(this);t.unbindActionButtonEvents(n)})},bindActionButtonEvents:function(e){var t=this;e.on("click.cmsContentToolbar",function(n){t.showHideTool(e)})},unbindActionButtonEvents:function(e){e.off(".cmsContentToolbar")},showHideTool:function(t){var n=t.data("active"),a=t.data("toolid"),i=e("#"+a);e.each(this.find(".cms-actions-buttons-row .tool-button"),function(){var t=e(this),n=e("#"+t.data("toolid"));t.data("toolid")!==a&&(n.hide(),t.data("active",!1))}),t[n?"removeClass":"addClass"]("active"),i[n?"hide":"show"](),t.data("active",!n)}})})},"./client/src/legacy/CMSPageHistoryController.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var i=n(0),r=a(i),o=n(1),s=a(o);r.default.entwine("ss",function(e){e("#Form_VersionsForm").entwine({onmatch:function(){this._super()},onunmatch:function(){this._super()},onsubmit:function(t){t.preventDefault();var n=this.find(":input[name=ID]").val();if(!n)return!1;var a=null,i=null,r=null,o=this.find(":input[name=CompareMode]").is(":checked"),l=this.find("table input[type=checkbox]").filter(":checked");if(o){if(2!==l.length)return!1;i=l.eq(0).val(),r=l.eq(1).val(),a=s.default.sprintf(this.data("linkTmplCompare"),n,r,i)}else i=l.eq(0).val(),a=s.default.sprintf(this.data("linkTmplShow"),n,i);return e(".cms-container").loadPanel(a,"",{pjax:"CurrentForm"}),!0}}),e("#Form_VersionsForm input[name=ShowUnpublished]").entwine({onmatch:function(){this.toggle(),this._super()},onunmatch:function(){this._super()},onchange:function(){this.toggle()},toggle:function(){var t=e(this),n=t.parents("form").find("tr[data-published=false]");t.attr("checked")?n.removeClass("ui-helper-hidden").show():n.addClass("ui-helper-hidden").hide()._unselect()}}),e("#Form_VersionsForm tbody tr").entwine({onclick:function(){var e=this.parents("form").find(":input[name=CompareMode]").attr("checked"),t=this.siblings(".active");return e&&this.hasClass("active")?void this._unselect():e?t.length>1?void alert(s.default._t("CMS.ONLYSELECTTWO","You can only compare two versions at this time.")):(this._select(),void(1===t.length&&this.parents("form").submit())):(this._select(),t._unselect(),void this.parents("form").submit())},_unselect:function(){this.get(0).classList.remove("active"),this.find(":input[type=checkbox][checked]").attr("checked",!1)},_select:function(){this.addClass("active"),this.find(":input[type=checkbox]").attr("checked",!0)}})})},"./client/src/legacy/RedirectorPage.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e("#Form_EditForm_RedirectionType input").entwine({onmatch:function(){e(this).attr("checked")&&this.toggle(),this._super()},onunmatch:function(){this._super()},onclick:function(){this.toggle()},toggle:function(){"Internal"==e(this).attr("value")?(e("#Form_EditForm_ExternalURL_Holder").hide(),e("#Form_EditForm_LinkToID_Holder").show()):(e("#Form_EditForm_ExternalURL_Holder").show(),e("#Form_EditForm_LinkToID_Holder").hide())}})})},"./client/src/legacy/SiteTreeURLSegmentField.js":function(e,t,n){"use strict";var a=n(0);(function(e){return e&&e.__esModule?e:{default:e}})(a).default.entwine("ss",function(e){e(".field.urlsegment:not(.readonly)").entwine({MaxPreviewLength:55,Ellipsis:"...",onmatch:function(){this.find(":text").length&&this.toggleEdit(!1),this.redraw(),this._super()},redraw:function(){var e=this.find(":text"),t=decodeURI(e.data("prefix")+e.val()),n=t;t.length>this.getMaxPreviewLength()&&(n=this.getEllipsis()+t.substr(t.length-this.getMaxPreviewLength(),t.length)),this.find(".URL-link").attr("href",encodeURI(t+e.data("suffix"))).text(n)},toggleEdit:function(e){var t=this.find(":text");this.find(".preview-holder")[e?"hide":"show"](),this.find(".edit-holder")[e?"show":"hide"](),e&&(t.data("origval",t.val()),t.focus())},update:function(){var e=this,t=this.find(":text"),n=t.data("origval"),a=arguments[0],i=a&&""!==a?a:t.val();n!=i?(this.addClass("loading"),this.suggest(i,function(n){t.val(decodeURIComponent(n.value)),e.toggleEdit(!1),e.removeClass("loading"),e.redraw()})):(this.toggleEdit(!1),this.redraw())},cancel:function(){var e=this.find(":text");e.val(e.data("origval")),this.toggleEdit(!1)},suggest:function(t,n){var a=this,i=a.find(":text"),r=e.path.parseUrl(a.closest("form").attr("action")),o=r.hrefNoSearch+"/field/"+i.attr("name")+"/suggest/?value="+encodeURIComponent(t);r.search&&(o+="&"+r.search.replace(/^\?/,"")),e.ajax({url:o,success:function(e){n.apply(this,arguments)},error:function(e,t){e.statusText=e.responseText},complete:function(){a.removeClass("loading")}})}}),e(".field.urlsegment .edit").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").toggleEdit(!0)}}),e(".field.urlsegment .update").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").update()}}),e(".field.urlsegment .cancel").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").cancel()}})})},"./client/src/state/anchorSelector/AnchorSelectorActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ANCHORSELECTOR_UPDATED:"ANCHORSELECTOR_UPDATED",ANCHORSELECTOR_UPDATING:"ANCHORSELECTOR_UPDATING",ANCHORSELECTOR_UPDATE_FAILED:"ANCHORSELECTOR_UPDATE_FAILED"}},"./client/src/state/anchorSelector/AnchorSelectorActions.js":function(e,t,n){"use strict";function a(e){return{type:s.default.ANCHORSELECTOR_UPDATING,payload:{pageId:e}}}function i(e,t){return{type:s.default.ANCHORSELECTOR_UPDATED,payload:{pageId:e,anchors:t}}}function r(e){return{type:s.default.ANCHORSELECTOR_UPDATE_FAILED,payload:{pageId:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.beginUpdating=a,t.updated=i,t.updateFailed=r;var o=n("./client/src/state/anchorSelector/AnchorSelectorActionTypes.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./client/src/state/anchorSelector/AnchorSelectorReducer.js":function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(n,a){var r=t.payload.pageId;return(0,s.default)({pages:[].concat(i(e.pages.filter(function(e){return e.id!==r})),[{id:r,loadingState:n,anchors:a}]).sort(function(e,t){return e.id-t.id})})};switch(t.type){case d.default.ANCHORSELECTOR_UPDATING:return n(u.default.UPDATING,[]);case d.default.ANCHORSELECTOR_UPDATED:return n(u.default.SUCCESS,t.payload.anchors);case d.default.ANCHORSELECTOR_UPDATE_FAILED:return n(u.default.FAILED,[]);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(12),s=a(o),l=n("./client/src/state/anchorSelector/AnchorSelectorActionTypes.js"),d=a(l),c=n("./client/src/state/anchorSelector/AnchorSelectorStates.js"),u=a(c),f=(0,s.default)({pages:[]})},"./client/src/state/anchorSelector/AnchorSelectorStates.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SUCCESS:"SUCCESS",DIRTY:"DIRTY",UPDATING:"UPDATING",FAILED:"FAILED"}},"./client/src/state/history/readOnePageQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.query=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\nquery ReadHistoryViewerPage ($page_id: ID!, $limit: Int!, $offset: Int!) {\n readOnePage(\n Versioning: {\n Mode: LATEST\n },\n ID: $page_id\n ) {\n ID\n Versions (limit: $limit, offset: $offset, sortBy: [{\n field: Version,\n direction: DESC\n }]) {\n pageInfo {\n totalCount\n }\n edges {\n node {\n Version\n AbsoluteLink\n Author {\n FirstName\n Surname\n }\n Publisher {\n FirstName\n Surname\n }\n Published\n LiveVersion\n LatestDraftVersion\n LastEdited\n }\n }\n }\n }\n}\n"],["\nquery ReadHistoryViewerPage ($page_id: ID!, $limit: Int!, $offset: Int!) {\n readOnePage(\n Versioning: {\n Mode: LATEST\n },\n ID: $page_id\n ) {\n ID\n Versions (limit: $limit, offset: $offset, sortBy: [{\n field: Version,\n direction: DESC\n }]) {\n pageInfo {\n totalCount\n }\n edges {\n node {\n Version\n AbsoluteLink\n Author {\n FirstName\n Surname\n }\n Publisher {\n FirstName\n Surname\n }\n Published\n LiveVersion\n LatestDraftVersion\n LastEdited\n }\n }\n }\n }\n}\n"]),r=n(3),o=n(10),s=function(e){return e&&e.__esModule?e:{default:e}}(o),l=(0,s.default)(i),d={options:function(e){var t=e.recordId,n=e.limit;return{variables:{limit:n,offset:((e.page||1)-1)*n,page_id:t},fetchPolicy:"network-only"}},props:function(e){var t=e.data,n=t.error,i=t.refetch,r=t.readOnePage,o=t.loading,s=e.ownProps,l=s.actions,d=void 0===l?{versions:{}}:l,c=s.limit,u=s.recordId,f=r||null,h=n&&n.graphQLErrors&&n.graphQLErrors.map(function(e){return e.message});return{loading:o||!f,versions:f,graphQLErrors:h,actions:a({},d,{versions:a({},f,{goToPage:function(e){i({offset:((e||1)-1)*c,limit:c,page_id:u})}})})}}};t.query=l,t.config=d,t.default=(0,r.graphql)(l,d)},"./client/src/state/history/rollbackPageMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.mutation=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\nmutation rollbackPage($id:ID!, $toVersion:Int!) {\n rollbackSilverStripeSiteTree(\n ID: $id\n ToVersion: $toVersion\n ) {\n ID\n }\n}\n"],["\nmutation rollbackPage($id:ID!, $toVersion:Int!) {\n rollbackSilverStripeSiteTree(\n ID: $id\n ToVersion: $toVersion\n ) {\n ID\n }\n}\n"]),r=n(3),o=n(10),s=function(e){return e&&e.__esModule?e:{default:e}}(o),l=(0,s.default)(i),d={props:function(e){var t=e.mutate,n=e.ownProps.actions,i=function(e,n){return t({variables:{id:e,toVersion:n}})};return{actions:a({},n,{rollbackPage:i,revertToVersion:i})}},options:{refetchQueries:["ReadHistoryViewerPage"]}};t.mutation=l,t.config=d,t.default=(0,r.graphql)(l,d)},0:function(e,t){e.exports=jQuery},1:function(e,t){e.exports=i18n},10:function(e,t){e.exports=GraphQLTag},11:function(e,t){e.exports=Redux},12:function(e,t){e.exports=DeepFreezeStrict},13:function(e,t){e.exports=FieldHolder},14:function(e,t){e.exports=IsomorphicFetch},15:function(e,t){e.exports=PropTypes},16:function(e,t){e.exports=ReactSelect},17:function(e,t){e.exports=ReduxForm},18:function(e,t){e.exports=SilverStripeComponent},19:function(e,t){e.exports=classnames},2:function(e,t){e.exports=Injector},20:function(e,t){e.exports=getFormState},3:function(e,t){e.exports=ReactApollo},4:function(e,t){e.exports=React},5:function(e,t){e.exports=ReactRedux}});
|
@ -47,7 +47,10 @@ $.entwine('ss', function($){
|
||||
) {
|
||||
self.updateURLSegment(title);
|
||||
} else {
|
||||
$('.update', self.parent()).show();
|
||||
$('.update', self.parent())
|
||||
.show()
|
||||
.parent('.form__field-holder')
|
||||
.addClass('input-group');
|
||||
}
|
||||
|
||||
self.updateRelatedFields(title, origTitle);
|
||||
@ -92,7 +95,10 @@ $.entwine('ss', function($){
|
||||
var updateURLFromTitle = $('.update', this.parent());
|
||||
urlSegmentField.update(title);
|
||||
if (updateURLFromTitle.is(':visible')) {
|
||||
updateURLFromTitle.hide();
|
||||
updateURLFromTitle
|
||||
.hide()
|
||||
.parent('.form__field-holder')
|
||||
.removeClass('input-group');
|
||||
}
|
||||
},
|
||||
|
||||
@ -133,7 +139,6 @@ $.entwine('ss', function($){
|
||||
|
||||
// insert elements
|
||||
updateURLFromTitle.insertAfter(self);
|
||||
updateURLFromTitle.parent('.form__field-holder').addClass('input-group');
|
||||
updateURLFromTitle.hide();
|
||||
}
|
||||
});
|
||||
@ -242,7 +247,8 @@ $.entwine('ss', function($){
|
||||
return false;
|
||||
}
|
||||
|
||||
// Continue
|
||||
// Add a loading indicator and continue
|
||||
this.parents('form:first').addClass('loading');
|
||||
return this._super(e);
|
||||
}
|
||||
});
|
||||
@ -267,10 +273,11 @@ $.entwine('ss', function($){
|
||||
.replace(/\\n/g, '\n');
|
||||
|
||||
if(confirm(message)) {
|
||||
// Add a loading indicator and continue
|
||||
this.parents('form:first').addClass('loading');
|
||||
return this._super(e);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
@ -297,10 +304,11 @@ $.entwine('ss', function($){
|
||||
version
|
||||
);
|
||||
if(confirm(message)) {
|
||||
// Add a loading indicator and continue
|
||||
this.parents('form:first').addClass('loading');
|
||||
return this._super(e);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
@ -323,10 +331,11 @@ $.entwine('ss', function($){
|
||||
version
|
||||
);
|
||||
if(confirm(message)) {
|
||||
// Add a loading indicator and continue
|
||||
this.parents('form:first').addClass('loading');
|
||||
return this._super(e);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -47,7 +47,7 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem
|
||||
|
||||
public function getLink()
|
||||
{
|
||||
return Controller::join_links($this->record->PreviewLink(), '?stage=Live');
|
||||
return Controller::join_links($this->getLivePage()->PreviewLink(), '?stage=Live');
|
||||
}
|
||||
|
||||
public function canView($member = null)
|
||||
|
@ -319,7 +319,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
* @config
|
||||
* @var string
|
||||
*/
|
||||
private static $meta_generator = 'SilverStripe - http://silverstripe.org';
|
||||
private static $meta_generator = 'SilverStripe - https://www.silverstripe.org';
|
||||
|
||||
protected $_cache_statusFlags = null;
|
||||
|
||||
@ -1779,7 +1779,12 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
}
|
||||
|
||||
// Content links
|
||||
$items = new ArrayList();
|
||||
$items = ArrayList::create();
|
||||
|
||||
// If the record hasn't been written yet, it cannot be depended on yet
|
||||
if (!$this->isInDB()) {
|
||||
return $items;
|
||||
}
|
||||
|
||||
// We merge all into a regular SS_List, because DataList doesn't support merge
|
||||
if ($contentLinks = $this->BackLinkTracking()) {
|
||||
|
@ -26,17 +26,18 @@ class ContentControllerSearchExtension extends Extension
|
||||
*/
|
||||
public function SearchForm()
|
||||
{
|
||||
$searchText = _t('SilverStripe\\CMS\\Search\\SearchForm.SEARCH', 'Search');
|
||||
|
||||
$searchText = '';
|
||||
if ($this->owner->getRequest() && $this->owner->getRequest()->getVar('Search')) {
|
||||
$searchText = $this->owner->getRequest()->getVar('Search');
|
||||
}
|
||||
|
||||
$fields = new FieldList(
|
||||
new TextField('Search', false, $searchText)
|
||||
$placeholder = _t('SilverStripe\\CMS\\Search\\SearchForm.SEARCH', 'Search');
|
||||
$fields = FieldList::create(
|
||||
TextField::create('Search', false, $searchText)
|
||||
->setAttribute('placeholder', $placeholder)
|
||||
);
|
||||
$actions = new FieldList(
|
||||
new FormAction('results', _t('SilverStripe\\CMS\\Search\\SearchForm.GO', 'Go'))
|
||||
$actions = FieldList::create(
|
||||
FormAction::create('results', _t('SilverStripe\\CMS\\Search\\SearchForm.GO', 'Go'))
|
||||
);
|
||||
/** @skipUpgrade */
|
||||
$form = SearchForm::create($this->owner, 'SearchForm', $fields, $actions);
|
||||
|
@ -10,7 +10,6 @@ ar:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'النفاذ إلى القسم ''{title}'''
|
||||
ACCESS_HELP: 'سماح بعرض لقسم يحتوي على صفحة الشجرة والمحتوى. يمكن التعامل معها عرض وتحرير الأذونات من خلال القائمه المنسدله للروابط محددة صفحة، فضلا عن فصل "أذونات المحتوى".'
|
||||
APPLY_FILTER: بحث
|
||||
ARCHIVE: أرشفة
|
||||
ARCHIVEDPAGE: 'أرشفة الصفحة ''{title}'''
|
||||
AddNew: 'اضافة صفحة جديدة'
|
||||
@ -22,7 +21,6 @@ ar:
|
||||
Create: خلق
|
||||
DUPLICATED: 'تكرار ''{title}'' بنجاح'
|
||||
DUPLICATEDWITHCHILDREN: 'تكرار ''{title}'' والتوابع بنجاح'
|
||||
ListFiltered: 'استعراض نتائج البحث'
|
||||
NEWPAGE: '{pagetype} جديد'
|
||||
PAGENOTEXISTS: 'هذه الصفحة غير موجودة'
|
||||
PAGES: 'حالة الصفحة'
|
||||
@ -37,7 +35,6 @@ ar:
|
||||
RESTORED: 'استعادة ''{title}'' بنجاح'
|
||||
ROLLEDBACKPUBv2: 'التراجع إلى النسخة المنشورة.'
|
||||
ROLLEDBACKVERSIONv2: 'التراجع إلى النسخة #{version}.'
|
||||
SAVEDRAFT: حفظ
|
||||
SHOW_AS_LIST: 'عرض كقائمة'
|
||||
SilverStripe\CMS\Controllers\CMSPageAddController:
|
||||
ParentMode_child: 'تحت صفحة أخرى'
|
||||
@ -109,7 +106,6 @@ ar:
|
||||
BUTTONCANCELDRAFTDESC: 'إلغاء المسودة و العودة إلى الموقع المنشور حالياً'
|
||||
BUTTONPUBLISHED: نشرت
|
||||
BUTTONSAVED: 'تم الحفظ'
|
||||
BUTTONSAVEPUBLISH: نشر
|
||||
BUTTONUNPUBLISH: 'غير منشور'
|
||||
BUTTONUNPUBLISHDESC: 'حذف هذه الصفحة من الموقع المنشور'
|
||||
Comments: التعليقات
|
||||
@ -119,7 +115,6 @@ ar:
|
||||
DEFAULTHOMETITLE: الرئيسة
|
||||
DEPENDENT_NOTE: 'الصفحات التالية تعتمد على هذه الصفحة. وهذا يشمل صفحات الظاهري، وصفحات معيد التوجيه، والصفحات التي تحتوي على روابط المحتوى.'
|
||||
DependtPageColumnLinkType: 'نوع الرابط'
|
||||
DependtPageColumnURL: رابط
|
||||
EDITHEADER: 'من يستطيع تعديل هذه الصفحة؟'
|
||||
EDITORGROUPS: 'مجموعات المحرر'
|
||||
EDIT_ALL_DESCRIPTION: 'Can edit any page on the site, bypassing page specific security'
|
||||
|
13
lang/bg.yml
13
lang/bg.yml
@ -14,7 +14,6 @@ bg:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Достъп до ''{title}'' секция'
|
||||
ACCESS_HELP: 'Разреши излгед на раздела съдържащ структурното дърво и съдържанието. Правата за достъп и редактиране могат да бъдат променени през падащи менюта (dropdowns), както и чрез отделни права на съдържанието'
|
||||
APPLY_FILTER: Търси
|
||||
ARCHIVE: Архивирай
|
||||
ARCHIVEDPAGE: 'Страница ''{title}'' беше архивирана'
|
||||
AddNew: 'Добави страница'
|
||||
@ -31,7 +30,6 @@ bg:
|
||||
DUPLICATED: '''{title}'' беше успешно дублирана'
|
||||
DUPLICATEDWITHCHILDREN: '''{title}'' и под-страниците бяха успешно дублирани'
|
||||
EMAIL: Еmail
|
||||
ListFiltered: 'Резултати от търсенето'
|
||||
NEWPAGE: 'Нова страница {pagetype}'
|
||||
PAGENOTEXISTS: 'Тази страница не съществува'
|
||||
PAGES: 'Състояние на страницата'
|
||||
@ -57,7 +55,6 @@ bg:
|
||||
ROLLEDBACKPUBv2: 'Беше върнато до публикуваната версия'
|
||||
ROLLEDBACKVERSIONv2: 'Беше върната версия #{version}.'
|
||||
SAVED: 'Страница ''{title}'' беше записана успешно.'
|
||||
SAVEDRAFT: Запис
|
||||
SHOW_AS_LIST: 'покажи в списък'
|
||||
TOO_MANY_PAGES: 'Твърде много страници'
|
||||
TabContent: Съдържание
|
||||
@ -178,7 +175,6 @@ bg:
|
||||
BUTTONDELETEDESC: 'Премахни от чернова/публикация и запиши в архива'
|
||||
BUTTONPUBLISHED: Публикувана
|
||||
BUTTONSAVED: Записана
|
||||
BUTTONSAVEPUBLISH: Публикувай
|
||||
BUTTONUNPUBLISH: 'Премахни от публикация'
|
||||
BUTTONUNPUBLISHDESC: 'Премахни тази страница от публикувания сайт'
|
||||
Comments: Коментари
|
||||
@ -192,7 +188,6 @@ bg:
|
||||
DEPENDENT_NOTE: 'Следните страници зависят от тази страница. Това включва виртуални страници, пренасочващи страници и страници с препратки в съдържанието към тази страница.'
|
||||
DESCRIPTION: 'Обща страница със съдържание'
|
||||
DependtPageColumnLinkType: 'Тип на връзката'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Кой може да променя вътре в CMS?'
|
||||
EDITORGROUPS: 'Групи редактори'
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Групи с глобални права за редактиране: {groupList}'
|
||||
@ -265,14 +260,6 @@ bg:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Тип
|
||||
TITLE_USED_ON: 'Използвано в'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Употреба
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Връзки към Дървото на сайта'
|
||||
PLURALS:
|
||||
one: 'Връзка към Дървото на сайта'
|
||||
other: '{count} връзки към Дървото на сайта'
|
||||
SINGULARNAME: 'Връзка към Дървото на сайта'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Свързани страници'
|
||||
DESCRIPTION: 'Показва съдържанието на друга страница'
|
||||
|
@ -14,7 +14,6 @@ cs:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Přístup k ''{title}'' sekci'
|
||||
ACCESS_HELP: 'Povolit prohlížení sekce obsahující strukturu a obsah webu. Oprávnění na prohlížení a úpravu mohou být nastavena skrze menu pro samostatnou stránku, také jako jednotlivé oprávnění pro obsah.'
|
||||
APPLY_FILTER: Hledat
|
||||
ARCHIVE: Archív
|
||||
ARCHIVEDPAGE: 'Archivovaná stránka ''{title}'''
|
||||
AddNew: 'Přidat novou stránku'
|
||||
@ -25,7 +24,6 @@ cs:
|
||||
ArchiveWarningWithChildren: 'Varování: Stránka a její potomkové bude nezveřejněna před odesláním do archívu.\n\nSkutečně to chcete vykonat?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Varování: Stránka a její potomkové bude nezveřejněna a automaticky odstraněna z její asociací {NumCampaigns} před odesláním do archívu.\n\nSkutečně to chcete vykonat?'
|
||||
CANT_REORGANISE: 'Nemáte oprávnění měnit stránky nejvyšší úrovně. Vaše změna nebyla uložena.'
|
||||
CLEAR_FILTER: Vyčistit
|
||||
Cancel: Storno
|
||||
ChoosePageParentMode: 'Vyberte, kde vytvořit tuto stránku'
|
||||
ChoosePageType: 'Vyberte typ stránky'
|
||||
@ -33,7 +31,6 @@ cs:
|
||||
DUPLICATED: 'Duplikováno ''{title}'' úspěšně'
|
||||
DUPLICATEDWITHCHILDREN: 'Duplikováno ''{title}'' a potomci úspěšně'
|
||||
EMAIL: E-mail
|
||||
ListFiltered: 'Zobrazení výsledků vyhledávání.'
|
||||
NEWPAGE: 'Nová {pagetype}'
|
||||
PAGENOTEXISTS: 'Tato stránka neexistuje'
|
||||
PAGES: 'Stav stránky'
|
||||
@ -176,7 +173,6 @@ cs:
|
||||
DEPENDENT_NOTE: 'Následující stránky závisí na této stránce. Tyto obsahují virtuální stránky, přesměrovací stránky a stránky s odkazy obsahu.'
|
||||
DESCRIPTION: 'Obecný obsah stránky'
|
||||
DependtPageColumnLinkType: 'Typ odkazu'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Kdo může tuto stránku editovat?'
|
||||
EDITORGROUPS: 'Editor skupin'
|
||||
EDIT_ALL_DESCRIPTION: 'Může editovat jakoukoli stránku webu, obcházeje bezpečnostní specifikaci stránky'
|
||||
|
14
lang/da.yml
14
lang/da.yml
@ -59,7 +59,7 @@ da:
|
||||
ROLLEDBACKPUBv2: 'Rullede tilbage til den udgivne version.'
|
||||
ROLLEDBACKVERSIONv2: 'Rullede tilbage til version #{version}.'
|
||||
SAVED: 'Gemte ''{title}'' succesfuldt'
|
||||
SAVEDRAFT: Gem
|
||||
SAVEDRAFT: 'Gem kladde'
|
||||
SHOW_AS_LIST: 'Vis som liste'
|
||||
TOO_MANY_PAGES: 'For mange sider'
|
||||
TabContent: Indhold
|
||||
@ -181,7 +181,7 @@ da:
|
||||
BUTTONDELETEDESC: 'Fjern fra kladde og udgivet og læg i arkiv'
|
||||
BUTTONPUBLISHED: Udgivet
|
||||
BUTTONSAVED: Gemt
|
||||
BUTTONSAVEPUBLISH: Udgiv
|
||||
BUTTONSAVEPUBLISH: 'Gem og udgiv'
|
||||
BUTTONUNPUBLISH: 'Annuller udgivelse'
|
||||
BUTTONUNPUBLISHDESC: 'Fjern denne side fra det udgivne websted'
|
||||
Comments: Kommentarer
|
||||
@ -266,17 +266,11 @@ da:
|
||||
many_many_ImageTracking: 'Sporing af billeder'
|
||||
many_many_LinkTracking: 'Sporing af links'
|
||||
SilverStripe\CMS\Model\SiteTreeFileExtension:
|
||||
BACKLINKCOUNT: 'Brugt på:'
|
||||
PAGES: Side(r)
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Type
|
||||
TITLE_USED_ON: 'Brugt på'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Brug
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Sidetræ links'
|
||||
PLURALS:
|
||||
one: 'Et sidetræ link'
|
||||
other: '{count} Sidetræ links'
|
||||
SINGULARNAME: 'Sidetræ link'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Linket side'
|
||||
DESCRIPTION: 'Viser indholdet fra en anden side'
|
||||
|
28
lang/de.yml
28
lang/de.yml
@ -14,13 +14,14 @@ de:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Zugang zum Bereich ''{title}'''
|
||||
ACCESS_HELP: 'Seiteninhalt im CMS anzeigen. Anzeige- und Bearbeitungsberechtigungen können sowohl seitenspezifische als auch über die globalen Inhaltsberechtigungen gesetzt werden.'
|
||||
APPLY_FILTER: Suche
|
||||
APPLY_FILTER: Suchen
|
||||
ARCHIVE: Archiv
|
||||
ARCHIVEDPAGE: 'Seite ''{title}'' archiviert'
|
||||
AddNew: 'Neue Seite hinzufügen'
|
||||
AddNewButton: Hinzufügen
|
||||
AddPageRestriction: 'Hinweis: einige Seitentypen sind in diesem Bereich nicht erlaubt.'
|
||||
CLEAR_FILTER: Löschen
|
||||
ArchiveWarning: 'Warnung: Die Veröffentlichung dieser Seite wird zurückgenommen, bevor sie archiviert wird.\n\nSind Sie sicher, dass Sie fortfahren wollen?'
|
||||
Cancel: Abbrechen
|
||||
ChoosePageParentMode: 'Wo soll diese Seite erstellt werden?'
|
||||
ChoosePageType: 'Seitentyp auswählen'
|
||||
@ -28,12 +29,13 @@ de:
|
||||
DUPLICATED: '''{title}'' wurde erfolgreich dupliziert'
|
||||
DUPLICATEDWITHCHILDREN: '''{title}'' und alle Unterseiten wurden erfolgreich dupliziert'
|
||||
EMAIL: E-Mail
|
||||
ListFiltered: Suchergebnisse
|
||||
ListFiltered: 'Suchergebnisse werden angezeigt.'
|
||||
NEWPAGE: 'Neue {pagetype}'
|
||||
PAGENOTEXISTS: 'Diese Seite existiert nicht'
|
||||
PAGES: Seitenstatus
|
||||
PAGETYPEANYOPT: Alle
|
||||
PAGETYPEOPT: Seitentyp
|
||||
PAGETYPE_TITLE: '(Seitentyp: {type}) {title}'
|
||||
PUBALLCONFIRM: 'Veröffentlicht jede Seite des Seitenbaumes und kopiert den Inhalt von Entwurf zu Live.'
|
||||
PUBALLFUN: '"Alle veröffentlichen"-Funktion'
|
||||
PUBLISHED: '''{title}'' wurde erfolgreich veröffentlicht.'
|
||||
@ -41,6 +43,7 @@ de:
|
||||
PageAdded: 'Seite erfolgreich erstellt'
|
||||
REMOVEDPAGE: '''{title}'' wurde von der veröffentlichten Site entfernt'
|
||||
REMOVEDPAGEFROMDRAFT: 'Lösche ''{title}'' von der Entwurfs-Site'
|
||||
REORGANISATIONSUCCESSFUL: 'Der Seitenbaum wurde erfolgreich sortiert'
|
||||
RESTORE: 'Entwurf wiederherstellen'
|
||||
RESTORED: '''{title}'' wurde wiederhergestellt'
|
||||
RESTORE_DESC: 'Entwurf aus archivierter Version wiederherstellen'
|
||||
@ -50,6 +53,7 @@ de:
|
||||
ROLLEDBACKPUBv2: 'Veröffentlichte Version wiederhergestellt'
|
||||
ROLLEDBACKVERSIONv2: 'Version #{version} wiederhergestellt.'
|
||||
SAVED: '''{title}'' erfolgreich gespeichert.'
|
||||
SAVEDRAFT: 'Entwurf speichern'
|
||||
SHOW_AS_LIST: 'als Liste zeigen'
|
||||
TOO_MANY_PAGES: 'Zu viele Seiten'
|
||||
TabContent: Inhalt
|
||||
@ -91,6 +95,8 @@ de:
|
||||
Title: 'Geänderte Seiten'
|
||||
SilverStripe\CMS\Controllers\CMSSiteTreeFilter_DeletedPages:
|
||||
Title: 'Alle Seiten, inkl. Archiv'
|
||||
SilverStripe\CMS\Controllers\CMSSiteTreeFilter_PublishedPages:
|
||||
Title: 'Veröffentlichte Seiten'
|
||||
SilverStripe\CMS\Controllers\CMSSiteTreeFilter_Search:
|
||||
Title: 'Alle Seiten'
|
||||
SilverStripe\CMS\Controllers\CMSSiteTreeFilter_StatusDeletedPages:
|
||||
@ -122,9 +128,17 @@ de:
|
||||
VIEWPAGEIN: 'Seite anzeigen in:'
|
||||
SilverStripe\CMS\Controllers\SilverStripeNavigator:
|
||||
ARCHIVED: Archiviert
|
||||
SilverStripe\CMS\Forms\AnchorLinkFormFactory:
|
||||
ANCHORVALUE: Anker
|
||||
SilverStripe\CMS\Forms\InternalLinkFormFactory:
|
||||
LINKOPENNEWWIN: 'In einem neuen Fenster/Reiter öffnen'
|
||||
SELECT_PAGE: 'Seite auswählen'
|
||||
SilverStripe\CMS\Forms\SiteTreeURLSegmentField:
|
||||
Cancel: Abbrechen
|
||||
EMPTY: 'Bitte geben Sie ein URL-Segment ein oder drücken Sie auf Abbrechen'
|
||||
Edit: Bearbeiten
|
||||
HelpChars: 'Sonderzeichen werden automatisch umgewandelt oder entfernt.'
|
||||
OK: OK
|
||||
SilverStripe\CMS\Model\RedirectorPage:
|
||||
DESCRIPTION: 'Leitet zu einer anderen internen oder externen Seite weiter'
|
||||
HEADER: 'Diese Seite wird Nutzer auf eine andere Seite weiterleiten'
|
||||
@ -149,6 +163,7 @@ de:
|
||||
BUTTONCANCELDRAFTDESC: 'Löschen Sie Ihren Entwurf und kehren Sie zur derzeit veröffentlichten Seite zurück.'
|
||||
BUTTONPUBLISHED: Veröffentlicht
|
||||
BUTTONSAVED: Gespeichert
|
||||
BUTTONSAVEPUBLISH: 'Speichern & veröffentlichen'
|
||||
BUTTONUNPUBLISH: 'Veröffentlichung zurücknehmen'
|
||||
BUTTONUNPUBLISHDESC: 'Entferne diese Seite aus der veröffentlichten Website'
|
||||
Comments: Kommentare
|
||||
@ -160,7 +175,6 @@ de:
|
||||
DEPENDENT_NOTE: 'Die folgenden Seiten hängen von dieser Seite ab. Dies schließt Virtuelle Seiten, Weiterleitungen und Seiten mit Links im Inhalt ein.'
|
||||
DESCRIPTION: 'Allgemeine Inhaltsseite'
|
||||
DependtPageColumnLinkType: Linktyp
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Wer kann diese Seite im CMS verändern?'
|
||||
EDITORGROUPS: Bearbeitergruppen
|
||||
EDIT_ALL_DESCRIPTION: 'Kann beliebige Seiten bearbeiten'
|
||||
@ -169,8 +183,11 @@ de:
|
||||
HASBROKENLINKS: 'Diese Seite enthält ungültige Verweise.'
|
||||
HTMLEDITORTITLE: Inhalt
|
||||
INHERIT: 'Von der übergeordneten Seite erben'
|
||||
LASTPUBLISHED: 'Zuletzt veröffentlicht'
|
||||
LASTSAVED: 'Zuletzt gespeichert'
|
||||
LASTUPDATED: 'Letzte Änderung'
|
||||
LINKCHANGENOTE: 'Das Ändern des Links zu dieser Seite führt ebenfalls zur Änderung aller Links der Unterseiten dieser Seite.'
|
||||
LINKSALREADYUNIQUE: '{url} ist bereits eindeutig'
|
||||
LINKSCHANGEDTO: 'Geändert: {url1} -> {url2}'
|
||||
MENUTITLE: Navigationsbezeichnung
|
||||
METADESC: 'Meta Beschreibung'
|
||||
@ -180,6 +197,7 @@ de:
|
||||
MODIFIEDONDRAFTSHORT: 'Zuletzt geändert'
|
||||
MetadataToggle: Metadaten
|
||||
MoreOptions: 'Weitere Optionen'
|
||||
NOTPUBLISHED: 'Nicht veröffentlicht'
|
||||
OBSOLETECLASS: 'Der Seitentyp {type} wird nicht mehr verwendet. Wenn Sie speichern wird der Seitentyp zurückgesetzt, was Datenverlust verursachen kann'
|
||||
ONLIVEONLYSHORTHELP: 'Die Seite ist veröffentlicht, wurde aber von der Entwurf Seite gelöscht.'
|
||||
PAGELOCATION: Seitenposition
|
||||
@ -219,6 +237,8 @@ de:
|
||||
many_many_BackLinkTracking: Rückverweis-Verfolgung
|
||||
many_many_ImageTracking: Bild-Verfolgung
|
||||
many_many_LinkTracking: Link-Verfolgung
|
||||
SilverStripe\CMS\Model\SiteTreeFileExtension:
|
||||
BACKLINKCOUNT: 'Verwendet auf:'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Verknüpfte Seite'
|
||||
DESCRIPTION: 'Zeigt den Inhalt einer anderen Seite an'
|
||||
@ -259,6 +279,8 @@ de:
|
||||
SearchResults: Suchergebnisse
|
||||
SilverStripe\CMS\Tasks\RemoveOrphanedPagesTask:
|
||||
BUTTONRUN: Ausführen
|
||||
DELETEWARNING: 'Warnung: Diese Operationen sind nicht reversibel. Bitte handeln Sie mit Vorsicht.'
|
||||
HEADER: 'Task zum Entfernen aller verwaisten Seiten'
|
||||
NONEREMOVED: 'Keine entfernt'
|
||||
SELECTALL: 'alle auswählen'
|
||||
UNSELECTALL: 'Auswahl aufheben'
|
||||
|
@ -49,7 +49,6 @@ el:
|
||||
DEFAULTCONTACTTITLE: Επικοινωνία
|
||||
DEFAULTHOMETITLE: Αρχική
|
||||
DependtPageColumnLinkType: 'Τύπος συνδέσμου'
|
||||
DependtPageColumnURL: 'Διεύθυνση URL'
|
||||
EDITHEADER: 'Ποιος μπορεί να επεξεργαστεί αυτή τη σελίδα;'
|
||||
EDITORGROUPS: 'Ομάδες Συντακτών'
|
||||
Editors: 'Ομάδες Συντακτών'
|
||||
|
12
lang/en.yml
12
lang/en.yml
@ -180,7 +180,7 @@ en:
|
||||
BUTTONDELETEDESC: 'Remove from draft/live and send to archive'
|
||||
BUTTONPUBLISHED: Published
|
||||
BUTTONSAVED: Saved
|
||||
BUTTONSAVEPUBLISH: Publish
|
||||
BUTTONSAVEPUBLISH: 'Publish'
|
||||
BUTTONUNPUBLISH: Unpublish
|
||||
BUTTONUNPUBLISHDESC: 'Remove this page from the published site'
|
||||
Comments: Comments
|
||||
@ -265,17 +265,11 @@ en:
|
||||
many_many_ImageTracking: 'Image Tracking'
|
||||
many_many_LinkTracking: 'Link Tracking'
|
||||
SilverStripe\CMS\Model\SiteTreeFileExtension:
|
||||
BACKLINKCOUNT: 'Used on:'
|
||||
PAGES: page(s)
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Type
|
||||
TITLE_USED_ON: 'Used on'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Usage
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Site Tree Links'
|
||||
PLURALS:
|
||||
one: 'A Site Tree Link'
|
||||
other: '{count} Site Tree Links'
|
||||
SINGULARNAME: 'Site Tree Link'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Linked Page'
|
||||
DESCRIPTION: 'Displays the content of another page'
|
||||
|
14
lang/eo.yml
14
lang/eo.yml
@ -59,7 +59,7 @@ eo:
|
||||
ROLLEDBACKPUBv2: 'Malfaris ŝanĝojn ĝis la publikigita versio.'
|
||||
ROLLEDBACKVERSIONv2: 'Malfaris ŝanĝojn ĝis versio #{version}.'
|
||||
SAVED: 'Sukcese konservis je ''{title}'''
|
||||
SAVEDRAFT: Konservi
|
||||
SAVEDRAFT: 'Konservi malneton'
|
||||
SHOW_AS_LIST: 'vidigi kiel liston'
|
||||
TOO_MANY_PAGES: 'Tro da paĝoj'
|
||||
TabContent: Enhavo
|
||||
@ -181,7 +181,7 @@ eo:
|
||||
BUTTONDELETEDESC: 'Forigi el malneta aŭ publika, kaj sendi ilin al la arĥivo'
|
||||
BUTTONPUBLISHED: Publikigita
|
||||
BUTTONSAVED: Konservita
|
||||
BUTTONSAVEPUBLISH: Publikigi
|
||||
BUTTONSAVEPUBLISH: 'Konservi kaj publikigi'
|
||||
BUTTONUNPUBLISH: Malpublikigi
|
||||
BUTTONUNPUBLISHDESC: 'Forigi ĉi tiun paĝon de la publikigita retejo'
|
||||
Comments: Komentoj
|
||||
@ -266,17 +266,11 @@ eo:
|
||||
many_many_ImageTracking: 'Spuri Bildojn'
|
||||
many_many_LinkTracking: 'Spuri Ligilojn'
|
||||
SilverStripe\CMS\Model\SiteTreeFileExtension:
|
||||
BACKLINKCOUNT: 'Uzita je:'
|
||||
PAGES: paĝo(j)
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Tipo
|
||||
TITLE_USED_ON: 'Uzita je'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Uzmaniero
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Retejaj arbaj ligiloj'
|
||||
PLURALS:
|
||||
one: 'Unu reteja arba ligilo'
|
||||
other: '{count} retejaj arbaj ligiloj'
|
||||
SINGULARNAME: 'Reteja arba ligilo'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Ligita paĝo'
|
||||
DESCRIPTION: 'Vidigas la enhavon de alia paĝo'
|
||||
|
13
lang/es.yml
13
lang/es.yml
@ -14,13 +14,11 @@ es:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Acceso a la sección ''{title}'''
|
||||
ACCESS_HELP: 'Permitir la visualización de la sección que contiene el árbol de la página y el contenido. Ver y editar permisos puede ser gestionado a través de menús desplegables específicos de las páginas, así como los "permisos de contenido" separados.'
|
||||
APPLY_FILTER: Buscar
|
||||
ARCHIVE: Archivar
|
||||
ARCHIVEDPAGE: '''{title}'' páginas archivadas'
|
||||
AddNew: 'Agregar nueva página'
|
||||
AddNewButton: 'Agregar nuevo'
|
||||
AddPageRestriction: 'Agregar restricción a la página'
|
||||
CLEAR_FILTER: Limpiar
|
||||
Cancel: Cancelar
|
||||
ChoosePageParentMode: 'Elegir donde crear esta página'
|
||||
ChoosePageType: 'Elegir tipo de página'
|
||||
@ -51,7 +49,6 @@ es:
|
||||
ROLLEDBACKPUBv2: Restaurado
|
||||
ROLLEDBACKVERSIONv2: 'Versión #{version} restaurada'
|
||||
SAVED: '''{title}'' guardado satisfactoriamente.'
|
||||
SAVEDRAFT: Guardar
|
||||
SHOW_AS_LIST: 'mostrar como lista'
|
||||
TOO_MANY_PAGES: 'Demasiadas páginas'
|
||||
TabContent: Contenido
|
||||
@ -168,7 +165,6 @@ es:
|
||||
BUTTONDELETEDESC: 'Eliminar desde el borrador/publicadas y enviar al archivo'
|
||||
BUTTONPUBLISHED: Publicado
|
||||
BUTTONSAVED: Guardado
|
||||
BUTTONSAVEPUBLISH: Publicar
|
||||
BUTTONUNPUBLISH: 'Sin Publicar'
|
||||
BUTTONUNPUBLISHDESC: 'Elimine esta página del sitio publicado'
|
||||
Comments: Comentarios
|
||||
@ -180,7 +176,6 @@ es:
|
||||
DEPENDENT_NOTE: 'Las siguientes páginas dependen de esta página. Esto incluye páginas virtuales, páginas de redireccionamiento, y las páginas con enlaces de contenido.'
|
||||
DESCRIPTION: 'Página de contenido genérico'
|
||||
DependtPageColumnLinkType: 'Tipo de enlace'
|
||||
DependtPageColumnURL: 'Depende de'
|
||||
EDITHEADER: '¿Quién puede editar esta página?'
|
||||
EDITORGROUPS: 'Grupos de Editor'
|
||||
EDIT_ALL_DESCRIPTION: 'Editar cualquier página'
|
||||
@ -251,14 +246,6 @@ es:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Tipo
|
||||
TITLE_USED_ON: 'Usado en'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Uso
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Enlaces del árbol del sitio'
|
||||
PLURALS:
|
||||
one: 'Un enlace del árbol del sitio'
|
||||
other: '{count} enlaces del árbol del sitio'
|
||||
SINGULARNAME: 'Enlace del árbol del sitio'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: Seleccionar
|
||||
DESCRIPTION: 'Muestra el contenido de otra página'
|
||||
|
@ -14,7 +14,6 @@ es_MX:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Acceso a la sección ''{title}'''
|
||||
ACCESS_HELP: 'Permitir acceso de lectura a la sección que contiene el árbol del sitio y el contenido. Los permisos de lectura y escritura se pueden manejar a través de desplegables específicos, así como los "Permisos de contenido" separados.'
|
||||
APPLY_FILTER: Buscar
|
||||
ARCHIVE: Archivar
|
||||
ARCHIVEDPAGE: 'Se ha archivado la página ''{title}'''
|
||||
AddNew: 'Agregar página'
|
||||
@ -25,7 +24,6 @@ es_MX:
|
||||
ArchiveWarningWithChildren: 'Advertencia: esta página y todas sus sub páginas serán despublicadas antes de ser enviadas a archivo.\n\nEstás seguro que deseas proceder?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Advertencia: esta página y todas sus sub páginas serán despublicadas y eliminadas automáticamente de {NumCampaigns} campañas asociadas antes de ser enviadas a archivo.\n\nEstás seguro que deseas proceder?'
|
||||
CANT_REORGANISE: 'No tienes permiso para modificar páginas de primer nivel. Tus cambios no se han guardado.'
|
||||
CLEAR_FILTER: Limpiar
|
||||
Cancel: Cancelar
|
||||
ChoosePageParentMode: 'Elige donde crear esta página'
|
||||
ChoosePageType: 'Elige el tipo de página'
|
||||
@ -33,7 +31,6 @@ es_MX:
|
||||
DUPLICATED: '''{title}'' se ha duplicado con éxito'
|
||||
DUPLICATEDWITHCHILDREN: '''{title}'' y sub páginas se han duplicado con éxito'
|
||||
EMAIL: Email
|
||||
ListFiltered: 'Mostrando resultados de búsqueda'
|
||||
NEWPAGE: 'Nueva {pagetype}'
|
||||
PAGENOTEXISTS: 'Esta página no existe'
|
||||
PAGES: 'Estado de página'
|
||||
@ -188,7 +185,6 @@ es_MX:
|
||||
DEPENDENT_NOTE: 'Las siguientes páginas depender de esta página. Esto incluye páginas virtuales, redirección de páginas y páginas con enlaces de contenido.'
|
||||
DESCRIPTION: 'Página de contenido genérico'
|
||||
DependtPageColumnLinkType: 'Tipo de enlace'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: '¿Quién puede modificar esta página?'
|
||||
EDITORGROUPS: 'Editor de grupos'
|
||||
EDIT_ALL_DESCRIPTION: 'Editar cualquier página'
|
||||
|
@ -74,7 +74,6 @@ et_EE:
|
||||
DEFAULTHOMETITLE: Avaleht
|
||||
DEPENDENT_NOTE: 'Alljärgnevad lehed sõltuvad sellest lehest. See hõlmab virtuaalseid lehti, ümbersuunamislehti ja sisulinkidega lehti.'
|
||||
DependtPageColumnLinkType: 'Lingi tüüp'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Kes tohib seda sisuhaldussüsteemi kaudu muuta?'
|
||||
EDITORGROUPS: Muutjagrupid
|
||||
EDIT_ALL_DESCRIPTION: 'Redigeeri mis tahes lehte'
|
||||
|
@ -8,11 +8,9 @@ fa_IR:
|
||||
RESTORE: بازیابی
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'دسترسی به بخش ''{title}'''
|
||||
APPLY_FILTER: جستجو
|
||||
ARCHIVE: بایگانی
|
||||
ARCHIVEDPAGE: 'صفحه بایگانی شده ''{title}'''
|
||||
AddPageRestriction: 'یادداشت: برخی انواع صفحه برای این انتخاب مجاز نیستند.'
|
||||
CLEAR_FILTER: پاککردن
|
||||
Cancel: لغو
|
||||
ChoosePageParentMode: 'انتخاب کنید کجا این صفحه ایجاد شود'
|
||||
ChoosePageType: 'انتخاب نوع صفحه'
|
||||
@ -125,7 +123,6 @@ fa_IR:
|
||||
DEPENDENT_NOTE: 'صفحات زیر وابسته به این صفحه هستند. شامل صفحات مجازی، هدایتگر و صفحاتی با محتوای لینک'
|
||||
DESCRIPTION: 'صفحه محتوای عمومی'
|
||||
DependtPageColumnLinkType: 'نوع پیوند'
|
||||
DependtPageColumnURL: 'نشانی اینترنتی'
|
||||
EDITHEADER: 'چه کسی بتواند این صفحه را ویرایش کند ؟'
|
||||
EDITORGROUPS: 'گروههای ویرایشگر'
|
||||
EDIT_ALL_DESCRIPTION: 'ویرایش هر صفحهای'
|
||||
|
14
lang/fi.yml
14
lang/fi.yml
@ -14,7 +14,6 @@ fi:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Pääsy ''{title}'' -osioon'
|
||||
ACCESS_HELP: 'Oikeuttaa näkemään osion, joka sisältää sivurakenteen ja sisällön. Katselu- ja muokkausoikeuksia voidaan käsitellä sivukohtaisten pudotusvalikoiden kautta, kuten myös erillisestä "Sisällön oikeudet"-kohdasta.'
|
||||
APPLY_FILTER: Haku
|
||||
ARCHIVE: Arkistoi
|
||||
ARCHIVEDPAGE: 'Arkistoitiin sivu ''{title}'''
|
||||
AddNew: 'Lisää uusi sivu'
|
||||
@ -25,7 +24,6 @@ fi:
|
||||
ArchiveWarningWithChildren: 'Varoitus: Tämä sivu ja kaikki sen alasivut poistetaan julkaisusta ennen arkistointia.\n\nHaluatko varmasti jatkaa?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Varoitus: Tämä sivu ja kaikki sen alasivut poistetaan julkaisusta sekä poistetaan liitetyt kampanjat {NumCampaigns} ennen arkistointia.\n\nHaluatko varmasti jatkaa?'
|
||||
CANT_REORGANISE: 'Sinulla ei ole oikeuksia mennä ylemmän tason sivuille. Muutoksiasi ei tallennettu.'
|
||||
CLEAR_FILTER: Tyhjennä
|
||||
Cancel: Peruuta
|
||||
ChoosePageParentMode: 'Valitse kohde, minne sivu luodaan'
|
||||
ChoosePageType: 'Valitse sivutyyppi'
|
||||
@ -33,7 +31,6 @@ fi:
|
||||
DUPLICATED: '''{title}'' monistettu onnistuneesti'
|
||||
DUPLICATEDWITHCHILDREN: '''{title}'' ja alasivu monistettiin onnistuneesti'
|
||||
EMAIL: Sähköposti
|
||||
ListFiltered: 'Näytetään hakutulokset.'
|
||||
NEWPAGE: 'Uusi {pagetype}'
|
||||
PAGENOTEXISTS: 'Tätä sivua ei ole olemassa'
|
||||
PAGES: 'Sivun tila'
|
||||
@ -59,7 +56,6 @@ fi:
|
||||
ROLLEDBACKPUBv2: 'Palattiin takaisin julkaistuun versioon'
|
||||
ROLLEDBACKVERSIONv2: 'Palautettu versioon #{version}.'
|
||||
SAVED: 'Tallennettiin ''{title}'' onnistuneesti.'
|
||||
SAVEDRAFT: Tallenna
|
||||
SHOW_AS_LIST: 'näytä listana'
|
||||
TOO_MANY_PAGES: 'Liian monta sivua'
|
||||
TabContent: Sisältö
|
||||
@ -181,7 +177,6 @@ fi:
|
||||
BUTTONDELETEDESC: 'Poista luonnoksista/julkaistuista ja siirrä arkistoon'
|
||||
BUTTONPUBLISHED: Julkaistu
|
||||
BUTTONSAVED: Tallennettu
|
||||
BUTTONSAVEPUBLISH: Julkaise
|
||||
BUTTONUNPUBLISH: 'Poista julkaisusta'
|
||||
BUTTONUNPUBLISHDESC: 'Poista tämä sivu julkaistulta sivustolta'
|
||||
Comments: Kommentit
|
||||
@ -195,7 +190,6 @@ fi:
|
||||
DEPENDENT_NOTE: 'Seuraavat sivut riippuvat tästä sivusta. Tämä pitää sisällään virtuaaliset sivut, uudelleenohjaussivut ja sivut sisältölinkkien kanssa.'
|
||||
DESCRIPTION: 'Yleinen sisältösivu'
|
||||
DependtPageColumnLinkType: 'Linkin tyyppi'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Kuka voi muokata tätä CMS:ssä?'
|
||||
EDITORGROUPS: 'Muokkaa ryhmiä'
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Ryhmät, joilla laajat muokkausoikeudet: {groupList}'
|
||||
@ -269,14 +263,6 @@ fi:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Tyyppi
|
||||
TITLE_USED_ON: 'Käytössä:'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Käyttö
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Hakemistopuun linkit'
|
||||
PLURALS:
|
||||
one: 'Hakemistopuun linkki'
|
||||
other: '{count} hakemistopuun linkkiä'
|
||||
SINGULARNAME: 'Hakemistopuun linkki'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Linkitetty sivu'
|
||||
DESCRIPTION: 'Näyttää toisen sivun sisällön'
|
||||
|
14
lang/fr.yml
14
lang/fr.yml
@ -14,7 +14,6 @@ fr:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: "Accès à la section «\_{title}\_»"
|
||||
ACCESS_HELP: 'Autoriser la visualisation de la section contenant l''arborescence et le contenu. Les autorisations de voir ou modifier le contenu peuvent être gérées dans les menus déroulants spécifiques à chaque page, ainsi que dans les "permissions de contenu".'
|
||||
APPLY_FILTER: Rechercher
|
||||
ARCHIVE: Archive
|
||||
ARCHIVEDPAGE: 'Page ''{title}'' archivée'
|
||||
AddNew: 'Ajouter une nouvelle page'
|
||||
@ -25,7 +24,6 @@ fr:
|
||||
ArchiveWarningWithChildren: 'Attention: cette page et toutes les pages "enfant" seont dépubliées avant d''être archivées.\n\nEtes-vous sûr de vouloir poursuivre?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Attention: cette page et toutes les pages "enfant" seront dépubliées et retirées automatiquement des {NumCampaigns} associées avant d''être archivées.\n\nEtes-vous sûr de vouloir poursuivre?'
|
||||
CANT_REORGANISE: 'Vous n''avez pas la permission de modifier les pages à la racine du site. Vos modifications n''ont pas été sauvegardées.'
|
||||
CLEAR_FILTER: Effacer
|
||||
Cancel: Annuler
|
||||
ChoosePageParentMode: 'Choisissez à quel emplacement créer cette page'
|
||||
ChoosePageType: 'Choisir le type de page'
|
||||
@ -33,7 +31,6 @@ fr:
|
||||
DUPLICATED: '''{title}'' dupliqué avec succès'
|
||||
DUPLICATEDWITHCHILDREN: '''{title}'' et ses enfants dupliqués avec succès'
|
||||
EMAIL: Email
|
||||
ListFiltered: 'Affichage des résultats de la recherche'
|
||||
NEWPAGE: 'Nouveau {pagetype}'
|
||||
PAGENOTEXISTS: 'Cette page n''existe pas'
|
||||
PAGES: 'Statut de la page'
|
||||
@ -59,7 +56,6 @@ fr:
|
||||
ROLLEDBACKPUBv2: 'Revenir à la version publiée'
|
||||
ROLLEDBACKVERSIONv2: 'Revenir à la version #{version}'
|
||||
SAVED: 'Page ''{title}'' sauvegardée avec succès'
|
||||
SAVEDRAFT: Sauvegarder
|
||||
SHOW_AS_LIST: 'Afficher sous forme de liste'
|
||||
TOO_MANY_PAGES: 'Pages trop nombreuses'
|
||||
TabContent: Contenu
|
||||
@ -181,7 +177,6 @@ fr:
|
||||
BUTTONDELETEDESC: 'Retirer du site public/brouillon et archiver'
|
||||
BUTTONPUBLISHED: Publié
|
||||
BUTTONSAVED: Sauvegardé
|
||||
BUTTONSAVEPUBLISH: Publier
|
||||
BUTTONUNPUBLISH: 'Retirer du site publié'
|
||||
BUTTONUNPUBLISHDESC: Dépublier
|
||||
Comments: Commentaires
|
||||
@ -195,7 +190,6 @@ fr:
|
||||
DEPENDENT_NOTE: 'Les pages suivantes dépendent de cette page. Ceci inclut les pages virtuelles, les redirections et les pages avec des liens.'
|
||||
DESCRIPTION: 'Page au contenu généric'
|
||||
DependtPageColumnLinkType: 'Type de lien'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Qui peut modifier cette page?'
|
||||
EDITORGROUPS: 'Groupes d''édition'
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Groupes avec des autorisations d''édition globales: {groupList}'
|
||||
@ -269,14 +263,6 @@ fr:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Type
|
||||
TITLE_USED_ON: 'Utilisé dans'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Usage
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Liens Site Tree'
|
||||
PLURALS:
|
||||
one: 'Un Lien Site Tree'
|
||||
other: '{count} Liens Site Tree'
|
||||
SINGULARNAME: 'Lien Site Tree'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Page liée'
|
||||
DESCRIPTION: 'Affiche le contenu d''une autre page'
|
||||
|
@ -68,7 +68,6 @@ he_IL:
|
||||
DEFAULTHOMETITLE: 'דף הבית'
|
||||
DEPENDENT_NOTE: 'העמודים הבאים תלויים בעמוד זה. בין אלו נכללים, עמודים וירטואליים, עמודי הפנייה ועמודים עם קישורי תוכן.'
|
||||
DependtPageColumnLinkType: 'סוג הקישור'
|
||||
DependtPageColumnURL: קישור
|
||||
EDITHEADER: 'מי יכול לערוך עמוד זה?'
|
||||
EDITORGROUPS: 'קבוצות עורכים'
|
||||
EDIT_ALL_DESCRIPTION: 'עריכת עמוד כלשהו'
|
||||
|
@ -14,13 +14,11 @@ hr:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Pristup ''{title}'' sekciji'
|
||||
ACCESS_HELP: 'Dozvoli pregledavati sekcije sadržanog stabla i sadržaja strancie. Dozvole za pregled i uređivanje mogu se mijenjati putem stranicama specifičnim padajućim izbornicima kao i posebnim "Sadržajnim dozvolama".'
|
||||
APPLY_FILTER: Traži
|
||||
ARCHIVE: Arhiviraj
|
||||
ARCHIVEDPAGE: 'Arhivirane stranice ''{title}'''
|
||||
AddNew: 'Dodaj novu stranicu'
|
||||
AddNewButton: 'Dodaj novi'
|
||||
AddPageRestriction: 'Napomena: neke vrste stranica nisu dozvoljene za ovu sekciju'
|
||||
CLEAR_FILTER: Očisti
|
||||
Cancel: Odustani
|
||||
ChoosePageParentMode: 'Odaberite gdje želite kreirati ovu stranicu'
|
||||
ChoosePageType: 'Odaberi vrstu stranice'
|
||||
@ -28,7 +26,6 @@ hr:
|
||||
DUPLICATED: 'Dupliciran ''{title}'' uspješno'
|
||||
DUPLICATEDWITHCHILDREN: 'Dupliciran ''{title}'' i podstranice uspješno'
|
||||
EMAIL: Email
|
||||
ListFiltered: 'Prikazuje rezultate pretraživanja'
|
||||
NEWPAGE: 'Novi {pagetype}'
|
||||
PAGENOTEXISTS: 'Stranica ne postoji'
|
||||
PAGES: 'Status stranice'
|
||||
@ -165,7 +162,6 @@ hr:
|
||||
DEPENDENT_NOTE: 'Sljedeće stranice zavise o ovoj stranici. To uključuje virtualne stranice, preusmjeravajuće stranice i stranice s sadržajnim linkovima.'
|
||||
DESCRIPTION: 'Obična sadržajna stranica'
|
||||
DependtPageColumnLinkType: 'Tip linka'
|
||||
DependtPageColumnURL: Link
|
||||
EDITHEADER: 'Tko može uređivati unutar CMSa?'
|
||||
EDITORGROUPS: 'Urednička grupa'
|
||||
EDIT_ALL_DESCRIPTION: 'Uredi bilo koju stranicu'
|
||||
|
@ -78,7 +78,6 @@ hu:
|
||||
DEFAULTCONTACTTITLE: Kapcsolat
|
||||
DEFAULTHOMETITLE: Kezdőlap
|
||||
DependtPageColumnLinkType: 'Hivatkozás típusa'
|
||||
DependtPageColumnURL: Link
|
||||
EDITHEADER: 'Ki szerkesztheti ezt a CMS-ben?'
|
||||
EDITORGROUPS: 'Szerkesztők csoportja'
|
||||
EDIT_ALL_DESCRIPTION: 'Bármely oldal szerkesztése'
|
||||
|
@ -86,7 +86,6 @@ id:
|
||||
DEFAULTHOMETITLE: Beranda
|
||||
DEPENDENT_NOTE: 'Laman-laman berikut ini bergantung pada laman ini. Termasuk laman virtual, laman pengarah, dan laman-laman dengan tautan konten.'
|
||||
DependtPageColumnLinkType: 'Jenis tautan'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Siapa yang dapat mengedit laman ini?'
|
||||
EDITORGROUPS: 'Kelompok Editor'
|
||||
EDIT_ALL_DESCRIPTION: 'Edit semua laman'
|
||||
|
14
lang/it.yml
14
lang/it.yml
@ -14,7 +14,6 @@ it:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Accesso alla sezione ''{title}'''
|
||||
ACCESS_HELP: 'Consente la visualizzazione della sezione con l''albero delle pagine e i contenuti. I permessi di visualizzazione e modifica possono essere gestiti attraverso menù a tendina specifici della pagina, come dai separati "Permessi sui contenuti".'
|
||||
APPLY_FILTER: Cerca
|
||||
ARCHIVE: Archivia
|
||||
ARCHIVEDPAGE: 'Pagina ''{title}'' archiviata'
|
||||
AddNew: 'Aggiungi nuova pagina'
|
||||
@ -25,7 +24,6 @@ it:
|
||||
ArchiveWarningWithChildren: 'Attenzione: Questa pagina e tutte le pagine discendenti saranno nascoste prima di essere archiviate.\n\nSei sicuro di voler continuare?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Attenzione: Questa pagina e tutte le pagine discendenti saranno nascoste e automaticamente rimosse da {NumCampaigns} prima di essere archiviate.\n\nSei sicuro di voler continuare?'
|
||||
CANT_REORGANISE: 'Non hai i permessi per modificare le pagine di primo livello. Le modifiche non sono state salvate.'
|
||||
CLEAR_FILTER: Annulla
|
||||
Cancel: Annulla
|
||||
ChoosePageParentMode: 'Scegli dove creare questa pagina'
|
||||
ChoosePageType: 'Scegli tipo di pagina'
|
||||
@ -33,7 +31,6 @@ it:
|
||||
DUPLICATED: '''{title}'' duplicato correttamente'
|
||||
DUPLICATEDWITHCHILDREN: '''{title}'' e figlie duplicate con successo'
|
||||
EMAIL: Email
|
||||
ListFiltered: 'Visualizzazione risultati ricerca.'
|
||||
NEWPAGE: 'Nuova {pagetype}'
|
||||
PAGENOTEXISTS: 'Questa pagina non esiste'
|
||||
PAGES: 'Stato pagina'
|
||||
@ -59,7 +56,6 @@ it:
|
||||
ROLLEDBACKPUBv2: 'Ripristinata la versione pubblicata.'
|
||||
ROLLEDBACKVERSIONv2: 'Ripristinata la versione #{version}.'
|
||||
SAVED: '''{title}'' salvata correttamente.'
|
||||
SAVEDRAFT: Salva
|
||||
SHOW_AS_LIST: 'Mostra come lista'
|
||||
TOO_MANY_PAGES: 'Troppe pagine'
|
||||
TabContent: Contenuto
|
||||
@ -181,7 +177,6 @@ it:
|
||||
BUTTONDELETEDESC: 'Rimuove da bozza/live e manda all''archivio'
|
||||
BUTTONPUBLISHED: Pubblicato
|
||||
BUTTONSAVED: Salvato
|
||||
BUTTONSAVEPUBLISH: Pubblica
|
||||
BUTTONUNPUBLISH: Nascondere
|
||||
BUTTONUNPUBLISHDESC: 'Rimuovi questa pagina dal sito pubblicato'
|
||||
Comments: Commenti
|
||||
@ -195,7 +190,6 @@ it:
|
||||
DEPENDENT_NOTE: 'Le seguenti pagine dipendono da questa pagina. Queste includono pagine virtuali, pagine di redirezione e pagine con link nel contenuto.'
|
||||
DESCRIPTION: 'Pagina di contenuto generico'
|
||||
DependtPageColumnLinkType: 'Tipo di link'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Chi può modificare questa pagina?'
|
||||
EDITORGROUPS: 'Gruppi di editori'
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Gruppi con permessi di modifica globale: {groupList}'
|
||||
@ -269,14 +263,6 @@ it:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Tipo
|
||||
TITLE_USED_ON: 'Usato in'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Uso
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Collegamenti Albero Sito'
|
||||
PLURALS:
|
||||
one: 'Un Collegamento Albero Sito'
|
||||
other: '{count} Collegamenti Albero Sito'
|
||||
SINGULARNAME: 'Collegamento Albero Sito'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Pagina collegata'
|
||||
DESCRIPTION: 'Mostra il contenuto di un''altra pagina'
|
||||
|
@ -86,7 +86,6 @@ ja:
|
||||
DEFAULTHOMETITLE: ホーム
|
||||
DEPENDENT_NOTE: 以下のページでは、このページに依存します。 これには仮想ページ、リダイレクタページ、コンテンツのリンクを持つページが含まれています。
|
||||
DependtPageColumnLinkType: リンクの種類
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: このページを編集できる人
|
||||
EDITORGROUPS: 編集者グループ
|
||||
EDIT_ALL_DESCRIPTION: すべてのページを編集
|
||||
|
@ -83,7 +83,6 @@ ko:
|
||||
DEFAULTHOMETITLE: 홈
|
||||
DEPENDENT_NOTE: '다음 페이지들은 이 페이지에 의존합니다. 여기에는 가상 페이지 리디렉터 페이지 콘텐츠 링크가있는 페이지가 포함되어 있습니다.'
|
||||
DependtPageColumnLinkType: '링크 종류'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: '누가 이 페이지를 편집할 수 있습니까?'
|
||||
EDITORGROUPS: '편집자 그룹'
|
||||
EDIT_ALL_DESCRIPTION: '모든 페이지를 편집'
|
||||
|
@ -93,7 +93,6 @@ lt:
|
||||
DEFAULTHOMETITLE: Pradžia
|
||||
DEPENDENT_NOTE: 'Šiam puslapiui priklauso šie puslapiai. Tai gali būti virtualūs, nukreipiantys puslapiai, bei puslapiai, rodantys kitų puslapių turinį.'
|
||||
DependtPageColumnLinkType: 'Nuorodos tipas'
|
||||
DependtPageColumnURL: 'URL adresas'
|
||||
EDITHEADER: 'Kas gali redaguoti šį puslapį?'
|
||||
EDITORGROUPS: 'Redaktorių grupės'
|
||||
EDIT_ALL_DESCRIPTION: 'Gali redaguoti puslapį, apeinant puslapio redagavimo teises'
|
||||
|
@ -82,7 +82,6 @@ mi:
|
||||
DEFAULTHOMETITLE: Kāinga
|
||||
DEPENDENT_NOTE: 'Ka whakawhirinaki ngā whārangi e whai ana ki tēnei whārangi. Kei roto nei ngā whārangi matua, ngā whārangi tuku anō me ngā whārangi whai hono ihirangi.'
|
||||
DependtPageColumnLinkType: 'Momo hono'
|
||||
DependtPageColumnURL: PRO
|
||||
EDITHEADER: 'Mā wai tēnei whārangi e whakatika?'
|
||||
EDITORGROUPS: 'Ngā Rōpū Kaiwhakatika'
|
||||
EDIT_ALL_DESCRIPTION: 'Whakatikatia tētahi whārangi'
|
||||
|
@ -93,7 +93,6 @@ nb:
|
||||
DEFAULTHOMETITLE: Hjem
|
||||
DEPENDENT_NOTE: 'De følgende sidene avhenger av denne siden. Dette inkluderer virtuelle sider, omdirigeringssider og sider med innholdslenker.'
|
||||
DependtPageColumnLinkType: Lenketype
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Hvem kan redigere dette i kontrollpanelet?'
|
||||
EDITORGROUPS: Redaktørgrupper
|
||||
EDIT_ALL_DESCRIPTION: 'Rediger hvilken som helst side'
|
||||
|
18
lang/nl.yml
18
lang/nl.yml
@ -14,7 +14,7 @@ nl:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Toegang tot het ''{title}'' gedeelte'
|
||||
ACCESS_HELP: 'Bevoegdheid om paginastructuur en inhoud te bekijken. Bekijk- en bewerkingstoestemmingen kunnen worden toegekend met pagina-specifieke menu''s en het aparte "Inhoudsmachtigingen".'
|
||||
APPLY_FILTER: Zoeken
|
||||
APPLY_FILTER: Zoek
|
||||
ARCHIVE: Archief
|
||||
ARCHIVEDPAGE: 'Pagina ''%s'' is gearchiveerd'
|
||||
AddNew: 'Voeg nieuwe pagina toe'
|
||||
@ -59,7 +59,7 @@ nl:
|
||||
ROLLEDBACKPUBv2: 'Teruggedraaid naar gepubliceerde versie.'
|
||||
ROLLEDBACKVERSIONv2: 'Teruggedraaid naar versie #{version}.'
|
||||
SAVED: '''{title}'' is opgeslagen.'
|
||||
SAVEDRAFT: Opslaan
|
||||
SAVEDRAFT: 'Concept opslaan'
|
||||
SHOW_AS_LIST: 'Als lijst tonen'
|
||||
TOO_MANY_PAGES: 'Te veel pagina''s'
|
||||
TabContent: Inhoud
|
||||
@ -97,7 +97,7 @@ nl:
|
||||
SilverStripe\CMS\Controllers\CMSPagesController:
|
||||
FILTER: Filter
|
||||
ListView: Lijstweergave
|
||||
MENUTITLE: 'Pagina ''s'
|
||||
MENUTITLE: 'Pagina''s'
|
||||
TreeView: Boomstructuur
|
||||
SilverStripe\CMS\Controllers\CMSSiteTreeFilter_ChangedPages:
|
||||
Title: 'Gewijzigde pagina''s'
|
||||
@ -181,7 +181,7 @@ nl:
|
||||
BUTTONDELETEDESC: 'Verwijderde concept/live versie en archiveer'
|
||||
BUTTONPUBLISHED: Gepubliceerd
|
||||
BUTTONSAVED: Opgeslagen
|
||||
BUTTONSAVEPUBLISH: Publiceren
|
||||
BUTTONSAVEPUBLISH: 'Opslaan & publiceren'
|
||||
BUTTONUNPUBLISH: 'Publicatie intrekken'
|
||||
BUTTONUNPUBLISHDESC: 'Deze pagina verwijderen uit de gepubliceerde site'
|
||||
Comments: Commentaar
|
||||
@ -266,17 +266,11 @@ nl:
|
||||
many_many_ImageTracking: 'Afbeeldingen traceren'
|
||||
many_many_LinkTracking: 'Links traceren'
|
||||
SilverStripe\CMS\Model\SiteTreeFileExtension:
|
||||
BACKLINKCOUNT: 'Gebruikt op:'
|
||||
PAGES: pagina(s)
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Type
|
||||
TITLE_USED_ON: 'Gebruikt op:'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Gebruik
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: 'Pagina links'
|
||||
PLURALS:
|
||||
one: 'Een pagina link'
|
||||
other: '{count} pagina links'
|
||||
SINGULARNAME: 'Pagina link'
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Gekoppelde pagina'
|
||||
DESCRIPTION: 'Toont de inhoud van een andere pagina'
|
||||
|
@ -14,7 +14,6 @@ pl:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Dostęp do sekcji ''{title}'''
|
||||
ACCESS_HELP: 'Zezwala na oglądanie sekcji zawierających drzewo stron oraz treść. Prawo Przeglądaj i edytuj może być obsługiwane przez pola wyboru dostępne na stronach oraz poprzez zakładkę uprawnień.'
|
||||
APPLY_FILTER: Szukaj
|
||||
ARCHIVE: Archiwizuj
|
||||
ARCHIVEDPAGE: 'Zarchiwizowano stronę ''{title}'''
|
||||
AddNew: 'Dodaj nową stronę'
|
||||
@ -25,7 +24,6 @@ pl:
|
||||
ArchiveWarningWithChildren: 'Uwaga: Ta strona i wszystkie jej podrzędne nie zostaną opublikowane przed usunięciem.\n\nCzy chcesz kontynuować? '
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Uwaga: Ta strona i wszystkie jej podrzędne nie zostaną opublikowane i automatycznie zostaną usunięte z przypisanych kampanii {NumCampaigns} przed wysłaniem do archiwum.\n\nCzy chcesz kontynuować?'
|
||||
CANT_REORGANISE: 'Nie masz uprawnień by zmieniać strony najwyższego poziomu. Twoje zmiany nie zostały zapisane.'
|
||||
CLEAR_FILTER: Wyczyść
|
||||
Cancel: Anuluj
|
||||
ChoosePageParentMode: 'Wybierz gdzie chcesz utworzyć tę stronę'
|
||||
ChoosePageType: 'Wybierz rodzaj strony'
|
||||
@ -33,7 +31,6 @@ pl:
|
||||
DUPLICATED: 'Duplikowanie ''{title}'' zakończone powodzeniem'
|
||||
DUPLICATEDWITHCHILDREN: 'Duplikowanie ''{title}'' oraz podstron zakończone powodzeniem'
|
||||
EMAIL: Email
|
||||
ListFiltered: 'Pokaż wyniki wyszukiwania:'
|
||||
NEWPAGE: 'Nowa {pagetype}'
|
||||
PAGENOTEXISTS: 'Ta strona nie istnieje'
|
||||
PAGES: 'Status strony'
|
||||
@ -59,7 +56,6 @@ pl:
|
||||
ROLLEDBACKPUBv2: 'Przywrócono opublikowaną wersję'
|
||||
ROLLEDBACKVERSIONv2: 'Przywrócono wersję #{version}.'
|
||||
SAVED: 'Zapisano ''{title}''.'
|
||||
SAVEDRAFT: Zapisz
|
||||
SHOW_AS_LIST: 'pokaż jako listę'
|
||||
TOO_MANY_PAGES: 'Zbyt wiele stron'
|
||||
TabContent: Zawartość
|
||||
@ -183,7 +179,6 @@ pl:
|
||||
BUTTONDELETEDESC: Usunięto
|
||||
BUTTONPUBLISHED: Opublikowano
|
||||
BUTTONSAVED: Zapisano
|
||||
BUTTONSAVEPUBLISH: Opublikuj
|
||||
BUTTONUNPUBLISH: Nieopublikowane
|
||||
BUTTONUNPUBLISHDESC: 'Usuń tę stronę z opublikowanej witryny'
|
||||
Comments: Komentarze
|
||||
@ -197,7 +192,6 @@ pl:
|
||||
DEPENDENT_NOTE: 'Poniższe strony są zależne od tej (łącznie z wirtualnymi stronami, stronami przekierowującymi oraz stronami z treścią).'
|
||||
DESCRIPTION: 'Zwykła strona'
|
||||
DependtPageColumnLinkType: 'Typ linku'
|
||||
DependtPageColumnURL: 'Adres internetowy'
|
||||
EDITHEADER: 'Kto może edytować wewnątrz systemu CMS?'
|
||||
EDITORGROUPS: 'Grupy edytujących'
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Grupy z globalnymi uprawnieniami do edycji: {groupList}'
|
||||
@ -273,8 +267,6 @@ pl:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: 'Rodzaj strony'
|
||||
TITLE_USED_ON: 'Używany na:'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Używane
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Linkowana strona'
|
||||
DESCRIPTION: 'Wyświetla zawartość innej strony'
|
||||
|
@ -82,7 +82,6 @@ ro:
|
||||
DEFAULTHOMETITLE: Acasă
|
||||
DEPENDENT_NOTE: 'Următoarele pagini depind de această pagină. Include și pagini virtuale, pagini redirecționate, și pagini cu link-uri către conținut.'
|
||||
DependtPageColumnLinkType: 'Tip referintă'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Cine poate edita pagina?'
|
||||
EDITORGROUPS: 'Grupuri Editor'
|
||||
EDIT_ALL_DESCRIPTION: 'Editează orice pagină'
|
||||
|
@ -14,7 +14,6 @@ ru:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Доступ к разделу ''{title}'''
|
||||
ACCESS_HELP: 'Возможность просматривать раздел, содержащий дерево страниц и контент. Настройка прав просмотра и редактирования производится через выпадающие меню на отдельных страницах, а также через "Права доступа к содержимому".'
|
||||
APPLY_FILTER: Поиск
|
||||
ARCHIVE: 'В архив'
|
||||
ARCHIVEDPAGE: 'Страница ''{title}'' отправлена в архив'
|
||||
AddNew: 'Добавить новую страницу'
|
||||
@ -25,7 +24,6 @@ ru:
|
||||
ArchiveWarningWithChildren: 'Предупреждение: Перед отправкой в архив произойдёт отмена публикации данной и всех дочерних страниц. Вы действительно хотите продолжить?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Предупреждение: Перед отправкой в архив произойдёт отмена публикации данной и дочерних страниц и автоматическое удаление из связаных {NumCampaigns}. Вы действительно хотите продолжить?'
|
||||
CANT_REORGANISE: 'У вас нет права редактировать страницы верхнего уровня. Изменения не были сохранены.'
|
||||
CLEAR_FILTER: Сбросить
|
||||
Cancel: Отмена
|
||||
ChoosePageParentMode: 'Выберите, расположение страницы'
|
||||
ChoosePageType: 'Выберите тип страницы'
|
||||
@ -33,7 +31,6 @@ ru:
|
||||
DUPLICATED: 'Копия ''{title}'' создана'
|
||||
DUPLICATEDWITHCHILDREN: 'Копия ''{title}'' и дочерних элементов создана'
|
||||
EMAIL: Email
|
||||
ListFiltered: 'Результаты поиска'
|
||||
NEWPAGE: 'Новая {pagetype}'
|
||||
PAGENOTEXISTS: 'Страница не существует'
|
||||
PAGES: 'Статус страницы'
|
||||
@ -190,7 +187,6 @@ ru:
|
||||
DEPENDENT_NOTE: 'С этой страницей связаны следующие зависимые страницы (сюда относятся виртуальные страницы, страницы перенаправления и страницы со ссылками на контент).'
|
||||
DESCRIPTION: 'Обычная страница'
|
||||
DependtPageColumnLinkType: 'Тип ссылки'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Кто может редактировать эту страницу?'
|
||||
EDITORGROUPS: 'Группы редактирования'
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Группы с правами редактирования: {groupList}'
|
||||
|
@ -14,7 +14,6 @@ sk:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Pristup k ''{title}'' sekcii'
|
||||
ACCESS_HELP: 'Povoliť prezeranie sekcie obsahujúcu strom stránok a obsah. Práva na prezeranie a úpravu môžu byť nastavené cez výber, ako aj jednotlivo "Práva obsahu".'
|
||||
APPLY_FILTER: Hľadať
|
||||
ARCHIVE: Archív
|
||||
ARCHIVEDPAGE: 'Archivovaná stránka ''{title}'''
|
||||
AddNew: 'Pridať novú stránku'
|
||||
@ -25,7 +24,6 @@ sk:
|
||||
ArchiveWarningWithChildren: 'Varovanie: Stránka a všetky jej potomkovia bude nezverejnená pred odoslaním do archívu.\n\nSkutočne to chcete vykonať?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Varovanie: Stránka a všetky jej potomkovia bude nezverejnená a automaticky odstránená z jej asociacií {NumCampaigns} pred odoslaním do archívu.\n\nSkutočne to chcete vykonať?'
|
||||
CANT_REORGANISE: 'Nemáte oprávnenie meniť stránky najvyššej úrovne. Vaša zmena nebola uložená.'
|
||||
CLEAR_FILTER: Vyčistiť
|
||||
Cancel: Zrušiť
|
||||
ChoosePageParentMode: 'Vyberte, kde vytvoriť túto stránku'
|
||||
ChoosePageType: 'Vyberte typ stránky'
|
||||
@ -33,7 +31,6 @@ sk:
|
||||
DUPLICATED: 'Duplikované ''{title}'' úspešne'
|
||||
DUPLICATEDWITHCHILDREN: 'Duplikované ''{title}'' a potomkovia úspešne'
|
||||
EMAIL: E-mail
|
||||
ListFiltered: 'Zobrazenie výsledkov vyhľadávania.'
|
||||
NEWPAGE: 'Nová {pagetype}'
|
||||
PAGENOTEXISTS: 'Táto stránka neexistuje.'
|
||||
PAGES: 'Stav stránky'
|
||||
@ -176,7 +173,6 @@ sk:
|
||||
DEPENDENT_NOTE: 'Nasledujúce stránky sú závislé na tejto stránke. To zahŕňa virtuálne stránky, presmerovacie stránky a stránky s odkazmi obsahu.'
|
||||
DESCRIPTION: 'Obyčajná stránka s vlastným obsahom.'
|
||||
DependtPageColumnLinkType: 'Typ odkazu'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Kto môže editovať túto stránku?'
|
||||
EDITORGROUPS: 'Skupiny upravovateľov'
|
||||
EDIT_ALL_DESCRIPTION: 'Upraviť akúkoľvek stránku'
|
||||
|
@ -90,7 +90,6 @@ sl:
|
||||
DEFAULTHOMETITLE: Domov
|
||||
DEPENDENT_NOTE: 'Naslednje strani so odvisne od vsebine tukaj (vključuje navidezne strani, preusmerjevalne strani in strani s povezavami v vsebini)'
|
||||
DependtPageColumnLinkType: 'Tip povezave'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Kdo lahko ureja to stran?'
|
||||
EDITORGROUPS: 'Skupine urednikov'
|
||||
EDIT_ALL_DESCRIPTION: 'Urejanje vseh strani'
|
||||
|
@ -82,7 +82,6 @@ sr:
|
||||
DEFAULTHOMETITLE: 'Почетна страница'
|
||||
DEPENDENT_NOTE: 'Следеће странице зависе од ове странице. Ово подразумева витруелне странице, странице за преусмеравање и странице са линковима на садржај.'
|
||||
DependtPageColumnLinkType: 'Тип линка'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Ко може да измени ову страницу?'
|
||||
EDITORGROUPS: 'Групе за измене'
|
||||
EDIT_ALL_DESCRIPTION: 'Измена било које странице'
|
||||
|
@ -82,7 +82,6 @@ sr_RS@latin:
|
||||
DEFAULTHOMETITLE: 'Početna stranica'
|
||||
DEPENDENT_NOTE: 'Sledeće stranice zavise od ove stranice. Ovo podrazumeva vitruelne stranice, stranice za preusmeravanje i stranice sa linkovima na sadržaj.'
|
||||
DependtPageColumnLinkType: 'Tip linka'
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Ko može da izmeni ovu stranicu?'
|
||||
EDITORGROUPS: 'Grupe za izmene'
|
||||
EDIT_ALL_DESCRIPTION: 'Izmena bilo koje stranice'
|
||||
|
14
lang/sv.yml
14
lang/sv.yml
@ -14,7 +14,6 @@ sv:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: 'Tillgång till sektionen ''{title}'''
|
||||
ACCESS_HELP: 'Tillåt visning av sektionen innehållande sidträdet och dess innehåll. Rättigheter att visa och redigera sidan kan hanteras i dess rullgardinsmenyer, liksom i "Innehållsbehörigheter".'
|
||||
APPLY_FILTER: Sök
|
||||
ARCHIVE: Arkiv
|
||||
ARCHIVEDPAGE: 'Arkiverade sidor ''{title}'''
|
||||
AddNew: 'Skapa ny sida'
|
||||
@ -25,7 +24,6 @@ sv:
|
||||
ArchiveWarningWithChildren: 'Varning: Denna sida och alla dess undersidor kommer att avpubliceras innan de arkiveras.\n\nÄr du säker på att du vill fortsätta?'
|
||||
ArchiveWarningWithChildrenAndCampaigns: 'Varning: Denna sida och alla dess undersidor kommer att avpubliceras och automatiskt raderas från associerade {NumCampaigns} innan de arkiveras.\n\nÄr du säker på att du vill fortsätta?'
|
||||
CANT_REORGANISE: 'Du har inte tillstånd att ändra sidor på toppnivå. Dina ändringar har inte sparats.'
|
||||
CLEAR_FILTER: Rensa
|
||||
Cancel: Avbryt
|
||||
ChoosePageParentMode: 'Välj var du vill skapa denna sida'
|
||||
ChoosePageType: 'Välj sidtyp'
|
||||
@ -33,7 +31,6 @@ sv:
|
||||
DUPLICATED: 'Duplicerade ''{title}'' utan problem'
|
||||
DUPLICATEDWITHCHILDREN: 'Duplicerade ''{title}'' och undersidor utan problem'
|
||||
EMAIL: E-post
|
||||
ListFiltered: 'Visar sökresultat.'
|
||||
NEWPAGE: 'Ny {pagetype}'
|
||||
PAGENOTEXISTS: 'Den här sidan finns inte'
|
||||
PAGES: Sidstatus
|
||||
@ -59,7 +56,6 @@ sv:
|
||||
ROLLEDBACKPUBv2: 'Återställde till den publicerade versionen.'
|
||||
ROLLEDBACKVERSIONv2: 'Återställde till version #{version}.'
|
||||
SAVED: 'Sparade ''{title}'' lyckades.'
|
||||
SAVEDRAFT: Spara
|
||||
SHOW_AS_LIST: 'visa som lista'
|
||||
TOO_MANY_PAGES: 'För många sidor'
|
||||
TabContent: Innehåll
|
||||
@ -181,7 +177,6 @@ sv:
|
||||
BUTTONDELETEDESC: 'Radera från utkast och live, och lägg till i arkiv'
|
||||
BUTTONPUBLISHED: Publicerad
|
||||
BUTTONSAVED: Sparad
|
||||
BUTTONSAVEPUBLISH: Publicera
|
||||
BUTTONUNPUBLISH: Avpublicera
|
||||
BUTTONUNPUBLISHDESC: 'Ta bort den här sidan från den publicerade sajten'
|
||||
Comments: Kommentarer
|
||||
@ -195,7 +190,6 @@ sv:
|
||||
DEPENDENT_NOTE: 'Följande sidor berörs av den här sidan. Inklusive virtuella sidor, omdirigeringssidor, och sidor med innehållslänkar.'
|
||||
DESCRIPTION: 'Generisk innehållssida'
|
||||
DependtPageColumnLinkType: Länktyp
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 'Vem kan redigera den här sidan?'
|
||||
EDITORGROUPS: Redaktörsgrupper
|
||||
EDITOR_GROUPS_FIELD_DESC: 'Grupper med globala editerings-rättigheter: {groupList}'
|
||||
@ -269,14 +263,6 @@ sv:
|
||||
TITLE_INDEX: '#'
|
||||
TITLE_TYPE: Typ
|
||||
TITLE_USED_ON: 'Använd på'
|
||||
SilverStripe\CMS\Model\SiteTreeFileFormFactoryExtension:
|
||||
USAGE: Användning
|
||||
SilverStripe\CMS\Model\SiteTreeLink:
|
||||
PLURALNAME: Sidträds-länkar
|
||||
PLURALS:
|
||||
one: 'En sidträds-länk'
|
||||
other: '{count} Sidträds-länkar'
|
||||
SINGULARNAME: Sidträds-länk
|
||||
SilverStripe\CMS\Model\VirtualPage:
|
||||
CHOOSE: 'Länkad sida'
|
||||
DESCRIPTION: 'Visar innehåll från en annan sida'
|
||||
|
@ -14,14 +14,12 @@ zh:
|
||||
SilverStripe\CMS\Controllers\CMSMain:
|
||||
ACCESS: '访问 ''{title}'' 部分'
|
||||
ACCESS_HELP: '允许查看包含页面树及内容 部分。查看和编辑权限可以通过页面特定的下拉菜单进行控制,与使用单独的”内容权限“处理一样。'
|
||||
APPLY_FILTER: 查询
|
||||
ARCHIVE: 归档
|
||||
ARCHIVEDPAGE: '归档页面 ''{title}'''
|
||||
AddNew: 增加一个新的页面
|
||||
AddNewButton: 增加一个新的
|
||||
AddPageRestriction: 备注:某些类型页面是不允许选择该项的
|
||||
ArchiveWarning: 警告:在进行归档前,当前页面将被取消发布?是否继续?
|
||||
CLEAR_FILTER: 清除
|
||||
Cancel: 取消
|
||||
ChoosePageParentMode: 选择在哪创建此页面
|
||||
ChoosePageType: 选择页面类型
|
||||
@ -29,7 +27,6 @@ zh:
|
||||
DUPLICATED: '成功复制‘{title}’'
|
||||
DUPLICATEDWITHCHILDREN: '成功复制‘{title}’及其子页面'
|
||||
EMAIL: Email
|
||||
ListFiltered: 显示查询结果.
|
||||
NEWPAGE: '新建{pagetype}'
|
||||
PAGENOTEXISTS: 该页面不存在
|
||||
PAGES: 页面状态
|
||||
@ -111,7 +108,6 @@ zh:
|
||||
DEFAULTHOMETITLE: 首页
|
||||
DEPENDENT_NOTE: 以下页面依赖该页。包括虚拟页面,重定向页,以及有内容链接的页面。
|
||||
DependtPageColumnLinkType: 链接类型
|
||||
DependtPageColumnURL: URL
|
||||
EDITHEADER: 谁可以修改该页面?
|
||||
EDITORGROUPS: 编辑分组
|
||||
EDIT_ALL_DESCRIPTION: 编辑任何页面
|
||||
|
@ -37,7 +37,6 @@ zh_TW:
|
||||
DEFAULTHOMETITLE: 首頁
|
||||
DEPENDENT_NOTE: '以下的網頁是依附在本網頁的. 這包含了虛擬網頁, 重新導向網頁, 以及有內容鏈結的網頁.'
|
||||
DependtPageColumnLinkType: 鏈結類型
|
||||
DependtPageColumnURL: 網址
|
||||
EDITHEADER: 誰可以編輯這頁?
|
||||
EDITORGROUPS: 編輯者群組
|
||||
EDIT_ALL_DESCRIPTION: 編輯任何網頁
|
||||
|
@ -3,12 +3,27 @@ Feature: Create a page
|
||||
I want to create a page in the CMS
|
||||
So that I can grow my website
|
||||
|
||||
@javascript
|
||||
Scenario: I can create a page from the pages section
|
||||
Background:
|
||||
Given a "page" "MyPage"
|
||||
Given I am logged in with "ADMIN" permissions
|
||||
And I go to "/admin/pages"
|
||||
Then I should see "MyPage" in the tree
|
||||
And I should see a "Add new" button in CMS Content Toolbar
|
||||
|
||||
@javascript
|
||||
Scenario: I can create a page from the pages section
|
||||
Given I go to "/admin/pages"
|
||||
When I press the "Add new" button
|
||||
And I select the "Page" radio button
|
||||
And I press the "Create" button
|
||||
Then I should see an edit page form
|
||||
|
||||
@javascript
|
||||
Scenario: I can create a page under another page
|
||||
Given I go to "/admin/pages"
|
||||
When I press the "Add new" button
|
||||
And I select the "Under another page" radio button
|
||||
And I select "MyPage" in the "#Form_AddForm_ParentID_Holder" tree dropdown
|
||||
And I select the "Page" radio button
|
||||
And I press the "Create" button
|
||||
Then I should see an edit page form
|
||||
|
@ -4,6 +4,7 @@ namespace SilverStripe\CMS\Tests\Controllers;
|
||||
|
||||
use Page;
|
||||
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
|
||||
use SilverStripe\CMS\Tests\Controllers\CMSPageHistoryControllerTest\HistoryController;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\Dev\FunctionalTest;
|
||||
@ -23,7 +24,11 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
||||
protected $versionPublishCheck2;
|
||||
protected $page;
|
||||
|
||||
public function setUp()
|
||||
protected static $extra_controllers = [
|
||||
CMSPageHistoryControllerTest\HistoryController::class,
|
||||
];
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@ -103,7 +108,7 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
||||
*/
|
||||
public function testVersionsForm()
|
||||
{
|
||||
$this->get('admin/pages/history/show/'. $this->page->ID);
|
||||
$this->get('admin/pages/legacyhistory/show/'. $this->page->ID . '?flush');
|
||||
$form = $this->cssParser()->getBySelector('#Form_VersionsForm');
|
||||
|
||||
$this->assertEquals(1, count($form));
|
||||
@ -121,7 +126,7 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
||||
|
||||
public function testVersionsFormTableContainsInformation()
|
||||
{
|
||||
$this->get('admin/pages/history/show/'. $this->page->ID);
|
||||
$this->get('admin/pages/legacyhistory/show/'. $this->page->ID);
|
||||
$form = $this->cssParser()->getBySelector('#Form_VersionsForm');
|
||||
$rows = $form[0]->xpath("fieldset/table/tbody/tr");
|
||||
|
||||
@ -147,7 +152,7 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
||||
|
||||
public function testVersionsFormSelectsUnpublishedCheckbox()
|
||||
{
|
||||
$this->get('admin/pages/history/show/'. $this->page->ID);
|
||||
$this->get('admin/pages/legacyhistory/show/'. $this->page->ID);
|
||||
$checkbox = $this->cssParser()->getBySelector('#Form_VersionsForm_ShowUnpublished');
|
||||
|
||||
$this->assertThat($checkbox[0], $this->logicalNot($this->isNull()));
|
||||
@ -156,7 +161,7 @@ class CMSPageHistoryControllerTest extends FunctionalTest
|
||||
$this->assertThat($checked, $this->logicalNot($this->stringContains('checked')));
|
||||
|
||||
// viewing an unpublished
|
||||
$this->get('admin/pages/history/show/'.$this->page->ID .'/'.$this->versionUnpublishedCheck);
|
||||
$this->get('admin/pages/legacyhistory/show/'.$this->page->ID .'/'.$this->versionUnpublishedCheck);
|
||||
$checkbox = $this->cssParser()->getBySelector('#Form_VersionsForm_ShowUnpublished');
|
||||
|
||||
$this->assertThat($checkbox[0], $this->logicalNot($this->isNull()));
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace SilverStripe\CMS\Tests\Controllers\CMSPageHistoryControllerTest;
|
||||
|
||||
use SilverStripe\CMS\Controllers\CMSPageHistoryController;
|
||||
use SilverStripe\Dev\TestOnly;
|
||||
|
||||
/**
|
||||
* Used to circumvent potential URL conflicts with the silverstripe/versioned-admin history viewer controller
|
||||
* when running unit tests on the legacy CMSPageHistoryController.
|
||||
*/
|
||||
class HistoryController extends CMSPageHistoryController implements TestOnly
|
||||
{
|
||||
private static $url_segment = 'pages/legacyhistory';
|
||||
}
|
@ -1279,35 +1279,36 @@ class SiteTreeTest extends SapphireTest
|
||||
{
|
||||
$generator = Config::inst()->get(SiteTree::class, 'meta_generator');
|
||||
|
||||
// Stub to ensure customisations don't affect the test
|
||||
Config::modify()->set(SiteTree::class, 'meta_generator', 'SilverStripe - https://www.silverstripe.org');
|
||||
|
||||
$page = new SiteTreeTest_PageNode();
|
||||
|
||||
$meta = $page->MetaTags();
|
||||
$this->assertEquals(
|
||||
1,
|
||||
preg_match('/.*meta name="generator" content="SilverStripe - http:\/\/silverstripe.org".*/', $meta),
|
||||
'test default functionality - uses value from Config'
|
||||
$this->assertContains('meta name="generator"', $meta, 'Should include generator tag');
|
||||
$this->assertContains(
|
||||
'content="SilverStripe - https://www.silverstripe.org',
|
||||
$meta,
|
||||
'Should contain default meta generator info'
|
||||
);
|
||||
|
||||
// test proper escaping of quotes in attribute value
|
||||
Config::modify()->set(SiteTree::class, 'meta_generator', 'Generator with "quotes" in it');
|
||||
$meta = $page->MetaTags();
|
||||
$this->assertEquals(
|
||||
1,
|
||||
preg_match('/.*meta name="generator" content="Generator with "quotes" in it".*/', $meta),
|
||||
$this->assertContains(
|
||||
'content="Generator with "quotes" in it',
|
||||
$meta,
|
||||
'test proper escaping of values from Config'
|
||||
);
|
||||
|
||||
// test empty generator - no tag should appear at all
|
||||
Config::modify()->set(SiteTree::class, 'meta_generator', '');
|
||||
$meta = $page->MetaTags();
|
||||
$this->assertEquals(
|
||||
0,
|
||||
preg_match('/.*meta name=.generator..*/', $meta),
|
||||
$this->assertNotContains(
|
||||
'meta name="generator"',
|
||||
$meta,
|
||||
'test blank value means no tag generated'
|
||||
);
|
||||
|
||||
// reset original value
|
||||
Config::modify()->set(SiteTree::class, 'meta_generator', $generator);
|
||||
}
|
||||
|
||||
|
||||
@ -1576,4 +1577,11 @@ class SiteTreeTest extends SapphireTest
|
||||
$title = $siteTree->getTreeTitle();
|
||||
$this->assertNotNull($title);
|
||||
}
|
||||
|
||||
public function testDependentPagesOnUnsavedRecord()
|
||||
{
|
||||
$record = new SiteTree();
|
||||
$pages = $record->DependentPages();
|
||||
$this->assertCount(0, $pages, 'Unsaved pages should have no dependent pages');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user