nightjarnz

try <% with $ReadMorePage %>, then the ID and stuff :>

nightjarnz

@Shannon Holmes 4.2 was the one with some (minor) hidden pitfalls. 4.2 -> 4.4 should be just fine :)

nightjarnz

Unfortunately I don't think so, from the top of my head.

nightjarnz

@BaronGrivet Try accessing FluentState somehow :) Maybe it's on the HTTPRequest. https://silverstripe-users.slack.com/archives/C0QSDASKT/p1571178455199500

Show 1 attachment(s)
BaronGrivet

Does anyone know how to access the Locale settings while using the Fluent module? I just want to return the Title of the active Locale.

Hide attachment content
nightjarnz

not 100% sure though, thus the suggestion to open an issue if you still can't do what you want :)

nightjarnz

Yes, admins are as admins be. I believe subsites offers the ability to set admins for particular sites, as opposed to the "global" or default admin.

Hels

This is true. I am an admin level user on just 1 subsite of a website & can't access others. There are people like me on each individual subsite. Then there is 1 'world' admin who has access to all the different sites - they get a drop down button in cms to choose which site to be working on. Don't know how much is the built in code of the subsite module & how much was custom as I don't have access to the code.

nightjarnz

@Hels yes, but can you have an admin level user on just "the main site" (not a subsite), and have that admin not see any subsite info?

Hels

Sorry didn't realise you meant that way round. Our main site (subsite id=0) isn't a full site like all the others. It is just a couple of pages of text & 1 page that links to all the different subsites. Presumably you could have a type of user who can edit subsite 0 only but isn't the top level user who controls all the subsites. We have all kinds of heirarchical users with different permissions within each subsite so it feels like pretty much anything is possible!! Although as mentioned I don't have access to the actual code of that site so I can't check. I only know about the all sites admin user cos my friend showed me her log on once when we were considering using subsites module in the site I made (but I dropped that idea like a hot potato as soon as I tried it the module!!!) any other countries that get an equivalent of my site get a seperate vhost+silverstripe with the same custom code pushed from git (soooo much easier from my point of view!!!! 🤣)

🤣 (1) 👍 (1)
nightjarnz

>I dropped that idea like a hot potato as soon as I tried it the module Wise decision 😅

nightjarnz

Thanks for reporting back :) It's interesting to hear different people's experiences!

nightjarnz

In terms of a main site admin seeing all files - they are the admin ;) If you'd like to test further, please create a new user and play around with the permissions. If you still think the behaviour incorrect, you can open an issue at https://github.com/silverstripe/silverstripe-subsites/issues/new :)

Show 1 attachment(s)
  
GitHub

GitHub is where people build software. More than 40 million people use GitHub to discover, fork, and contribute to over 100 million projects.

Hide attachment content