Blog

MR vs PR difference

User What is difference between mr and pr Assistant Here’s the simple difference: – **MR (Merge Request)** Term mainly used in **GitLab** (and some other systems). It’s a request to merge changes from one branch into another (usually feature branch → main). Same concept as PR, just different naming. – **PR (Pull Request)** Term mainly […]

Apartment controller update

User Assistant Great—let’s switch your flow to use a specific **ApartmentID** created in step 1, and pass it through the next steps (via query string). This avoids “first apartment of member” problems and cleanly supports multiple apartments. Here’s the minimal, safe set of changes: — # 1) Add a helper to resolve the apartment by […]

Create form field SilverStripe

User HOw to create new form field $Title in silver stripe cms Assistant Got you. In SilverStripe you don’t “echo inputs” directly—you define a field in PHP, then (optionally) give it a custom template. Your HTML snippet matches the variables exposed by `OptionsetField`, so the cleanest way is to use an `OptionsetField` and override its […]

Form field labels request

User https://marvelapp.com/prototype/33i88g76/screen/97377914 give all form field label Assistant I couldn’t open that Marvel link directly (their prototype viewer is blocked here). To get all the **form field labels**, can you do one of these: – Share a **screenshot** of the form screen, or – Copy/paste the form fields you see into chat. Then I’ll list […]

Add radio options

User OptionsetField::create('QualitatDerWohnung', 'Qualität der Wohnung', [ 'option1' => 'option1', 'option2' => 'option2', 'option3' => 'option3', ])->setTitle('Qualität der Wohnung') read all radio options and add in above with value and lable will same Assistant Got it ✅ From your screenshot, the **"Qualität der Wohnung"** section has the following radio options: – Neubau – Einfach – Gehobene […]

Form for add/edit apartment

User public function addapartment(HTTPRequest $request){ $member = Security::getCurrentUser(); $apartment = Apartment::get()->filter('MemberID', $member->ID)->first(); $form=$this->step1Form(); if ($member) { return $this->customise([ 'Form' => $form, 'Title' => 'Inserat erstellen zu Vermietung einer Wohnung', 'ObjectNumber'=>$form->Fields()->dataFieldByName('ObjectNumber')->setValue($apartment->ObjectNumber), 'GroupNumber'=>$form->Fields()->dataFieldByName('GroupNumber')->setValue($apartment->GroupNumber), 'WohnungType'=>$form->Fields()->dataFieldByName('WohnungType')->setValue($apartment->WohnungType), ])->renderWith(['Layout/Apartment/step1', 'Page']); }else{ return $this->redirect('/login'); } } public function step1Form(){ $fields = FieldList::create( TextField::create('ObjectNumber', 'Objektnummer')->setTitle('Objektnummer'), TextField::create('GroupNumber', 'Gruppennummer')->setTitle('Gruppennummer'), OptionsetField::create('WohnungType', 'Wohnung Type*', [ 'Wohnung' => […]

Fix addapartment error

User Assistant You’re getting “The requested page could not be found” because SilverStripe doesn’t know any route for `/appartment/addappartment`. You have two clean ways to wire this up. Pick one. — ## Option A — Stand‑alone route (no CMS page) Use this if you just want a controller endpoint. 1) **Controller:** (extend `Controller`, not `ContentController`) […]

Multiple files in Apartment

User namespace AppModel; use SilverStripeORMDataObject; use SilverStripeSecurityMember; class Apartment extends DataObject { private static $table_name = 'Apartment'; private static $db = [ 'ObjectNumber' => 'Varchar', 'GroupNumber' => 'Varchar', 'WohnungType' => 'Varchar', 'Uberschrift' => 'HTMLText', 'Mietwohnung' => 'HTMLText', 'Dieumgebung' => 'HTMLText', 'BilderId' => 'Int', 'VideoId' => 'Int', 'DocumentId'=>'Int' 'GrundId' => 'Int', 'ContactId'=>'Int', 'MemberID' => 'Int' ]; […]

Ticket WEBFL-330 details

User This is the ticket assigned to me Assistant I see that the ticket **WEBFL-330 – Bell HUG Dynatrace data-dtname** is asking you to: – Add a `data-dtname` attribute to specific “ and “ HTML elements in the **HUG flow**. – Follow the attached **data-dtname requirements** document for exact specifications. – This work was already […]

List ddev projects

User List ddev project Assistant To list all **DDEV projects** you currently have, you can use these commands depending on your context: ### 1. From anywhere on your system ddev list This will show all projects that DDEV knows about (with their name, status, and project directory). ### 2. From inside a project folder If […]