dorsetdigital

What are you trying to achieve? (just to be sure I haven't misunderstood)

dorsetdigital

If you want a page to have a URL that doesn't conform to that, then you'd need to put it somewhere else.

dorsetdigital

I don't think so. The SiteTree is just that... a visual representation of the page hierarchy

Jay

In a page type I want to be able to edit the full url and not just the segment, is this possible?

lerni

@Mo I've also had troubles with distinct in the past but groupby like bellow did the trick

  1. ->alterDataQuery(function ($query) {
  2. $query->groupby('"Object"."ID"');
  3. }
wmk

Good morning (ugt), anyone knows how I can add links to (dynamic) actions on a page in that cms linkdfield?

Arno Bor

so it cannot get the session 🙂

Arno Bor

well i got the session working now, i am using it in static context

Arno Bor

but now anything i set in the session wont show up so now i have to get that working

dorsetdigital

I'm not actually at my computer right now, so I might nit be able to help much

Arno Bor

I am working with a session and everything i set in the session in the general PageController is available everywhere (like you would expect with session). If however i set something in the session from a controller inside a module. Then it does show up in the session if i print $session->getAll(); inside my module right after setting it. If i then check the session in the page controller. Everything i have set in the module controller is gone.

So:

  • things set in PageController are available in ModuleController
  • SecurityIDs match in both session->getAll();
  • i removed all the sessions files from vagrant and after running both controllers i only have 1 session file (just to rule out that i somehow started 2 sessions)
Arno Bor

well perhaps you have an idea because i don't get it 🙂 as far as i know session is global and updating it on one spot works for the entire application stack.

Arno Bor

All this used to work with SS3, i am tasked with updating our module from 3 to 4

Arno Bor

Thanks anyways for being my rubber duck 😉


Show less replies
Arno Bor

Well i am using a controller and using the code in the docs but on a new page visit it says the request is not available haha

Arno Bor

Not as easy in SS4 yet but i am trying to work around it