Neil Creagh

Thanks for that. Although having to add another separate Site Settings area seems a little off - wouldn’t moving those Access controls into Security be better? What do you think? I’ll add it an issue on Github and see what people think if you agree (or am I missing something here)

Neil Creagh

‘Who can view pages’, ‘Who can add pages to the root’ etc. seems like it should be in with the Security/ members contols and would mean that Settings can be used for site-wide elements such as footer control that doesn’t belong in any one page. (Address, Social Media links, etc.)

Neil Creagh

Oh right - thank you. Yes I just tried it and can confirm. That also allows ‘Access’ control which I would argue should be in the Security area.

Neil Creagh

weirdly there’s options for every areas except Settings

Hels

Hi @Neil Creagh you can also create customised permissions for everything in minute detail in your own custom code for specific groups. I can't help with exactly how because I started reading about it but then found I could handle everything I need currently via the in-built permissions groups!

Neil Creagh

Any easy way to give a Marketing person access to the Settings area without giving them access to Pages/Files etc. ? I use the Settings area for anything site-wide, not belonging to a specific page such as Google Analytics / Tag Manager code.

Neil Creagh

I just posted this question on the Silverstripe forum (about setting number of items pagination in Gridfield). If anyone can point me in the right direction for this that would be great: https://forum.silverstripe.org/t/girdfield-pagination-on-v4-x/2348

Show 1 attachment(s)
Silverstripe Forum  
Girdfield pagination on v4.x

Silverstripe Version 4.4.4 Question: I’m having trouble setting the number of items per page on a Gridfield list in v4 Previously (v3) I would have done it like this: $gridFieldConfig->getComponentByType('GridFieldPaginator')->setItemsPerPage(50); I’ve added these two namespaces use SilverStripe\Forms\GridField\GridFieldConfig; use SilverStripe\Forms\GridField\GridFieldPaginator; but I get “Uncaught Error: Call to a member function setItemsPerPage() on null” Can anyone point me in ...

Hide attachment content
Neil Creagh

Great, thanks for that. On a totally separate issue, would anyone have any idea why this sitemap won’t be accepted by Google Search Console (using the same googlesitemap module as all my other sites) @wilr https://www.mca.ie/sitemap.xml Search console just continually says ‘couldn’t fetch’ or ‘Sitemap could not be read’

wmk

wrong URL submitted? maybe with a redirect?

Neil Creagh

Yeah it seems like something like that alright but Search Console account is setup with https and www. added already so there shouldn’t be any redirects happening?

Files: Requires logging in with Slack to view/download
Screen Shot 2018-12-20 at 10.36.35.png
dorsetdigital

Is it happening for a long time? I've noticed that in the new console it often happens and then just fixes itself

Neil Creagh

Yes I’ve noticed that too - annoying - but this has been going on for a couple of weeks - I’ve resubmitted a number of times.

Neil Creagh

Can anyone tell me how to remove tabs and formfields from the Redirector Page? DataExtension isn’t working, I think because it’s getting called before the formfields

  1. class updateRedirectorPage extends DataExtension
  2. {
  3. public function updateCMSFields(FieldList $fields) {
  4.  
  5. $fields->removeFieldFromTab('Root.Main','Subheading');
  6. $fields->removeFieldFromTab('Root.Main','Introtext');
  7. $fields->removeFieldFromTab('Root.Main','Picture');
  8. $fields->removeByName("PictureOptions");
  9. $fields->removeByName("Videos");
  10.  
  11. }
  12.  
  13.  
  14. static $icon = "themes/MyTheme/images/icons/cmstree-redirector.png";
  15.  
  16. }

(Silverstripe v3.7)

Neil Creagh

Hi all, I haven’t checked out using Blocks yet but looking to do this very shortly - I just wanted to check in and ask which module is the most current? Is it still this one dnadesign/silverstripe-elemental ? I remember a blog post from Silverstripe ages ago saying they were developing one based on this?

Neil Creagh

Nevermind I got it: HtmlEditorConfig::get('cms')->setOption('paste_as_text','true');